Hello guys
Im a recently new user on chef and vagrant so im just exploring and i would like to start making a small projet with 2 VMs with web servers on them, and a reverse proxy. Im following the guides on the Chef website which are very detailed and helpfull but i keep getting an error.
https://learn.chef.io/modules/learn-the-basics/ubuntu/virtualbox/configure-a-package-and-service#/
Im trying to install apache2 on my first webserver but i get this error:
Recipe: @recipe_files::/Users/iVic/Desktop/Projets/Reseau/DAISY/chef-repo/webserver.rb
* apt_update[Update the apt cache daily] action periodic (up to date)
* homebrew_package[apache2] action install
================================================================================
Error executing action `install` on resource 'homebrew_package[apache2]'
================================================================================
Chef::Exceptions::CannotDetermineHomebrewOwner
----------------------------------------------
Could not find the "brew" executable in /usr/local/bin or anywhere on the path.
Resource Declaration:
---------------------
# In /Users/iVic/Desktop/Projets/Reseau/DAISY/chef-repo/webserver.rb
6: package 'apache2'
7:
Compiled Resource:
------------------
# Declared in /Users/iVic/Desktop/Projets/Reseau/DAISY/chef-repo/webserver.rb:6:in `from_file'
homebrew_package("apache2") do
package_name "apache2"
action [:install]
default_guard_interpreter :default
declared_type :package
cookbook_name "@recipe_files"
recipe_name "/Users/iVic/Desktop/Projets/Reseau/DAISY/chef-repo/webserver.rb"
end
System Info:
------------
chef_version=13.6.4
platform=mac_os_x
platform_version=10.12.6
ruby=ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin14]
program_name=chef-client worker: ppid=7859;start=17:23:59;
executable=/opt/chefdk/bin/chef-client
Does anyone has an idea of what could be causing it? can i get some advice?
Thank you very much!!