Rename our systemd module to dsa_systemd
[mirror/dsa-puppet.git] / modules / onion / manifests / balance.pp
index 600aa24..d3f5ba8 100644 (file)
@@ -8,6 +8,13 @@ class onion::balance {
                ensure => running,
                require => Package['onionbalance'],
        }
+       dsa_systemd::override { 'onionbalance':
+               ensure => $ensure,
+               content => @(EOT)
+                       [Unit]
+                       BindsTo=tor.service
+                       | EOT
+       }
 
        file { '/usr/local/bin/tor-onion-name':
                mode    => '0555',
@@ -21,7 +28,7 @@ class onion::balance {
 
        concat::fragment { 'onion::torrc_control_header':
                target  => "/etc/tor/torrc",
-               order   => 10,
+               order   => '10',
                content => "ControlPort 9051\n\n",
        }