Last active
July 28, 2016 01:51
-
-
Save zlanich/4e46af01c46e6c8ce18a6c275527523f to your computer and use it in GitHub Desktop.
This file contains 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
apache_packages: | |
pkg.installed: | |
- pkgs: | |
- apache2 | |
- apache2-utils | |
apache2: | |
service.running: | |
- watch: | |
- file: /etc/apache2/apache2.conf | |
- file: /etc/apache2/sites-available/000-default.conf | |
- file: /etc/apache2/mods-enabled/rewrite.load | |
- file: /etc/apache2/mods-enabled/proxy_fcgi.load | |
/etc/apache2/mods-enabled/rewrite.load: | |
file.symlink: | |
- target: /etc/apache2/mods-available/rewrite.load | |
- requires: apache_packages | |
/etc/apache2/mods-enabled/proxy_fcgi.load: | |
file.symlink: | |
- target: /etc/apache2/mods-available/proxy_fcgi.load | |
- requires: apache_packages | |
/etc/apache2/apache2.conf: | |
file.managed: | |
- source: salt://apache/files/etc/apache2/apache2.conf.jinja | |
- template: jinja | |
- user: root | |
- group: root | |
- mode: 640 | |
- show_changes: True | |
- require: | |
- pkg: apache_packages | |
/etc/apache2/sites-available/000-default.conf: | |
file.managed: | |
- source: salt://apache/files/etc/apache2/sites-available/000-default.conf.jinja | |
- template: jinja | |
- user: root | |
- group: root | |
- mode: 640 | |
- show_changes: True | |
- require: | |
- pkg: apache_packages | |
/var/www/index.php: | |
file.managed: | |
- source: salt://apache/files/default.index.php.jinja | |
- template: jinja | |
- user: root | |
- group: root | |
- mode: 640 | |
- user: www-data | |
- group: www-data | |
- mode: 644 | |
- replace: False | |
- show_changes: True | |
- require: | |
- pkg: apache_packages |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment