How can I cal a custom recipe from my default recipe? If I try
recipe 'my-base-server'
I get an error 1 argument for 0
What I want to achieve is a logical division of my recipe into base, web-server and app-server. I will setup each recipe as described in the answer below but I want to include these recipes in my default recipe. What I can't figure out is probably dead simple, is how to call the web-server recipe I write from the default recipe. The web server recipe will in turn call the nginx recipe as described below. I am using Berkshelf. I don't want to use roles and nodes. I can't find documentation about how to do this with only wrapper recipes.
Essentially, all I want to know is very basic, how to define a run list in a recipe. I can't find a reference anywhere that doesn't do it from a role or node.
You can use wrapper cookbooks like so (in this case, deploying a Tomcat app):
I just needed to namespace the recipe like this
where the recipe name was
My problem was that I had tried this after creating a cookbook by hand and it didn't work. After I used
it worked fine.