summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2013-01-04 18:40:43 +0100
committermh <mh@immerda.ch>2013-01-04 18:40:43 +0100
commit86c536e48d4f01762905fae47e10705d8e80e112 (patch)
tree0e89a081bb5c16e11f3dae5ab560d62e585f6073 /templates
parent3cc70ef0c9f2b2eef4b251358fd89559e763b471 (diff)
workaround the limitation that puppet can't do complex queries while collecting with stored configs
Diffstat (limited to 'templates')
-rw-r--r--templates/remote_host.erb7
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/remote_host.erb b/templates/remote_host.erb
index 9dff955..a67238e 100644
--- a/templates/remote_host.erb
+++ b/templates/remote_host.erb
@@ -1,4 +1,5 @@
# host <%= name %>
+<% if scope.lookupvar('::fqdn') != left_id -%>
conn <%= name %>
<% if left_ip_address != 'absent' -%>
left=<%= left_ip_address %>
@@ -17,4 +18,8 @@ conn <%= name %>
<% end -%>
type=transport
auto=start
-
+<% else -%>
+# placeholder to not add ourself to the hostlist
+# this is due to a limitations how puppet can collect
+# exported resources
+<% end -%>