Skip to content

Instantly share code, notes, and snippets.

@austinpapp
Created January 30, 2017 16:53
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 austinpapp/9798b9d01ffd6e3538f5e2bdc1d4bdc7 to your computer and use it in GitHub Desktop.
Save austinpapp/9798b9d01ffd6e3538f5e2bdc1d4bdc7 to your computer and use it in GitHub Desktop.
github-ssh-key:
file.managed:
- name: /root/.ssh/{{ salt['pillar.get']('inf-private:github:key-name') }}
- contents_pillar: {{ salt['pillar.get']('inf-private:github:key') }}
- mode: 600
inf-private:
github:
key-name: blah
key: |
-----BEGIN RSA PRIVATE KEY----
-----END RSA PRIVATE KEY-----
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment