- From: "Van Fossan,Randy" <
>
- To: <
>
- Cc: "Chris" <
>, <
>
- Subject: [chef] RE: Re: RE: Re: RE: ohai, number ldap accounts
- Date: Wed, 28 Mar 2012 20:39:34 -0400
Hi Chris,
I made the following changes to my chef-client cookbook and I cannot get it
to work.
I added the following to the chef-client/attributes/default.rb
default[:ohai][:disabled_plugins] = [ "passwd" ]
And I added the following to chef-client/templates/default/client.rb.erb
<% if node.attribute?("ohai") && node["ohai"].attribute?("disabled_plugins")
-%>
Ohai::Config[:disabled_plugins] = [<%=
node["ohai"]["disabled_plugins"].join(",") %>]
<% end -%>
It doesn't populate the /etc/chef/client.rb file. I am not sure what I am
doing wrong.
Randy
-----Original Message-----
From: Chris
[mailto:
Sent: Wednesday, March 28, 2012 2:26 PM
To: Van Fossan,Randy
Subject: Re: [chef] Re: RE: Re: RE: ohai, number ldap accounts
Actually, I dropped into the environments. But yeah, thats pretty much what
it looks like.
On Wed, Mar 28, 2012 at 11:20 AM, Van Fossan,Randy
<
>
wrote:
>
Hi Chris,
>
>
I assume that your attributes file looks something like
>
>
default[:ohai][:disabled_plugins] = ["passwd","someotherplugin"]
>
>
Thanks
>
Randy
>
>
-----Original Message-----
>
From: Chris
>
[mailto:
>
Sent: Wednesday, March 28, 2012 1:46 PM
>
To:
>
>
Subject: [chef] Re: RE: Re: RE: ohai, number ldap accounts
>
>
While this probably isn't the 'proper' way, I added:
>
>
<% if node.attribute?("ohai") &&
>
node["ohai"].attribute?("disabled_plugins") -%>
>
>
Ohai::Config[:disabled_plugins] = [<%=
>
node["ohai"]["disabled_plugins"].join(",") %>] <% end -%>
>
>
>
to the client.rb template in the chef-client cookbook. Yes, it does go away
>
if you upgrade your cookbook, but for me thats been pretty safe since it
>
takes an act of nature to upgrade anything.
>
>
>
On Wed, Mar 28, 2012 at 9:52 AM, 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 am not sure where to incorporate this...
>
> Ohai::Config[:disabled_plugins] = [ "passwd" ]
>
>
>
> Thanks all
>
> Randy
>
>
>
> -----Original Message-----
>
> From: Daniel DeLeo
>
> [mailto:
>
> On Behalf Of Daniel
>
> DeLeo
>
> Sent: Wednesday, March 28, 2012 11:58 AM
>
> To:
>
>
>
> Cc:
>
>
;
>
>
>
>
;
>
>
>
>
>
> Subject: [chef] Re: RE: ohai, number ldap accounts
>
>
>
>
>
>
>
> On Wednesday, March 28, 2012 at 8:25 AM,
>
>
>
> wrote:
>
>
>
> > Hi Randy,
>
> >
>
> > We are experiencing this very same issue and were recently looking for a
>
> > solution. We use centrify to pull in AD accounts for authorization. The
>
> > nodes are pulling in tons of data for all of these user groups and
>
> > accounts.
>
> >
>
> > If we're not doing anything with specific user accounts in
>
> > recipes/templates, should we be safe to just disable the Ohai plugin
>
> > that pulls in the user accounts from AD?
>
> Chef doesn't use ohai data to lookup user/group data for
>
> file/template/directory or execute/script or user/group resources. It uses
>
> Ruby's `Etc` module, which in turn uses the `getpwent` family of functions.
>
>
>
> So it's totally safe to remove the plugin if you don't need the data for
>
> other reasons.
>
>
>
> --
>
> Dan DeLeo
>
>
>
>
>
>
>
>
--
>
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted
>
by applicable law.
>
>
--
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted
by applicable law.
- [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.