From e514f00487c8659edc33a90a5916053b1b368273 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Fri, 29 Mar 2013 13:50:04 -0300 Subject: [PATCH] Add a chef-solo recipe to example to prove it works --- example/Vagrantfile | 5 +++++ example/cookbooks/hello-world/recipes/default.rb | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 example/cookbooks/hello-world/recipes/default.rb diff --git a/example/Vagrantfile b/example/Vagrantfile index 9108020..b8f4009 100644 --- a/example/Vagrantfile +++ b/example/Vagrantfile @@ -39,4 +39,9 @@ echo "Hi there I'm a shell script used for provisioning" # If you want to make some debugging noise # puppet.options << [ '--verbose', '--debug' ] end + + config.vm.provision :chef_solo do |chef| + chef.add_recipe "hello-world" + chef.log_level = :debug + end end diff --git a/example/cookbooks/hello-world/recipes/default.rb b/example/cookbooks/hello-world/recipes/default.rb new file mode 100644 index 0000000..0c96588 --- /dev/null +++ b/example/cookbooks/hello-world/recipes/default.rb @@ -0,0 +1,4 @@ +execute "hello world" do + command "echo 'Hello from Chef!'" + action :run +end