4 package { 'onionbalance':
7 service { 'onionbalance':
9 require => Package['onionbalance'],
11 dsa_systemd::override { 'onionbalance':
19 file { '/usr/local/bin/tor-onion-name':
21 source => 'puppet:///modules/onion/tor-onion-name',
23 file { '/usr/local/bin/create-onionbalance-config':
25 source => 'puppet:///modules/onion/create-onionbalance-config',
26 notify => Exec['create-onionbalance-config'],
29 concat::fragment { 'onion::torrc_control_header':
30 target => "/etc/tor/torrc",
32 content => "ControlPort 9051\n\n",
35 @@concat::fragment { "onion::balance::onionbalance-services.yaml":
36 target => "/srv/puppet.debian.org/puppet-facts/onionbalance-services.yaml",
37 content => "${onion_balance_service_hostname}\n",
38 tag => "onionbalance-services.yaml",
41 concat { '/etc/onionbalance/config-dsa-snippet.yaml':
42 notify => Exec['create-onionbalance-config'],
43 require => File['/usr/local/bin/create-onionbalance-config']
45 Concat::Fragment <<| tag == "onion::balance::dsa-snippet" |>>
47 exec { "create-onionbalance-config":
48 command => "/usr/local/bin/create-onionbalance-config",
50 require => [ File['/usr/local/bin/create-onionbalance-config'], Package['onionbalance'] ],
51 notify => Service['onionbalance'],