- From: Mike <
>
- To: Joshua Timberman <
>
- Cc: Chef Users <
>, "
Developers" <
>
- Subject: [chef-dev] Re: COOK-3276 - change attributes from normal to default
- Date: Tue, 9 Jul 2013 15:36:12 -0400
What's the risk of leaving these node attributes there?
Especially if I've set normal/override level attributes for chef
client in other instances, is this operation considered 100% safe?
-M
On Tue, Jul 9, 2013 at 2:39 PM, Joshua Timberman
<
>
wrote:
>
Ohai Chefs,
>
>
We just merged COOK-3276, which changes the attribute setting in the
>
various service recipes to `node.default` instead of `node.set` (#normal).
>
After this change you may have unnecessary attribute settings on your
>
nodes, which can be removed using knife exec. The :all argument to
>
transform will modify all nodes. The argument can be a search query (e.g.,
>
"chef_environment:dev").
>
>
knife exec -E "nodes.transform(:all) {|n|
>
n.normal['chef_client'].delete('bin') }"
>
>
One could also delete the `chef_client` attribute tree entirely, since
>
there shouldn't be any other "normal" level attributes set.
>
>
knife exec -E "nodes.transform(:all) {|n| n.normal.delete('chef_client') }"
>
>
COOK-3276 isn't in the current version, only on the master branch, but this
>
will be in an upcoming release of the cookbook.
>
>
Cheers,
>
Joshua
Archive powered by MHonArc 2.6.16.