Skip to content

Instantly share code, notes, and snippets.

@gravyboat
Created February 27, 2014 15:57
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 gravyboat/9252904 to your computer and use it in GitHub Desktop.
Save gravyboat/9252904 to your computer and use it in GitHub Desktop.
gist for oznt
vts:
file.managed:
- name: /etc/apache2/sites-available/vts.cfg
- source: salt://webserver/vts.cfg
a2ensite_vts.cfg:
cmd.run:
- onlyif: test ! -L /etc/apache2/sites-enabled/vts.cfg
- watch:
- file: vts
/etc/init.d/apache2 reload:
cmd.wait:
- watch:
-cmd: a2ensite_vts.cfg
apache2:
service:
- running
- watch:
- file: vts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment