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:
Seth House 2014-02-06 10:59:30 -07:00
parent d779354351
commit b336c48b8c

View File

@ -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')