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