Skip to content

Instantly share code, notes, and snippets.

@bryanwb
Created October 9, 2011 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bryanwb/1273758 to your computer and use it in GitHub Desktop.
Save bryanwb/1273758 to your computer and use it in GitHub Desktop.
data_bag('users').each do |user_name|
u = data_bag_item('users', user_name)
user user_name do
username user_name
password u['password']
shell u['shell']
supports :manage_home => u['manage_home']
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment