[chef] Passing run_list to windows node which is to be bootstrapped.


Chronological Thread 
  • From: Taras Klym < >
  • To:
  • Subject: [chef] Passing run_list to windows node which is to be bootstrapped.
  • Date: Tue, 14 Jul 2015 12:03:32 +0300

Hi guys,

I am doing some scripting for automatic servers creation on AWS side and bootstrapping it. 

Here are some parameters I compose for passing to bootstrap command:
$role='role[eu1],role[db],role[sx]'
$runlist = "$role,recipe[push-jobs],recipe[hello::ZabbixAgentInstUpd]"
$login = "Administrator"
$tag = $Env

And here is command by itself:
knife bootstrap windows winrm $ServerIP --auth-timeout 1 -N $computerNameTag --bootstrap-version "12.3.0" -r $runlist -x $login -P $DBServerPassword

I have just realized that after node is bootstrapped it doesn't have roles assigned.

So the main question is as follow:
Is passed "runlist" to node during bootstrap stays assigned to node after first chef-client run completed or it's just "runlist" for bootstrap?
And actually at the end node doesn't have any roles/recipes assigned to it which were passed during bootstrap?

Thank you all guys kin advance for your clarifications. 

Regards,
Taras.



Archive powered by MHonArc 2.6.16.

§