[icinga-checkins] icinga.org: chef-icinga2/master: Add initial envendpoint template

git at icinga.org git at icinga.org
Sat Jul 16 19:49:33 CEST 2016


Module: chef-icinga2
Branch: master
Commit: 088aed1437e96e48a01163cfe50e7eaa77832f2c
URL:    https://git.icinga.org/?p=chef-icinga2.git;a=commit;h=088aed1437e96e48a01163cfe50e7eaa77832f2c

Author: Thomas Peitz <thomas.peitz at invision.de>
Date:   Wed Jun  1 12:11:08 2016 +0200

Add initial envendpoint template

---

 templates/default/object.envendpoint.conf.erb |   22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/templates/default/object.envendpoint.conf.erb b/templates/default/object.envendpoint.conf.erb
new file mode 100644
index 0000000..cd34c23
--- /dev/null
+++ b/templates/default/object.envendpoint.conf.erb
@@ -0,0 +1,22 @@
+/**
+ * This file is managed by Chef.
+ * Do NOT modify this file directly.
+*/
+
+/**
+ * Chef Environment Endpoint Objects.
+*/
+
+# default environment endpoint object for env nodes
+<% @endpoints.sort.map do |endpoint|%>
+object Endpoint <%= endpoint.inspect -%> {
+  host = <%= endpoint.inspect %>
+  <%- if @port %>
+  port = <%= @port.inspect %>
+  <% end -%>
+  <% if @log_duration -%>
+  log_duration = <%= @log_duration %>
+  <% end -%>
+}
+
+<% end -%>



More information about the icinga-checkins mailing list