Skip to content

Instantly share code, notes, and snippets.

@kalabiyau
Last active December 19, 2018 14:42
Show Gist options
  • Save kalabiyau/3a653c178de509e3dca8ec3f16c816aa to your computer and use it in GitHub Desktop.
Save kalabiyau/3a653c178de509e3dca8ec3f16c816aa to your computer and use it in GitHub Desktop.
ext_pillar:
- vault: path=prong/salt
- vault: path=prong/ssh_pub_keys
peer_run:
.*:
- vault.generate_token

vault token create -policy=salt-master

salt "*" vault.read_secret "saltstack/*"

vault:
url: http://10.0.2.2:8200
auth:
method: token
token: "s.2nFKX3loHtTSiouDrGbIj3BD"
policies:
- saltstack/minions
- saltstack/minion/{minion}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment