-
Notifications
You must be signed in to change notification settings - Fork 0
/
pillar.example
85 lines (73 loc) · 2.74 KB
/
pillar.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
apache:
# Overrides map.jinja
lookup:
version: 2.4.9-1+deb.sury.org~precise+1
# The files_switch key serves as a selector for alternative directories under
# the formula files directory. Under the files directory could exist several
# subdirectories named on the value of certain grains. By default the selector
# is the minion id, but it could be a list of them.
files_switch:
- id
- os_family
# User and group for the main apache process
user: www-data
group: www-data
# MPM conf
mpm:
module: mpm_event
# these params apply depending on the selected mpm module
params:
max_connections_per_child: 0
max_request_workers: 150
max_spare_servers: 10
max_spare_threads: 75
min_spare_servers: 5
min_spare_threads: 25
start_servers: 2
thread_limit: 64
threads_per_child: 25
# Logformat definitions
log_formats:
- '"%h %{X-Forwarded-For}i %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined_xff'
# Configuration of sites
sites:
www.example.com:
# State could be enabled (default) | disabled | absent
state: enabled
# Name of the file with the conf. Default is <site name>.conf
conf_filename: www.example.com.conf
# Jinja template for this site. Should be in
# files/default/etc/apache2/sites-available/<template>.jinja
template: minimal
# The following key:value pairs are used in the provided default template
addr: '*:80'
document_root: /var/www/bob/public_html
# Creates document_root and log_dir directories with the specified
# user and group. It's your responsibility to ensure that user and group
# exists
create_dirs: True
user: bob
group: www-data
# Other common parameters
server_admin: [email protected]
server_name: www.example.com
server_alias: example.com
log_dir: /var/www/bob/log
custom_logs:
- /var/www/bob/log/www.example.com_access.log combined_xff
error_log: /var/www/bob/log/www.example.com_error.log
logrotate_files:
- /var/www/bob/log/www.example.com_error.log
- /var/www/bob/log/www.example.com_access.log
log_level: warn
# TCP version
#fast_cgi_external_server: fcgi://127.0.0.1:9000/var/www/bob/public_html/$1
# UNIX socket version
# The host localhost doesn't really matter, you can put whatever
fast_cgi_external_server: unix:/var/run/php5-fpm_bob.socket|fcgi://localhost/var/www/bob/public_html
# Extra configuration to be added to the VirtualHost environment
extra_conf: |
# This is an example of snippet added to the conf from pillar data
default_site:
state: disabled
conf_filename: 000-default.conf