mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
add user options to salt-key and to tests/minionswarm.py so one can run in userland
This commit is contained in:
parent
362350a2b8
commit
0cad68c59d
@ -1610,7 +1610,7 @@ class SaltCPOptionParser(OptionParser, ConfigDirMixIn, MergeConfigMixIn,
|
||||
|
||||
|
||||
class SaltKeyOptionParser(OptionParser, ConfigDirMixIn, MergeConfigMixIn,
|
||||
LogLevelMixIn, OutputOptionsMixIn):
|
||||
LogLevelMixIn, OutputOptionsMixIn, RunUserMixin):
|
||||
|
||||
__metaclass__ = OptionParserMeta
|
||||
|
||||
|
@ -65,6 +65,12 @@ def parse():
|
||||
dest='root_dir',
|
||||
default=None,
|
||||
help='Override the minion root_dir config')
|
||||
parser.add_option(
|
||||
'-c', '--config-dir', default='/etc/salt',
|
||||
help=('Pass in an alternative configuration directory. Default: '
|
||||
'%default')
|
||||
)
|
||||
parser.add_option('-u', '--user', default='root')
|
||||
|
||||
options, args = parser.parse_args()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user