Skip to content

Instantly share code, notes, and snippets.

@runswithd6s
Last active June 27, 2019 21:06
Show Gist options
  • Save runswithd6s/203724f3b0884402e6540f3c6f08ffeb to your computer and use it in GitHub Desktop.
Save runswithd6s/203724f3b0884402e6540f3c6f08ffeb to your computer and use it in GitHub Desktop.
Failing salt state formula
# Salt 2017.07
{% if pillar['db_reports_host'] %}
replace-db-reports-sugar-config-overrides-file:
file.blockreplace:
- path: /vol/sugar_shared_files/config_override.php
- content: |
$sugar_config['db']['reports'] = array(
'db_host_name' => '{{ pillar['db_reports_host'] }}',
'db_user_name' => '{{ pillar['db_reports_user'] }}',
'db_password' => '{{ pillar['db_reports_password'] }}',
'db_name' => '{{ pillar['db_reports_name'] }}',
'db_type' => 'mysql' );
- marker_start: '/*** SALT DB_REPORTS BEGIN BLOCK ***/'
- marker_end: '/*** SALT DB_REPORTS END BLOCK ***/'
- require:
- sls: sugar.efs
{% endif %}
@runswithd6s
Copy link
Author

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