From 9f2a4f859f42895969d96c25ac9941ff95a28d1f Mon Sep 17 00:00:00 2001 From: Micah Date: Thu, 23 Jun 2016 11:36:00 -0400 Subject: Reload tor if config or key is changed (#8210). Change-Id: I3d733b6645c804a5fb337ad4b8edc59a66ad50b5 --- puppet/modules/site_webapp/manifests/hidden_service.pp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'puppet/modules') diff --git a/puppet/modules/site_webapp/manifests/hidden_service.pp b/puppet/modules/site_webapp/manifests/hidden_service.pp index da2a5607..ffc9888d 100644 --- a/puppet/modules/site_webapp/manifests/hidden_service.pp +++ b/puppet/modules/site_webapp/manifests/hidden_service.pp @@ -25,14 +25,16 @@ class site_webapp::hidden_service { source => "/srv/leap/files/nodes/${::hostname}/tor.key", owner => 'debian-tor', group => 'debian-tor', - mode => '0600'; + mode => '0600', + notify => Service['tor']; '/var/lib/tor/webapp/hostname': ensure => present, content => $tor_domain, owner => 'debian-tor', group => 'debian-tor', - mode => '0600'; + mode => '0600', + notify => Service['tor']; } # it is necessary to zero out the config of the status module -- cgit v1.2.3