I am studying a chef at the moment using OpsWorks, I am currently trying to create a recipe that will install 2 packages in one copy. I saved my cookbook on github .. there I have a recipe that looks like this: webserver.rb
# Install apache and start the service httpd_service 'site' do mpm 'prefork' action [:create, :start] end
I am following an AWS tutorial creating a LAMP environment. Unfortunately, when I run this in my instance, opsworks_cookbook_demo :: default (it will run some of them, including the web server.) I get an error that precondition httpd cookbook not found , I already added to my metadaba.rb, it depends from httpd '' ~> .. ', Can anyone guide me on what's wrong here. Coz I assume that whenever you put "httpd" depends, it will expand my cookbook to use this cookbook.
Do I need berkshelf for this case? (I am currently using AWS OpsWorks and have my recipe on github)
source share