diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-04-26 11:33:31 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-04-26 11:33:31 +0200 |
commit | b014bfaadc4104067ff98d0202351625cf03224f (patch) | |
tree | a38cfbd330f7f0d1c46ceccf33215180a15ef948 /interface-definitions/salt-minion.xml.in | |
parent | 7765d528ce304275350f87c748fa7988ffb4bc26 (diff) | |
parent | 6a3938cbf595ea24d2d2e3802cf78a0519483339 (diff) | |
download | vyos-1x-b014bfaadc4104067ff98d0202351625cf03224f.tar.gz vyos-1x-b014bfaadc4104067ff98d0202351625cf03224f.zip |
Merge branch 'salt' of github.com:c-po/vyos-1x into current
* 'salt' of github.com:c-po/vyos-1x:
salt: T2384: migrate config options
salt: T2385: XML: improve completion helpers on hash_type
salt: T2384: always log to syslog
Revert "salt: T2382: id and master nodes are mandatory - use in verify()"
salt: T2382: ease config generation
salt: T2382: migrate get_config() to list items
salt: T2382: id and master nodes are mandatory - use in verify()
salt: T2382: add missing verify()
salt: T2382: XML: run as user nobody
salt: T2382: XML: add proper valueHelp and validators for master
salt: T2382: add missing dependency on salt-minion
Diffstat (limited to 'interface-definitions/salt-minion.xml.in')
-rw-r--r-- | interface-definitions/salt-minion.xml.in | 65 |
1 files changed, 20 insertions, 45 deletions
diff --git a/interface-definitions/salt-minion.xml.in b/interface-definitions/salt-minion.xml.in index 9aa60249a..d0e8e3e2b 100644 --- a/interface-definitions/salt-minion.xml.in +++ b/interface-definitions/salt-minion.xml.in @@ -1,5 +1,4 @@ <?xml version="1.0"?> -<!--Salt-minion configuration --> <interfaceDefinition> <node name="service"> <children> @@ -9,52 +8,33 @@ <priority>500</priority> </properties> <children> - <leafNode name="hash_type"> + <leafNode name="hash"> <properties> - <help>The hash_type is the hash to use when discovering the hash of a file on the master server.</help> + <help>Hash used when discovering file on master server (default: sha256)</help> + <completionHelp> + <list>md5 sha1 sha224 sha256 sha384 sha512</list> + </completionHelp> + <constraint> + <regex>(md5|sha1|sha224|sha256|sha384|sha512)</regex> + </constraint> </properties> </leafNode> - <leafNode name="log_file"> - <properties> - <help>The location of the minion log file.</help> - </properties> - </leafNode> - <leafNode name="log_level"> + <leafNode name="master"> <properties> - <help>Log level</help> - <valueHelp> - <format>garbage</format> - <description>log garbage info</description> - </valueHelp> - <valueHelp> - <format>trace</format> - <description>log trace info</description> - </valueHelp> - <valueHelp> - <format>debug</format> - <description>log debug info</description> - </valueHelp> - <valueHelp> - <format>info</format> - <description>log info</description> - </valueHelp> - <valueHelp> - <format>warning</format> - <description>log warning info</description> - </valueHelp> + <help>The hostname or IP address of the master.</help> <valueHelp> - <format>error</format> - <description>log error info</description> + <format>ipv4</format> + <description>Remote syslog server IPv4 address</description> </valueHelp> <valueHelp> - <format>critical</format> - <description>log critical info</description> + <format>hostname</format> + <description>Remote syslog server FQDN</description> </valueHelp> - </properties> - </leafNode> - <leafNode name="master"> - <properties> - <help>The hostname or IP address of the master.</help> + <constraint> + <validator name="ip-address"/> + <validator name="fqdn"/> + </constraint> + <constraintErrorMessage>Invalid FQDN or IP address</constraintErrorMessage> <multi/> </properties> </leafNode> @@ -63,12 +43,7 @@ <help>Explicitly declare the id for this minion to use.</help> </properties> </leafNode> - <leafNode name="user"> - <properties> - <help>The user to run the Salt processes.</help> - </properties> - </leafNode> - <leafNode name="mine_interval"> + <leafNode name="interval"> <properties> <help>The number of minutes between mine updates.</help> </properties> |