From cdd4b06fb19e9ae0c078ddbc6b7f780f4d5e23b0 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 3 Aug 2016 20:57:06 +0200 Subject: [PATCH] Try to build onion balance snippets differently --- modules/onion/manifests/service.pp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/onion/manifests/service.pp b/modules/onion/manifests/service.pp index c7f08dd94..c9870cc87 100644 --- a/modules/onion/manifests/service.pp +++ b/modules/onion/manifests/service.pp @@ -39,6 +39,12 @@ define onion::service ( content => "{\"${name}\": \"${onion_hn}\"}\n", tag => "onionbalance-services.yaml", } + } else { + @@concat::fragment { "onion::balance::instance::dsa-snippet::$name::$fqdn": + target => "/etc/onionbalance/config-dsa-snippet.yaml", + content => "- instance: ${name}\n address: ${hostname_without_onion}\n host: ${hostname}-${name}\n", + tag => "onion::balance::dsa-snippet", + } } } } -- 2.20.1