Skip to content

Commit

Permalink
Update configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
abtris committed Feb 3, 2011
1 parent 81c9d16 commit d82aed0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vagrant
6 changes: 1 addition & 5 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,7 @@ Vagrant::Config.run do |config|
#
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "cookbooks"
# chef.add_recipe "mysql"
# chef.add_role "web"
#
# # You may also specify custom JSON attributes:
# chef.json = { :mysql_password => "foo" }
chef.add_recipe("vagrant_main")
end

# Enable provisioning with chef server, specifying the chef server URL,
Expand Down
5 changes: 5 additions & 0 deletions cookbooks/vagrant_main/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
action :run
end

execute "apt-update" do
command "sudo apt-get update"
action :run
end

# Some neat package (subversion is needed for "subversion" chef ressource)
%w{ debconf subversion mc htop curl jenkins }.each do |a_package|
package a_package
Expand Down

0 comments on commit d82aed0

Please sign in to comment.