Chef Solo --format options

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:

root@practicingruby:/tmp/vagrant-chef-1# chef-solo --version
Chef: 11.6.2
root@practicingruby:/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)
root@practicingruby:/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

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:

root@practicingruby:/tmp/vagrant-chef-1# chef-solo --version
Chef: 11.6.2
root@practicingruby:/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)
root@practicingruby:/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

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:

chef-solo (executable)

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:

root@practicingruby:/tmp/vagrant-chef-1# chef-solo --version
Chef: 11.6.2
root@practicingruby:/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)
root@practicingruby:/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

Doc bug, the formats listed are the ones that knife supports when displaying information from the chef server.

Formatters for chef {client, solo} are extensible, but the ones included by default are “doc” and “min”

I’ll alert our writer to the doc issue.

--
Daniel DeLeo

I see. Thanks for the clarification.

-Mathias

On Thu, Nov 7, 2013 at 8:40 PM, Daniel DeLeo dan@kallistec.com wrote:

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:

chef-solo (executable)

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:

root@practicingruby:/tmp/vagrant-chef-1# chef-solo --version
Chef: 11.6.2
root@practicingruby:/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)
root@practicingruby:/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

Doc bug, the formats listed are the ones that knife supports when
displaying information from the chef server.

Formatters for chef {client, solo} are extensible, but the ones included
by default are “doc” and “min”

https://github.com/opscode/chef/tree/master/lib/chef/formatters

I’ll alert our writer to the doc issue.

--
Daniel DeLeo