Created
May 18, 2015 23:07
-
-
Save gravyboat/43f9948d9f89b3e21aee to your computer and use it in GitHub Desktop.
Multiple pillars, had to use | for directories instead of slashes because gist.
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
app_1: | |
nginx_url: http://my-awesome-site.com |
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
app_2: | |
nginx_url: http://my-other-awesome-site.com |
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
base: | |
'*': | |
- nginx | |
- yum | |
- ruby | |
- app-1 | |
- app-2 |
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
... | |
server_name: {{ salt['pillar.get']('app_1:nginx_url') }} | |
... |
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
... | |
server_name: {{ salt['pillar.get']('app_1:nginx_url') }} | |
... |
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
app_1_nginx_conf: | |
file.managed: | |
- name: /etc/nginx/conf.d/my-awesome-site.conf | |
- source: salt://app-1/files/my-awesome-site.conf.jinja | |
- template: jinja |
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
app_2_nginx_conf: | |
file.managed: | |
- name: /etc/nginx/conf.d/my-other-awesome-site.conf | |
- source: salt://app-2/files/my-other-awesome-site.conf.jinja | |
- template: jinja |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment