Skip to content

Instantly share code, notes, and snippets.

@thecodeassassin
Created August 21, 2013 23:51
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/e1e8c463df596cdbb6f0 to your computer and use it in GitHub Desktop.
Save thecodeassassin/e1e8c463df596cdbb6f0 to your computer and use it in GitHub Desktop.
include:
- php-fpm
nginx-packages:
pkg.installed:
- pkgs:
- nginx
nginx-conf:
file.managed:
- name: /etc/nginx/nginx.conf
- source: salt://templates/nginx.conf
- template: jinja
- user: www-data
- group: www-data
- mode: 755
nginx-default:
file.absent:
- name: /etc/nginx/sites-available/default
- require:
- pkg: nginx
nginx-default-en:
file.absent:
- name: /etc/nginx/sites-enabled/default
- require:
- pkg: nginx
nginx:
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