projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f114053
)
Try to build onion balance snippets differently
author
Peter Palfrader
<peter@palfrader.org>
Wed, 3 Aug 2016 18:57:06 +0000
(20:57 +0200)
committer
Peter Palfrader
<peter@palfrader.org>
Wed, 3 Aug 2016 18:57:06 +0000
(20:57 +0200)
modules/onion/manifests/service.pp
patch
|
blob
|
history
diff --git
a/modules/onion/manifests/service.pp
b/modules/onion/manifests/service.pp
index
c7f08dd
..
c9870cc
100644
(file)
--- 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",
+ }
}
}
}