4 package { 'onionbalance':
7 service { 'onionbalance':
9 require => Package['onionbalance'],
12 file { '/usr/local/bin/tor-onion-name':
14 source => 'puppet:///modules/onion/tor-onion-name',
17 concat::fragment { 'onion::torrc_control_header':
18 target => "/etc/tor/torrc",
20 content => "ControlPort 9051\n\n",
23 concat { '/etc/onionbalance/config.yaml':
24 notify => Service['onionbalance'],
25 require => Package['onionbalance'],
27 concat::fragment { 'onion::balance::config_header':
28 target => "/etc/onionbalance/config.yaml",
30 content => "services:\n",
33 @@concat::fragment { "onion::balance::onionbalance-services.yaml":
34 target => "/srv/puppet.debian.org/puppet-facts/onionbalance-services.yaml",
35 content => "${onion_balance_service_hostname}\n",
36 tag => "onionbalance-services.yaml",