Created
July 8, 2014 02:50
-
-
Save chromakode/e6baee16d87cad494921 to your computer and use it in GitHub Desktop.
salt-ssh pillar data workaround
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is old, current salt-ssh sends pillars.