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 -%>