The name of cookbook when adding to run_list

Hi

what is different between

knife node run_list add “ldap-server.ingdirect.intranet” template::default

and

knife node run_list add “ldap-server.ingdirect.intranet” template

does it mean something when adding a string after :: in cook book name ?

Yes it means to run a specific recipe in a cookbook.

--sahil

On Tue, Aug 3, 2010 at 1:49 AM, le.huy@ingdirect.es wrote:

Hi

what is different between

knife node run_list add "ldap-server.ingdirect.intranet" template::default

and

knife node run_list add "ldap-server.ingdirect.intranet" template

does it mean something when adding a string after :: in cook book name ?

So if you don't specify a recipe, then it runs just the default one?

On Aug 3, 2010, at 4:30 PM, "sahil.cooner@gmail.com" sahil.cooner@gmail.com wrote:

Yes it means to run a specific recipe in a cookbook.

--sahil

On Tue, Aug 3, 2010 at 1:49 AM, le.huy@ingdirect.es wrote:
Hi

what is different between

knife node run_list add "ldap-server.ingdirect.intranet" template::default

and

knife node run_list add "ldap-server.ingdirect.intranet" template

does it mean something when adding a string after :: in cook book name ?

yep :slight_smile:

On Wed, Aug 4, 2010 at 9:22 AM, Ryan Chavez rsc@plusgrade.com wrote:

So if you don't specify a recipe, then it runs just the default one?

On Aug 3, 2010, at 4:30 PM, "sahil.cooner@gmail.com" <
sahil.cooner@gmail.com> wrote:

Yes it means to run a specific recipe in a cookbook.

--sahil

On Tue, Aug 3, 2010 at 1:49 AM, < le.huy@ingdirect.esle.huy@ingdirect.es

wrote:

Hi

what is different between

knife node run_list add "ldap-server.ingdirect.intranet" template::default

and

knife node run_list add "ldap-server.ingdirect.intranet" template

does it mean something when adding a string after :: in cook book name ?

That is selection of a recipe within the cookbook.

So when adding the extra string it will run the matching recipe file:

file: "cookbook/recipe.rb" = "cookbook::recipe"
file: "cookbook/default.rb" = "cookbook::default"
file: "cookbook/default.rb" = "cookbook"

On Tue, Aug 3, 2010 at 9:49 AM, le.huy@ingdirect.es wrote:

Hi

what is different between

knife node run_list add "ldap-server.ingdirect.intranet" template::default

and

knife node run_list add "ldap-server.ingdirect.intranet" template

does it mean something when adding a string after :: in cook book name ?