Skip to content

Instantly share code, notes, and snippets.

@UtahCampusD
Created November 30, 2016 20:43
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 UtahCampusD/12e280232fa5efc56c949a7c06e2a7eb to your computer and use it in GitHub Desktop.
Save UtahCampusD/12e280232fa5efc56c949a7c06e2a7eb to your computer and use it in GitHub Desktop.
config_update:
file.managed:
- name: /etc/somedir/someconfig
- source: salt://base/somedir/someconfig
- user: root
- group: root
- mode: 644
- replace: False
- order: 1
- require:
- file: config_backup
config_backup:
file.managed:
- name: /etc/somedir/someconfig.bak
- source: /etc/somedir/someconfig
- user: root
- group: root
- mode: 644
- onchanges:
- file: config_update
[ERROR ] Data passed to highstate outputter is not a valid highstate return: {'minion_id': ['A recursive requisite was found, SLS "config" ID "config_update" ID "config_backup"']}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment