Skip to content

Instantly share code, notes, and snippets.

@coderforhire
Created September 4, 2012 19:26
Show Gist options
  • Save coderforhire/3625371 to your computer and use it in GitHub Desktop.
Save coderforhire/3625371 to your computer and use it in GitHub Desktop.
bag = data_bag_item("users", "VARIABLE")
user_account data_bag_item_users["VARIABLE"] do
comment data_bag_item_users["comment"]
home data_bag_item_users["home"]
end
{
"name": "data_bag_item_users_hsolo",
"json_class": "Chef::DataBagItem",
"chef_type": "data_bag_item",
"data_bag": "users",
"raw_data": {
"comment": "Han Solo",
"home": "/home/hsolo",
"ssh_keys": [
"123444...",
"456..."
],
"id": "hsolo"
}
}
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment