Loading manifests/cleanup.pp 0 → 100644 +28 −0 Original line number Diff line number Diff line # # Cleanup after install # class idp_apache::cleanup ( $log_dir, ) { include stdlib $dirs = unique([ $log_dir, '/var/log/apache2', '/var/lock/apache2', '/var/run/apache2', ]) file { $dirs: ensure => directory, recurse => true, purge => true, owner => 'www-data', group => 'www-data', mode => '0755', } } manifests/init.pp +9 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,10 @@ class idp_apache ( $ensure, ) { stage { 'cleanup': } Stage['main'] -> Stage['cleanup'] # force an apt-get update before installing any packages include apt Exec['apt_update'] -> Package<| |> Loading Loading @@ -117,4 +121,9 @@ class idp_apache ( source => "puppet:///modules/${module_name}/start.sh", } class { 'idp_apache::cleanup': stage => 'cleanup', log_dir => $log_dir, } } Loading
manifests/cleanup.pp 0 → 100644 +28 −0 Original line number Diff line number Diff line # # Cleanup after install # class idp_apache::cleanup ( $log_dir, ) { include stdlib $dirs = unique([ $log_dir, '/var/log/apache2', '/var/lock/apache2', '/var/run/apache2', ]) file { $dirs: ensure => directory, recurse => true, purge => true, owner => 'www-data', group => 'www-data', mode => '0755', } }
manifests/init.pp +9 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,10 @@ class idp_apache ( $ensure, ) { stage { 'cleanup': } Stage['main'] -> Stage['cleanup'] # force an apt-get update before installing any packages include apt Exec['apt_update'] -> Package<| |> Loading Loading @@ -117,4 +121,9 @@ class idp_apache ( source => "puppet:///modules/${module_name}/start.sh", } class { 'idp_apache::cleanup': stage => 'cleanup', log_dir => $log_dir, } }