diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..d0cfb387de356b3939ed4e841f622de57015ede9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +hello.txt +/.vagrant diff --git a/Vagrantfile b/Vagrantfile index ec3f9119ce585cb6efeeaec86edda37538606e2b..721408590d9404757cf203809e7a9e5d6b68a03f 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -2,7 +2,8 @@ # vi: set ft=ruby : Vagrant.configure(2) do |config| - config.vm.box = "denis/archlinux64" + #config.vm.box = "denis/archlinux64" + config.vm.box = "ubuntu/trusty64" # config.vm.network "forwarded_port", guest: 80, host: 8080 @@ -44,4 +45,8 @@ Vagrant.configure(2) do |config| # sudo apt-get update # sudo apt-get install -y apache2 # SHELL + + config.vm.provision "chef_apply" do |chef| + chef.recipe = File.read("hello.rb") + end end diff --git a/hello.rb b/hello.rb new file mode 100644 index 0000000000000000000000000000000000000000..332a8d16e15bd47f11fa6e05e90d91765d40d4a4 --- /dev/null +++ b/hello.rb @@ -0,0 +1,3 @@ +file '/vagrant/hello.txt' do + content "Hello World!" +end