- From: Andrea Campi <
>
- To:
- Cc:
,
,
- Subject: [chef] Re: RE: Re: RE: ohai, number ldap accounts
- Date: Thu, 29 Mar 2012 09:19:33 +0200
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
- [chef] ohai, number ldap accounts, Van Fossan,Randy, 03/28/2012
- [chef] RE: ohai, number ldap accounts, IDROSSI, 03/28/2012
- [chef] Re: RE: ohai, number ldap accounts, Daniel DeLeo, 03/28/2012
- [chef] RE: Re: RE: ohai, number ldap accounts, Van Fossan,Randy, 03/28/2012
- [chef] Re: RE: Re: RE: ohai, number ldap accounts, Chris, 03/28/2012
- Message not available
- Message not available
- [chef] RE: Re: RE: Re: RE: ohai, number ldap accounts, Van Fossan,Randy, 03/28/2012
- [chef] Re: Re: RE: Re: RE: ohai, number ldap accounts, Chris, 03/28/2012
- [chef] RE: Re: Re: RE: Re: RE: ohai, number ldap accounts, Van Fossan,Randy, 03/28/2012
- [chef] RE: Re: Re: RE: Re: RE: ohai, number ldap accounts, Van Fossan,Randy, 03/28/2012
- [chef] RE: RE: Re: RE: ohai, number ldap accounts, IDROSSI, 03/28/2012
- [chef] Re: RE: Re: RE: ohai, number ldap accounts, Andrea Campi, 03/29/2012
- [chef] RE: Re: RE: Re: RE: ohai, number ldap accounts, Van Fossan,Randy, 03/29/2012
- [chef] RE: Re: RE: Re: RE: ohai, number ldap accounts, IDROSSI, 03/29/2012
- [chef] RE: Re: RE: Re: RE: ohai, number ldap accounts, Van Fossan,Randy, 03/29/2012
- [chef] Re: RE: ohai, number ldap accounts, Peter Struijk, 03/28/2012
Archive powered by MHonArc 2.6.16.