summaryrefslogtreecommitdiff
path: root/templates/remote_host.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/remote_host.erb')
-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 -%>