From b11eec4b0fc6407dab648c714f970ae3e6b11a96 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 1 Sep 2015 09:48:44 +0000 Subject: [PATCH] reload apache2 on sso RP hosts after sso files changed --- modules/apache2/manifests/init.pp | 7 +++++++ modules/roles/manifests/sso_rp.pp | 2 ++ 2 files changed, 9 insertions(+) diff --git a/modules/apache2/manifests/init.pp b/modules/apache2/manifests/init.pp index 3a6050ab7..8be585bfa 100644 --- a/modules/apache2/manifests/init.pp +++ b/modules/apache2/manifests/init.pp @@ -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'], + } } diff --git a/modules/roles/manifests/sso_rp.pp b/modules/roles/manifests/sso_rp.pp index d801f0d7f..56d97e3ae 100644 --- a/modules/roles/manifests/sso_rp.pp +++ b/modules/roles/manifests/sso_rp.pp @@ -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'], } } -- 2.20.1