Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

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
You can’t perform that action at this time.