- From: Chris <
>
- To:
- Subject: [chef] Re: RE: Re: RE: ohai, number ldap accounts
- Date: Wed, 28 Mar 2012 10:45:43 -0700
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.
- [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
Archive powered by MHonArc 2.6.16.