Skip to content

Instantly share code, notes, and snippets.

@zipkid
Created June 6, 2012 15:20
Show Gist options
  • Save zipkid/2882557 to your computer and use it in GitHub Desktop.
Save zipkid/2882557 to your computer and use it in GitHub Desktop.
environments:
- production:
environment: production
modulepath: /etc/puppet/modules:/etc/puppet-modules
manifest: $manifestdir/site.pp
- testing:
environment: testing
modulepath: /etc/puppet/modules:/etc/puppet-environment/testing
manifest: $manifestdir/site.pp
<% if environments != 'UNDEFINED'%>
<% environments.each do |env| %>
<% env.each do |key,value| %>
[<%= value['environment'] %>]
<%- if value.has_key?("manifestdir") -%>
manifest=<%= value['manifestdir'] %>
<%- end -%>
<%- if value.has_key?("manifest") %>
manifest=<%= value['manifest'] %>
<% end -%>
<%- if value.has_key?("modulepath") %>
modulepath=<%= value['modulepath'] %>
<% end -%>
<%- if value.has_key?("templatedir") %>
templatedir=<%= value['templatedir'] %>
<% end -%>
<% end %>
<% end %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment