diff options
author | Micah <micah@leap.se> | 2016-06-23 11:36:00 -0400 |
---|---|---|
committer | Micah <micah@leap.se> | 2016-06-28 13:08:02 -0400 |
commit | 9f2a4f859f42895969d96c25ac9941ff95a28d1f (patch) | |
tree | c32767f85232100c2194f10493f2e5cbe8b5320f /puppet/modules/site_webapp | |
parent | c7e0864ccb00c67f2dfe7cd8d5a1665c08dd6033 (diff) |
Reload tor if config or key is changed (#8210).
Change-Id: I3d733b6645c804a5fb337ad4b8edc59a66ad50b5
Diffstat (limited to 'puppet/modules/site_webapp')
-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 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 |