[chef] Re: Chef Solo --format options


Chronological Thread 
  • From: Daniel Condomitti < >
  • To:
  • Subject: [chef] Re: Chef Solo --format options
  • Date: Thu, 7 Nov 2013 11:41:42 -0800

Those are the formatters for operations like `node show`. Minimal and doc are formatters for run output so I think the docs on that command are just incorrect.

On Thursday, November 7, 2013 at 11:37 AM, Mathias Lafeldt wrote:

Hi,

I'm currently building some tooling around Chef Solo and have a question about its CLI: What version of Chef actually supports the --format values listed here:

http://docs.opscode.com/ctl_chef_solo.html

The listed formats are summary (default), text, json, yaml, and pp. However, when I run Chef 10.28.0 or 11.6.2 or 11.8.0, those formats don't appear to exist at all.

What I get instead:

:/tmp/vagrant-chef-1# chef-solo --version
Chef: 11.6.2
:/tmp/vagrant-chef-1# chef-solo -c solo.rb -j dna.json --format=summary
[2013-11-07T19:33:17+00:00] FATAL: Chef::Formatters::UnknownFormatter: No output formatter found for summary (available: null, doc, minimal, min)
:/tmp/vagrant-chef-1# chef-solo -c solo.rb -j dna.json -F pp
[2013-11-07T19:33:40+00:00] FATAL: Chef::Formatters::UnknownFormatter: No output formatter found for pp (available: null, doc, minimal, min)


As you can see, the only available formatters are actually null, doc, minimal, and min.

Is that a problem with the documentation or am I doing something wrong?

-Mathias





Archive powered by MHonArc 2.6.16.

§