On Monday, May 12, 2014 at 18:22, Bryan McLellan wrote:
On Mon, May 12, 2014 at 9:44 AM, < "> > wrote:But my question is Is this possible to run chef-client json attributes bypassing as a json runtime parameters without creating attributes in a json filewhy am asking is if we want to pass a single attribute we need to create a jsonfile and need to pass those just for a single attributes.so only asking isthere any option in that for running a chef client override attributes as aruntime parameters.No, you cannot pass JSON on the command line. CHEF-1918 represents thefeature request.I think this was originally the design because it would be a bit of acomplicated syntax to type and quote, so it wouldn't be easy to use,and making another syntax, e.g. foo=bar, baz[faz][jaz]=stuff, wouldalso be complicated and probably limiting.Is the attribute value that you're trying to pass changing often? Isit something you could dynamically configure from other information?If it's something only a human could provide that always goes into thesame attribute, maybe read it out of an environment variable in arecipe and run like this:MY_VALUE=bob chef-client -r recipe[my_thing]Bryan
Archive powered by MHonArc 2.6.16.