[chef] Re: Re: Re:


Chronological Thread 
  • From: Daniel DeLeo < >
  • To:
  • Subject: [chef] Re: Re: Re:
  • Date: Tue, 10 Sep 2013 09:34:23 -0700


On Tuesday, September 10, 2013 at 5:13 AM, Shyam Goud wrote:

Thanks for the reply Steven,

I did that too.. on my chef-server

/opt/chef-server/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/knife/core/bootstrap_context.rb
---- snip -------------
def config_content
client_rb = <<-CONFIG
log_level        :info
log_location     STDOUT
chef_server_url  " :chef_server_url]}"
validation_client_name " :validation_client_name]}"
-----------------------


But still client.rb on bootstrapped machine shows as

:/etc# cat chef/client.rb
log_level        :auto
log_location     STDOUT
chef_server_url  "https://chefserver.nvsd.com/"
validation_client_name "chef-validator"
node_name "controllernode.nvsd.com"

:/etc#


Regards,
Shyam.

You need to do any hacking on the box you run `knife bootstrap` from. This won't affect any already-bootstrapped machines (though you can manage those with the chef-client cookbook to your liking).

Take a look at bootstrap templates for customizing the config on the bootstrapped machine:

http://docs.opscode.com/knife_bootstrap.html





Archive powered by MHonArc 2.6.16.

§