From: Silvio Rhatto Date: Sun, 2 Aug 2015 14:46:58 +0000 (-0300) Subject: Manage /etc/apache2/envvars on vservers X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=150d2fb83234bca36ef37a25dfb18ca6086494b5;p=puppet-apache.git Manage /etc/apache2/envvars on vservers --- diff --git a/files/envvars b/files/envvars.vserver similarity index 94% rename from files/envvars rename to files/envvars.vserver index 91328ac..b5c749f 100644 --- a/files/envvars +++ b/files/envvars.vserver @@ -37,6 +37,9 @@ export LANG ## following line (default is 8192): #APACHE_ULIMIT_MAX_FILES='ulimit -n 65536' +# Can't ulimit inside a vserver, so we avoid noise output at logrotate's cronjob +APACHE_ULIMIT_MAX_FILES='' + ## If you would like to pass arguments to the web server, add them below ## to the APACHE_ARGUMENTS environment. #export APACHE_ARGUMENTS='' diff --git a/manifests/init.pp b/manifests/init.pp index 2196b55..d4ea486 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -226,6 +226,18 @@ class apache( }, } + file { '/etc/apache2/envvars' : + ensure => present, + owner => 'root', + group => 'root', + mode => '0644', + source => $::virtual ? { + 'vserver' => 'puppet:///modules/apache/envvars.vserver', + default => undef, + }, + notify => Service["apache"], + } + # Legacy configuration file { "$conf_d/macros": ensure => absent,