Skip to content

Instantly share code, notes, and snippets.

@tunglam14
Created July 3, 2013 08:46
Show Gist options
  • Save tunglam14/5916430 to your computer and use it in GitHub Desktop.
Save tunglam14/5916430 to your computer and use it in GitHub Desktop.
php5-cli: # without apache2
pkg:
- installed
php5-fpm:
pkg:
- installed
- required:
- pkg: php5-cli
nginx:
pkg:
- installed
service: # run service after install
- running
- watch:
- file: /usr/share/nginx/www/index.php
- required:
- pkg: php5-fpm
/usr/share/nginx/www/index.php:
file:
- managed
- source: salt://nginx/index.php
- required:
- pkg: nginx
/etc/nginx/sites-available/default:
file:
- managed
- source: salt://nginx/default
- required:
- pkg: nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment