Skip to content

Instantly share code, notes, and snippets.

@thecodeassassin
Created August 20, 2013 20:15
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 thecodeassassin/060d0a799d3ebd9d5efd to your computer and use it in GitHub Desktop.
Save thecodeassassin/060d0a799d3ebd9d5efd to your computer and use it in GitHub Desktop.
nginx-packages:
pkg.installed:
- pkgs:
- nginx
- php5-fpm
php5-fpm:
file.managed:
- name: /etc/php5/fpm/php.ini
- source: salt://templates/php/php.ini
- template: jinja
- user: www-data
- group: www-data
- mode: 755
file.managed:
- name: /etc/php5/fpm/pool.d/www.conf
- source: salt://templates/www.conf
- template: jinja
- user: www-data
- group: www-data
- mode: 755
nginx:
file.managed:
- name: /etc/nginx/nginx.conf
- source: salt://templates/nginx.conf
- template: jinja
- user: www-data
- group: www-data
- mode: 755
file.absent:
- name: /etc/nginx/sites-enabled/default
pkg.installed:
- name: nginx
service.running:
- enable: True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment