Skip to content

Instantly share code, notes, and snippets.

@tomwalsh

tomwalsh/cli Secret

Created September 23, 2015 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomwalsh/d7c550577c2b94835b10 to your computer and use it in GitHub Desktop.
Save tomwalsh/d7c550577c2b94835b10 to your computer and use it in GitHub Desktop.
Salt Mine Issues
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
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