Skip to content

Commit

Permalink
Added Vagrantfile with base role
Browse files Browse the repository at this point in the history
  • Loading branch information
janne committed Feb 7, 2013
1 parent 69c612a commit 469f63e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Vagrantfile
@@ -0,0 +1,23 @@
Vagrant::Config.run do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.

# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "precise32"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"

# Share an additional folder to the guest VM. The first argument is
# an identifier, the second is the path on the guest to mount the
# folder, and the third is the path on the host to the actual folder.
config.vm.share_folder "git", "git", ".."

config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "cookbooks"
chef.roles_path = "roles"
chef.data_bags_path = "data_bags"
chef.add_role "base"
# chef.json = { :mysql_password => "foo" }
end
end
# vi: set ft=ruby :
12 changes: 12 additions & 0 deletions roles/base.json
@@ -0,0 +1,12 @@
{
"name": "base",
"chef_type": "role",
"json_class": "Chef::Role",
"description": "Base role",
"run_list": [
"recipe[build-essential]",
"recipe[apt]",
"recipe[vim]",
"recipe[git]"
]
}

0 comments on commit 469f63e

Please sign in to comment.