[chef] knife bootstrap passing a parameter for hostname


Chronological Thread 
  • From: "Van Fossan,Randy" < >
  • To: < >
  • Subject: [chef] knife bootstrap passing a parameter for hostname
  • Date: Wed, 21 Mar 2012 13:11:17 -0400

Is there a way to pass a parameter to the node when doing a knife bbootstrap?   I want to be able to pass the fqdn hostname to the host and change the hostname prior to the chef-client cookbook configures the chef-client.

 

If I use -N or --node-name with knife bootstrap, I am not sure how I can pass that to Chef-Solo so that it can change the hostname prior to running the chef-client cookbook.

 

knife bootstrap 192.168.1.50 -r 'recipe[hostname::change],recipe[chef-client],recipe[chef-client::delete_validation],role[Base]' --distro my-bootstrap -x user --sudo -V variable=myhost.myco.com

 

I think this has been mentioned here before, but I cannot find it..

 

Thanks

  Randy



  • [chef] knife bootstrap passing a parameter for hostname, Van Fossan,Randy, 03/21/2012

Archive powered by MHonArc 2.6.16.

§