Created
March 21, 2014 11:16
-
-
Save MSeven/9684065 to your computer and use it in GitHub Desktop.
Salt config
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
# This file is managed by salt {{ grains['saltversion'] }} | |
user www-data; | |
worker_processes {{ pillar['nginx_worker_processes'] }}; | |
error_log {{ pillar['nginx_log_dir'] }}/error.log; | |
events { | |
worker_connections {{ pillar['nginx_worker_connections'] }}; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; | |
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | |
'$status $body_bytes_sent "$http_referer" ' | |
'"$http_user_agent" "$http_x_forwarded_for"'; | |
access_log {{ pillar['nginx_log_dir'] }}/access.log main; | |
sendfile on; | |
tcp_nopush on; | |
server_tokens off; | |
keepalive_timeout 65; | |
types_hash_bucket_size 64; | |
gzip on; | |
include {{ pillar['nginx_vhost_dir'] }}/*.conf; | |
} |
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
nginx: | |
pkg: | |
- installed | |
service: | |
- running | |
- reload: true | |
- enable: true | |
- watch: | |
- file: /etc/nginx/nginx.conf | |
- file: nginx_log_dir | |
- file: nginx_vhost_dir | |
/etc/nginx/nginx.conf: | |
file.managed: | |
- source: salt://nginx/nginx.conf | |
- template: jinja | |
nginx_log_dir: | |
file.directory: | |
- name: {{ pillar['nginx_log_dir'] }} | |
- user: root | |
- group: root | |
- mode: 0750 | |
nginx_vhost_dir: | |
file.directory: | |
- name: {{ pillar['nginx_vhost_dir'] }} | |
- user: root | |
- group: root | |
- mode: 0750 | |
/etc/nginx/ssl: | |
file.directory: | |
- user: root | |
- group: root | |
- mode: 0700 |
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
php-fpm: | |
pkg.installed: | |
- name: php5-fpm | |
file.managed: | |
- name: /etc/php5/fpm/conf.d/99-extras.ini | |
- source: salt://php-fpm/99-extras.ini | |
service: | |
- name: php5-fpm | |
- running | |
- reload: true | |
- enable: true | |
php_json: | |
pkg.installed: | |
- name: php5-json | |
php_gd: | |
pkg.installed: | |
- name: php5-gd | |
php_cli: | |
pkg.installed: | |
- name: php5-cli | |
php_mysql: | |
pkg.installed: | |
- name: php5-mysql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment