Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import salt.config, salt.key
- master_opts = salt.config.master_config('/etc/salt/master')
- skey = salt.key.Key(master_opts)
- accs = skey.list_keys()['minions']
- for minion in accs:
- print minion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement