[SOLVED] New on Chef, problem with tuto

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.


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]'
    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'
    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"
    System Info:
    ruby=ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin14]
    program_name=chef-client worker: ppid=7859;start=17:23:59;

Does anyone has an idea of what could be causing it? can i get some advice?

Thank you very much!!

Are you sure you are running this tutorial on a Ubuntu server? It looks like you are trying to run it on a Mac.

That was it! im very sorry for posting such a stupid mistake! Thank you very much!