Skip to content

Instantly share code, notes, and snippets.

@bVector
Created October 14, 2015 19:06
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 bVector/2d5bca4a6150eb77d7d1 to your computer and use it in GitHub Desktop.
Save bVector/2d5bca4a6150eb77d7d1 to your computer and use it in GitHub Desktop.
salt minion generate key
python -c "import salt.crypt; salt.crypt.gen_keys('/etc/salt/pki/minion/', 'minion', 2048)"
salt-call --local state.template_str '
upload_key:
module.run:
- name: s3.put
- bucket: supercool-s3-bucket
- path: {{ grains["id"] }}
- local_file: /etc/salt/pki/minion/minion.pub
- location: us-east-1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment