Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Commit

Permalink
Add initial envzone template
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Peitz committed Jun 1, 2016
1 parent 088aed1 commit da18ad6
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions templates/default/object.envzone.conf.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/**
* This file is managed by Chef.
* Do NOT modify this file directly.
*/

/**
* Chef Environment (Node)Zone Objects.
*/

# default environment endpoint object for env nodes
<% @zones.sort.map do |zone|%>
object Zone <%= zone.inspect -%> {
endpoints = [ <%= zone.inspect %> ]
<%- if @parent %>
parent = <%= @parent.inspect %>
<% end -%>
}

<% end -%>

<%- if @zone %>
object Zone <%= @zone.inspect -%> {
endpoints = <%= @zones.inspect %>
<%- if @parent %>
parent = <%= @parent.inspect %>
<% end -%>
}
<% end -%>

0 comments on commit da18ad6

Please sign in to comment.