summaryrefslogtreecommitdiff
path: root/src/conf_mode/salt-minion.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-26 11:31:16 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-26 11:31:24 +0200
commit6a3938cbf595ea24d2d2e3802cf78a0519483339 (patch)
treea38cfbd330f7f0d1c46ceccf33215180a15ef948 /src/conf_mode/salt-minion.py
parentbdda118c4573ba6e42376f9391d4ab16e73eb4bd (diff)
downloadvyos-1x-6a3938cbf595ea24d2d2e3802cf78a0519483339.tar.gz
vyos-1x-6a3938cbf595ea24d2d2e3802cf78a0519483339.zip
salt: T2384: migrate config options
- delete log_file, log_level and user nodes - rename hash_type to hash - rename mine_interval to interval
Diffstat (limited to 'src/conf_mode/salt-minion.py')
-rwxr-xr-xsrc/conf_mode/salt-minion.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/conf_mode/salt-minion.py b/src/conf_mode/salt-minion.py
index d3412b7ef..515019014 100755
--- a/src/conf_mode/salt-minion.py
+++ b/src/conf_mode/salt-minion.py
@@ -30,7 +30,7 @@ config_file = r'/etc/salt/minion'
master_keyfile = r'/opt/vyatta/etc/config/salt/pki/minion/master_sign.pub'
default_config_data = {
- 'hash_type': 'sha256',
+ 'hash': 'sha256',
'log_level': 'warning',
'master' : 'salt',
'user': 'nobody',
@@ -51,8 +51,8 @@ def get_config():
else:
conf.set_level(base)
- if conf.exists(['hash_type']):
- salt['hash_type'] = conf.return_value(['hash_type'])
+ if conf.exists(['hash']):
+ salt['hash'] = conf.return_value(['hash'])
if conf.exists(['master']):
salt['master'] = conf.return_values(['master'])
@@ -63,8 +63,8 @@ def get_config():
if conf.exists(['user']):
salt['user'] = conf.return_value(['user'])
- if conf.exists(['mine_interval']):
- salt['mine_interval'] = conf.return_value(['mine_interval'])
+ if conf.exists(['interval']):
+ salt['interval'] = conf.return_value(['interval'])
if conf.exists(['master-key']):
salt['master_key'] = conf.return_value(['master-key'])