- From: Steven Danna <
>
- To:
- Subject: [chef] Re: Re: multiple run_list items with knife??? knife node run_list remove xyz.abc.org 'recipe[chef-client]'
- Date: Tue, 13 Mar 2012 08:44:45 -0700
>
You can use knife exec until the fix gets merged
>
>
knife exec -E 'n=search(:node, "name:coolnode").first; n.run_list =
>
Chef::RunList.new("role[foo]", "role[bar]"); n.save'
Note that this will wipe out the existing run list entries. Something
like this may work, but it is a bit ugly:
knife exec -E 'n=nodes.show("NODENAME"); ["role[foo2]",
"role[bar2]"].each { |i| n.run_list << i }; n.save'
Archive powered by MHonArc 2.6.16.