Skip to content

Instantly share code, notes, and snippets.

@musonic
Created March 26, 2014 13: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 musonic/7e015841da073ee4f121 to your computer and use it in GitHub Desktop.
Save musonic/7e015841da073ee4f121 to your computer and use it in GitHub Desktop.
basic apache state
apache2-mpm-prefork:
pkg:
- installed
service:
- running
- watch:
- file: /usr/local/php55/lib/php.ini
- file: /etc/apache2/apache2.conf
- file: /etc/apache2/sites-enabled/depbook.com.conf
- file: /etc/apache2/conf.d/php.conf
/usr/local/php55/lib/php.ini:
file.managed:
- contents_pillar: data:custom
/etc/apache2/apache2.conf:
file.copy:
- name: /etc/apache2/apache2.conf
- source: /srv/salt/apache2/apache2.conf
- force: true
- makedirs: true
/etc/apache2/sites-enabled/depbook.com.conf
file.copy:
- name: /etc/apache2/sites-enabled/depbook.com.conf
- source: /srv/salt/apache2/sites-enabled/depbook.com.conf
- force: true
- makedirs: true
/etc/apache2/conf.d/php.conf:
file.copy:
- name: /etc/apache2/conf.d/php.conf
- source: /srv/salt/apache2/conf.d/php.conf
- force: true
- makedirs: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment