Last active
October 28, 2016 05:33
-
-
Save zsoltf/9aaf3382e2e2d633ad4a6e9ae9472697 to your computer and use it in GitHub Desktop.
Salt Minions as Pillar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ext_pillar: | |
- cmd_yaml: /srv/pillar/keys.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
salt-key | sed '/:$/! s/^/ - /g' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
salt-call pillar.item "Accepted Keys" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment