Created
January 16, 2017 19:22
-
-
Save austinpapp/cba5652225332919972d077734fd3e8d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
civix: | |
symfony: | |
database_driver: pdo_mysql | |
database_host: 127.0.0.1 | |
database_port: | |
database_name: civix | |
database_user: civix | |
database_password: civix | |
mailer_transport: smtp | |
mailer_host: 127.0.0.1 | |
mailer_user: | |
mailer_password: | |
locale: en | |
secret: secret | |
recaptcha_public_key: here_is_your_public_key | |
recaptcha_private_key: here_is_your_private_key | |
recaptcha_secure: false | |
recaptcha_locale_key: kernel.default_locale | |
recaptcha_enabled: true | |
cicero_login: aplotnikov | |
cicero_password: aplotnikov | |
android_api_key: android_api_key | |
android_app: app_key | |
ios_is_sanbox: true | |
ios_pem_path: /path/to/certs | |
ios_passphrase: passphrase | |
sunlightapi_token: | |
stripe_api_key: sk_test_vpedTPsiXZZ8SSwS4isZzHWw | |
stripe_publishable_key: pk_test_QUgSE3ZhORW9yoDuCkMjnaA2 | |
domain: example.com | |
hostname: vagrant.local | |
scheme: 'http' | |
rabbitmq_connections: | |
default: | |
host: 'localhost' | |
port: 5672 | |
user: 'guest' | |
password: 'guest' | |
vhost: '/' | |
lazy: true | |
slack_logger_token: 'xoxp' |
This file contains hidden or 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
get-parameters: | |
file.managed: | |
- name: /srv/config/parameters.yml | |
- mode: 644 | |
- user: {{ user }} | |
- group: {{ user }} | |
- contents_pillar: {{ salt['pillar.get']('civix:symphony', {})|yaml }} |
@xenophonf , fwiw i found this:
get-parameters:
file.serialize:
- name: /srv/config/parameters.yml
- mode: 644
- dataset_pillar: civix:symfony
- formatter: yaml
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using the Pillar data as given above, I wrote the following source template, which I saved as
/usr/local/etc/salt/states/test.yml
:Note the use of the flow control argument to the
|yaml
filter, which pretty-prints the resulting YAML document instead of putting it all on one line.Then I wrote the following SLS file, which I saved as
/usr/local/etc/salt/states/test.sls
:This Works For Me!(tm)