Skip to content

Instantly share code, notes, and snippets.

@nathenharvey
Last active December 28, 2015 17:18
Show Gist options
  • Save nathenharvey/7534449 to your computer and use it in GitHub Desktop.
Save nathenharvey/7534449 to your computer and use it in GitHub Desktop.
# cookbooks/users/attributes/default.rb
default["sudo"]["users"] = ["userA", "userB"]
{
"name": "production",
"description": "",
"cookbook_versions": {
},
"json_class": "Chef::Environment",
"chef_type": "environment",
"default_attributes": {
"sudo": {
"users" : ["userC"]
}
},
"override_attributes": {
}
}
#
# Cookbook Name:: users
# Recipe:: default
#
# Copyright 2013, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#
template "/tmp/userlist" do
mode "0777"
source "userlist.erb"
end
userA
userB
userC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment