Skip to content

Instantly share code, notes, and snippets.

@bbinet
Created December 10, 2013 15:14
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 bbinet/7892221 to your computer and use it in GitHub Desktop.
Save bbinet/7892221 to your computer and use it in GitHub Desktop.
{%- set cfg = pillar.get('autossh', {}) %}
/home/autossh/.ssh/id_rsa:
file.managed:
- user: autossh
- mode: 0600
- source: salt://autossh/files/blank.jinja
- makedirs: True
- defaults:
- body: {{ cfg['ssh_private_key'] }}
- require:
- user: autossh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment