Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Chef Client, Chef Solo
-
Labels:None
Description
This way of running chef-client/chef-solo would be useful:
chef-client -j "{\"run_list\": \"recipe[something]\"}"
I can try to implement this feature if you think it can be merged into master.
Issue Links
- relates to
-
CHEF-2131
chef-solo / chef-client should have a command-line option for -r / --run-list to specify the run list
-
I would wonder if there is a use case for this outside of the run_list. If not, perhaps being able to specify a override run_list would be more appropriate.
It'd probably be easier if passing JSON was a different flag than passing a file containing JSON, such as -J and -j, respectively. There is a question of when in the run this JSON would be applied. I would assume it would override all other values.
I'm lowering the priority of this improvement because it is fairly easy to workaround with the creation of a temporary file, and properly escaping JSON on the shell command line is often too difficult to be used.