Skip to content

Instantly share code, notes, and snippets.

Created November 15, 2016 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/9ff6c0808af1fd5fc0210fa1fd164d58 to your computer and use it in GitHub Desktop.
Save anonymous/9ff6c0808af1fd5fc0210fa1fd164d58 to your computer and use it in GitHub Desktop.
# HOW I CALL THE STATE:
salt 'pat-dev-1479208110' state.sls pat.tibco.ems pillar='{"tibco": {"db_user":"bbb", "db_pass":"vvv","db_endpoint":"ccc"} }'
# STATE THAT EXTRACTS AN ARCHIVE AND SHOULD OVERWRITE the TOKEN.properties
extract_eip:
archive.extracted:
- name: /x
- source: salt://files/EIP2_RHEL.tar.gz
- archive_format: tar
- tar_options: v
- user: soa
- group: soa
- if_missing: /x/EIP2_RS_TIBCO_install_config
tibco_properties_file:
file.managed:
- name: /x/EIP2_RS_TIBCO_install_config/properties/TOKEN.properties
- source: salt://templates/TOKEN.properties.j2
- template: jinja
- user: soa
- group: soa
- mode: 644
- require:
- extract_eip
# ERRROR ============================================
Unable to manage file: Jinja variable 'salt.utils.context.NamespacedDictWrapper object' has no attribute 'tibco'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment