Skip to content

Instantly share code, notes, and snippets.

@zlanich
Last active July 28, 2016 02: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 zlanich/cb495854f2bbab3c98f4f7b9f04f0540 to your computer and use it in GitHub Desktop.
Save zlanich/cb495854f2bbab3c98f4f7b9f04f0540 to your computer and use it in GitHub Desktop.
# init.sls
apache-restart:
module.wait:
- name: service.restart
- m_name: {{ apache.service }}
# modules.sls
include:
- apache
a2enmod {{ module }}:
cmd.run:
- unless: ls /etc/apache2/mods-enabled/{{ module }}.load
- order: 225
- require:
- pkg: apache
- watch_in:
- module: apache-restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment