Add a chef-solo recipe to example to prove it works
This commit is contained in:
parent
3da1d20c38
commit
e514f00487
2 changed files with 9 additions and 0 deletions
5
example/Vagrantfile
vendored
5
example/Vagrantfile
vendored
|
@ -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
|
||||
|
|
4
example/cookbooks/hello-world/recipes/default.rb
Normal file
4
example/cookbooks/hello-world/recipes/default.rb
Normal file
|
@ -0,0 +1,4 @@
|
|||
execute "hello world" do
|
||||
command "echo 'Hello from Chef!'"
|
||||
action :run
|
||||
end
|
Loading…
Reference in a new issue