Hi Andrea,
I tried including that in the ubuntu10.04-apt.erb bootstrap file and it didn't seem to make the change. Also, ( cat <<'EOP' <%= config_content %> EOP ) > /etc/chef/client.rb wasn't there. That is only in ubuntu10.04-gems.erb. Would this work? echo 'Ohai::Config[:disabled_plugins] = ["passwd", "dmi", "dmi_common"]' >> /etc/chef/client.rb Ian D. Rossi CD - Server Infrastructure Phone 23834 ________________________________________ From: Andrea Campi Sent: Thursday, March 29, 2012 3:19 AM To: Cc: Zulauf, Graham; Kiner, Kari; Subject: [chef] Re: RE: Re: RE: ohai, number ldap accounts On Wed, Mar 28, 2012 at 6:52 PM, Van Fossan,Randy < > wrote: > That is good news. I need to incorporate that in the chef-client cookbook so that when the node is bootstrapped, it doesn't pull the data in after the first run. Anyone, Know how I can incorporate the plugin disable when doing a bootstrap? I do not want to delete the plugin as there may be reason to use it in the future or on a particular node. I see you're making progress incorporating this into the chef-client cookbook, that's good. However both you and Ian were also asking about bootstrap, and I didn't see a reply about that. knife bootstrap uses a distro-specific template file that you can specify with -d DISTRO. Those files live inside the chef gem, in the lib/chef/knife/bootstrap directory. You can also look at them on GH [1]. To start customizing them, just copy them to your chef-repo: ${CHEF_REPO}/.chef/bootstrap/ You will find something like this: ( cat <<'EOP' <%= config_content %> EOP ) > /etc/chef/client.rb Changing that to: ( cat <<'EOP' <%= config_content %> Ohai::Config[:disabled_plugins] = [ "passwd" ] EOP ) > /etc/chef/client.rb should be what you need. Then of course if you use the chef-client, you will still need to make sure it does the right thing. But this will take care of the first run. Hope this helps. Andrea 1: https://github.com/opscode/chef/tree/master/chef/lib/chef/knife/bootstrap |
Archive powered by MHonArc 2.6.16.