From d82aed0527325b7a6b35bfd3219ca609b52b3e87 Mon Sep 17 00:00:00 2001 From: Ladislav Prskavec Date: Thu, 3 Feb 2011 14:58:42 +0100 Subject: [PATCH] Update configuration --- .gitignore | 1 + Vagrantfile | 6 +----- cookbooks/vagrant_main/recipes/default.rb | 5 +++++ 3 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8000dd9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.vagrant diff --git a/Vagrantfile b/Vagrantfile index 543b2f8..8aba1c3 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -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, diff --git a/cookbooks/vagrant_main/recipes/default.rb b/cookbooks/vagrant_main/recipes/default.rb index 0d53705..b33f8d7 100644 --- a/cookbooks/vagrant_main/recipes/default.rb +++ b/cookbooks/vagrant_main/recipes/default.rb @@ -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