Merge "Fix races in httpd install and config"
This commit is contained in:
commit
9cf9c2ed1d
@ -24,43 +24,78 @@ class etherpad_lite::apache (
|
|||||||
template => 'etherpad_lite/etherpadlite.vhost.erb',
|
template => 'etherpad_lite/etherpadlite.vhost.erb',
|
||||||
ssl => true,
|
ssl => true,
|
||||||
}
|
}
|
||||||
httpd_mod { 'rewrite':
|
|
||||||
ensure => present,
|
if !defined(Mod['rewrite']) {
|
||||||
|
httpd::mod { 'rewrite':
|
||||||
|
ensure => present,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
httpd_mod { 'proxy':
|
if !defined(Mod['proxy']) {
|
||||||
ensure => present,
|
httpd::mod { 'proxy':
|
||||||
|
ensure => present,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
httpd_mod { 'proxy_http':
|
if !defined(Mod['proxy_http']) {
|
||||||
ensure => present,
|
httpd::mod { 'proxy_http':
|
||||||
|
ensure => present,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file { '/etc/apache2':
|
||||||
|
ensure => directory,
|
||||||
|
owner => 'root',
|
||||||
|
group => 'root',
|
||||||
|
mode => '0755',
|
||||||
|
}
|
||||||
if ($::lsbdistcodename == 'precise') {
|
if ($::lsbdistcodename == 'precise') {
|
||||||
|
file { '/etc/apache2/conf.d':
|
||||||
|
ensure => directory,
|
||||||
|
owner => 'root',
|
||||||
|
group => 'root',
|
||||||
|
mode => '0755',
|
||||||
|
require => File['/etc/apache2'],
|
||||||
|
}
|
||||||
file { '/etc/apache2/conf.d/connection-tuning':
|
file { '/etc/apache2/conf.d/connection-tuning':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'root',
|
group => 'root',
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
source => 'puppet:///modules/etherpad_lite/apache-connection-tuning',
|
source => 'puppet:///modules/etherpad_lite/apache-connection-tuning',
|
||||||
notify => Service['httpd'],
|
notify => Service['httpd'],
|
||||||
|
require => File['/etc/apache2/conf.d'],
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
file { '/etc/apache2/conf-available/connection-tuning.conf':
|
file { '/etc/apache2/conf-available':
|
||||||
ensure => present,
|
ensure => directory,
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'root',
|
group => 'root',
|
||||||
mode => '0644',
|
mode => '0755',
|
||||||
source => 'puppet:///modules/etherpad_lite/apache-connection-tuning',
|
require => File['/etc/apache2'],
|
||||||
|
}
|
||||||
|
file { '/etc/apache2/conf-available/connection-tuning':
|
||||||
|
ensure => present,
|
||||||
|
owner => 'root',
|
||||||
|
group => 'root',
|
||||||
|
mode => '0644',
|
||||||
|
source => 'puppet:///modules/etherpad_lite/apache-connection-tuning',
|
||||||
|
require => File['/etc/apache2/conf-available'],
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/etc/apache2/conf-enabled/connection-tuning.conf':
|
file { '/etc/apache2/conf-enabled':
|
||||||
|
ensure => directory,
|
||||||
|
owner => 'root',
|
||||||
|
group => 'root',
|
||||||
|
mode => '0755',
|
||||||
|
require => File['/etc/apache2'],
|
||||||
|
}
|
||||||
|
file { '/etc/apache2/conf-enabled/connection-tuning':
|
||||||
ensure => link,
|
ensure => link,
|
||||||
target => '/etc/apache2/conf-available/connection-tuning.conf',
|
target => '/etc/apache2/conf-available/connection-tuning.conf',
|
||||||
notify => Service['httpd'],
|
notify => Service['httpd'],
|
||||||
require => File['/etc/apache2/conf-available/connection-tuning.conf'],
|
require => [
|
||||||
}
|
File['/etc/apache2/conf-enabled'],
|
||||||
|
File['/etc/apache2/conf-available/connection-tuning'],
|
||||||
httpd_mod { 'proxy_wstunnel':
|
],
|
||||||
ensure => present,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user