Skip to content

Instantly share code, notes, and snippets.

@chromakode
Created July 8, 2014 02:50
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 chromakode/e6baee16d87cad494921 to your computer and use it in GitHub Desktop.
Save chromakode/e6baee16d87cad494921 to your computer and use it in GitHub Desktop.
salt-ssh pillar data workaround
# salt-ssh doesn't support sending pillar data, so we have to embed it in the state files...
/etc/openvpn/server.key:
file.managed:
- contents: |
{{ pillar['openvpn']['server_key'] | indent(8) }}
- user: root
- group: root
- mode: 600
/etc/openvpn/ta.key:
file.managed:
- contents: |
{{ pillar['openvpn']['ta_key'] | indent(8) }}
- user: root
- group: root
- mode: 600
@pykler
Copy link

pykler commented Dec 17, 2014

This is old, current salt-ssh sends pillars.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment