-
-
Save tomwalsh/d7c550577c2b94835b10 to your computer and use it in GitHub Desktop.
Salt Mine Issues
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
root@ip-172-31-38-244:/vol# salt '*' mine.get '*' public_ssh_host_keys | |
www01: | |
---------- | |
www01: | |
cat: /etc/ssh/ssh_host_*_key.pub: No such file or directory | |
www02: | |
---------- | |
www01: | |
cat: /etc/ssh/ssh_host_*_key.pub: No such file or directory | |
root@ip-172-31-38-244:/vol# salt '*' mine.get '*' public_ssh_hostname | |
www01: | |
---------- | |
www01: | |
www01 | |
www02: | |
---------- | |
www01: | |
www01 | |
root@ip-172-31-38-244:/vol# salt '*' grains.get id | |
www01: | |
www01 | |
www02: | |
www02 | |
root@ip-172-31-38-244:/vol# salt '*' mine.get '*' public_ssh_hostname | |
www01: | |
---------- | |
www01: | |
www01 | |
www02: | |
---------- | |
www01: | |
www01 |
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
mine_functions: | |
public_ssh_host_keys: | |
mine_function: cmd.run | |
cmd: cat /etc/ssh/ssh_host_*_key.pub | |
public_ssh_hostname: | |
mine_function: grains.get | |
key: id | |
network.ip_addrs: [] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment