diff options
author | Micah <micah@leap.se> | 2016-06-23 11:36:00 -0400 |
---|---|---|
committer | Micah <micah@leap.se> | 2016-08-25 15:07:17 -0400 |
commit | c8bd240e26fea7cd97a0fc44a9ca6e1d12389b7f (patch) | |
tree | ab000828d3e2365ff5741438c5c5b753d47e3341 /puppet/modules/site_webapp/manifests | |
parent | 6e6b56f40c74521b510efc5e9189c2a9e5bc5eb1 (diff) |
Reload tor if config or key is changed (#8210).
Change-Id: I3d733b6645c804a5fb337ad4b8edc59a66ad50b5
Diffstat (limited to 'puppet/modules/site_webapp/manifests')
-rw-r--r-- | puppet/modules/site_webapp/manifests/hidden_service.pp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/puppet/modules/site_webapp/manifests/hidden_service.pp b/puppet/modules/site_webapp/manifests/hidden_service.pp index 72a2ce95..ad97eeb7 100644 --- a/puppet/modules/site_webapp/manifests/hidden_service.pp +++ b/puppet/modules/site_webapp/manifests/hidden_service.pp @@ -24,14 +24,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 |