Skip to content

Instantly share code, notes, and snippets.

Created June 19, 2012 16:53
Show Gist options
  • Save anonymous/2955238 to your computer and use it in GitHub Desktop.
Save anonymous/2955238 to your computer and use it in GitHub Desktop.
default[::groups] = [ "foo","bar","baz" ]
template "app.conf" do
source "app.conf.erb"
owner "root"
group "root"
mode 0640
:groups => node[:groups]
end
groups = [
<% @groups.each do |group| -%>
<%= group %>
<% end -%> ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment