OLD | NEW |
1 class nginx::params { | 1 class nginx::params { |
2 $worker_processes = 2 | |
3 $worker_connections = 1024 | |
4 $multi_accept = off | 2 $multi_accept = off |
5 $worker_rlimit_nofile = 30000 | 3 $worker_rlimit_nofile = 30000 |
6 $sendfile = on | 4 $sendfile = on |
7 $keepalive_timeout = 15 | 5 $keepalive_timeout = 15 |
8 $tcp_nodelay = on | 6 $tcp_nodelay = on |
9 $gzip = on | 7 $gzip = on |
10 | 8 |
11 $user = $::operatingsystem ? { | 9 $user = $::operatingsystem ? { |
12 /(?i-mx:debian|ubuntu)/ => 'www-data', | 10 /(?i-mx:debian|ubuntu)/ => 'www-data', |
13 /(?i-mx:fedora|rhel|redhat|centos|scientific|suse|opensuse)/ => 'nginx', | 11 /(?i-mx:fedora|rhel|redhat|centos|scientific|suse|opensuse)/ => 'nginx', |
14 } | 12 } |
15 | 13 |
16 $group = $::operatingsystem ? { | 14 $group = $::operatingsystem ? { |
17 /(?i-mx:debian|ubuntu)/ => 'www-data', | 15 /(?i-mx:debian|ubuntu)/ => 'www-data', |
18 /(?i-mx:fedora|rhel|redhat|centos|scientific|suse|opensuse)/ => 'www', | 16 /(?i-mx:fedora|rhel|redhat|centos|scientific|suse|opensuse)/ => 'www', |
19 } | 17 } |
20 } | 18 } |
OLD | NEW |