reload apache2 on sso RP hosts after sso files changed
authorPeter Palfrader <peter@palfrader.org>
Tue, 1 Sep 2015 09:48:44 +0000 (09:48 +0000)
committerPeter Palfrader <peter@palfrader.org>
Tue, 1 Sep 2015 09:48:44 +0000 (09:48 +0000)
modules/apache2/manifests/init.pp
modules/roles/manifests/sso_rp.pp

index 3a6050a..8be585b 100644 (file)
@@ -143,4 +143,11 @@ class apache2 {
                description     => 'Allow web access',
                rule            => '&SERVICE(tcp, (http https))'
        }
+
+       exec { 'service apache2 reload':
+               path        => '/usr/bin:/usr/sbin:/bin:/sbin',
+               command     => 'service apache2 reload',
+               refreshonly => true,
+               require =>  Package['apache2'],
+       }
 }
index d801f0d..56d97e3 100644 (file)
@@ -9,9 +9,11 @@ class roles::sso_rp {
        }
        file { '/var/lib/dsa/sso/ca.crl':
                content => template('roles/sso_rp/ca.crl.erb'),
+               notify  => Exec['service apache2 reload'],
        }
        file { '/var/lib/dsa/sso/ca.crt':
                source => 'puppet:///modules/roles/sso_rp/ca.crt',
+               notify  => Exec['service apache2 reload'],
        }
 
 }