Last active
August 12, 2017 00:22
-
-
Save whiteinge/aff9f582da88d8ab982e47718a92d3ab to your computer and use it in GitHub Desktop.
Prereq example for optionally draining Apache before updating a web app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| include: | |
| - git | |
| apache: | |
| pkg.installed: | |
| - name: httpd | |
| service.running: | |
| - name: httpd | |
| - enable: True | |
| myapp: | |
| git.latest: | |
| - name: https://github.com/myco/myapp.git | |
| - target: /var/www/myapp | |
| - watch_in: | |
| - service: apache | |
| - require: | |
| - pkg: git | |
| drain_apache: | |
| service.dead: | |
| - name: httpd | |
| - prereq: | |
| - git: myapp |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
More complex example Orchestrate example.