Skip to content

Instantly share code, notes, and snippets.

@cwjohnston
Created March 13, 2012 19:53
Show Gist options
  • Save cwjohnston/2031153 to your computer and use it in GitHub Desktop.
Save cwjohnston/2031153 to your computer and use it in GitHub Desktop.
{
"id": "base",
"packages": {
"ruby1.8-dev": "",
"swig": "",
"libssl-dev": "",
"git-core": "",
"tmux": "",
"sysstat": "",
"tcpdump": "",
"tshark": "",
"atool": "",
"slay": "",
"mercurial": ""
}
}
base = data_bag_item(:apps, 'base')
base['packages'].each do |p,v|
package p do
action :install
version v if v && v.length > 0
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment