Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: modules/nginx/manifests/params.pp

Issue 29323553: Issue 2887 - Set nginx::worker_processes to 8 (Closed)
Patch Set: Created Aug. 13, 2015, 9:05 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « hiera/roles/filterserver.yaml ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 class nginx::params { 1 class nginx::params {
2 $worker_processes = 2 2 $worker_processes = hiera('nginx::worker_processes', 2)
3 $worker_connections = 1024 3 $worker_connections = hiera('nginx::worker_connections', 1024)
4 $multi_accept = off 4 $multi_accept = off
5 $worker_rlimit_nofile = 30000 5 $worker_rlimit_nofile = 30000
6 $sendfile = on 6 $sendfile = on
7 $keepalive_timeout = 15 7 $keepalive_timeout = 15
8 $tcp_nodelay = on 8 $tcp_nodelay = on
9 $gzip = on 9 $gzip = on
10 $ssl_session_cache = on 10 $ssl_session_cache = on
11 11
12 $user = $::operatingsystem ? { 12 $user = $::operatingsystem ? {
13 /(?i-mx:debian|ubuntu)/ => 'www-data', 13 /(?i-mx:debian|ubuntu)/ => 'www-data',
14 /(?i-mx:fedora|rhel|redhat|centos|scientific|suse|opensuse)/ => 'nginx', 14 /(?i-mx:fedora|rhel|redhat|centos|scientific|suse|opensuse)/ => 'nginx',
15 } 15 }
16 16
17 $group = $::operatingsystem ? { 17 $group = $::operatingsystem ? {
18 /(?i-mx:debian|ubuntu)/ => 'www-data', 18 /(?i-mx:debian|ubuntu)/ => 'www-data',
19 /(?i-mx:fedora|rhel|redhat|centos|scientific|suse|opensuse)/ => 'www', 19 /(?i-mx:fedora|rhel|redhat|centos|scientific|suse|opensuse)/ => 'www',
20 } 20 }
21 } 21 }
OLDNEW
« no previous file with comments | « hiera/roles/filterserver.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld