[chef] Re: Re: Chef Solo --format options


Chronological Thread 
  • From: Mathias Lafeldt < >
  • To:
  • Subject: [chef] Re: Re: Chef Solo --format options
  • Date: Thu, 7 Nov 2013 20:58:59 +0100

I see. Thanks for the clarification.

-Mathias



On Thu, Nov 7, 2013 at 8:40 PM, Daniel DeLeo < " target="_blank"> > 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:

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

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





Archive powered by MHonArc 2.6.16.

§