mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
Pass the minionswarm user through to salt-key
Otherwise salt-key would fail with a user warning and not write the key which would then cause the minionswarm to fail when referencing the key.
This commit is contained in:
parent
d779354351
commit
b336c48b8c
@ -114,8 +114,8 @@ class Swarm(object):
|
||||
print('Creating shared pki keys for the swarm on: {0}'.format(path))
|
||||
subprocess.call(
|
||||
'salt-key -c {0} --gen-keys minion --gen-keys-dir {0} '
|
||||
'--log-file {1}'.format(
|
||||
path, os.path.join(path, 'keys.log')
|
||||
'--log-file {1} --user {2}'.format(
|
||||
path, os.path.join(path, 'keys.log'), self.opts['user'],
|
||||
), shell=True
|
||||
)
|
||||
print('Keys generated')
|
||||
|
Loading…
Reference in New Issue
Block a user