Skip to content

Instantly share code, notes, and snippets.

@mikecmpbll
Created March 30, 2017 11:11
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 mikecmpbll/f30ca720810d3793fff30c39107b49c8 to your computer and use it in GitHub Desktop.
Save mikecmpbll/f30ca720810d3793fff30c39107b49c8 to your computer and use it in GitHub Desktop.
/etc/redis/sentinel.conf:
file.managed:
- source: salt://redis/sentinel.conf
- replace: False
file.blockreplace:
- source: salt://redis/sentinel-config-block.conf
- marker_start: "# START MANAGED BY SALT ---DO-NOT-EDIT"
- marker_end: "# END MANAGED BY SALT ---DO-NOT-EDIT"
- prepend_if_not_found: True
- require:
- file: /etc/redis/sentinel.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment