@@concat::fragment { "onion::balance::onionbalance-services.yaml":
target => "/srv/puppet.debian.org/puppet-facts/onionbalance-services.yaml",
- content => $onion_balance_service_hostname,
+ content => "${onion_balance_service_hostname}\n",
tag => "onionbalance-services.yaml",
}
}
$port,
$target_address,
$target_port,
- $ensure = present
+ $ensure = present,
+ $direct = false
) {
if ($ensure == "ifstatic") {
$my_ensure = has_static_component($name) ? {
order => "50-${name}-20",
tag => "onion::balance::$name",
}
+
+ if ($direct) {
+ @@concat::fragment { "onion::balance::onionbalance-services.yaml::${name}":
+ target => "/srv/puppet.torproject.org/puppet-facts/onionbalance-services.yaml",
+ content => "{\"${name}\": \"${onion_hn}\"}\n",
+ tag => "onionbalance-services.yaml",
+ }
+ }
}
}
}