Skip to content

Instantly share code, notes, and snippets.

@thommay
Forked from anonymous/attributes.rb
Created June 19, 2012 16:55
Show Gist options
  • Save thommay/2955245 to your computer and use it in GitHub Desktop.
Save thommay/2955245 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.join(",") -%> ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment