From: Peter Palfrader Date: Mon, 23 Jul 2018 16:09:27 +0000 (+0200) Subject: onionbalance requires a restart whenever tor is retarted X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=d0f2b69fd08705653bda9800724499d0e49e91dc;p=mirror%2Fdsa-puppet.git onionbalance requires a restart whenever tor is retarted This change causes onionbalance to get restarted when tor does, and so onion services don't got stale. --- diff --git a/modules/onion/manifests/balance.pp b/modules/onion/manifests/balance.pp index 855e7cde8..bbf140ad7 100644 --- a/modules/onion/manifests/balance.pp +++ b/modules/onion/manifests/balance.pp @@ -8,6 +8,13 @@ class onion::balance { ensure => running, require => Package['onionbalance'], } + systemd::override { 'onionbalance': + ensure => $ensure, + content => @(EOT) + [Unit] + BindsTo=tor.service + | EOT + } file { '/usr/local/bin/tor-onion-name': mode => '0555',