Cookbook files not visible in Web UI / Management Portal?


#1

Hello,

It just struck me: regular cookbook files (the “files” subfolder of a
cookbook) are not visible in the webui, contrary to definitions,
libraries, recipes and templates. Is there any specific reason for
this?

Ringo


#2

On Wed, Dec 8, 2010 at 8:08 AM, Ringo De Smet ringo.desmet@gmail.com wrote:

Hello,

It just struck me: regular cookbook files (the “files” subfolder of a
cookbook) are not visible in the webui, contrary to definitions,
libraries, recipes and templates. Is there any specific reason for
this?

The open source webui now does show cookbook files. IIRC, this feature
was added in 0.9.10. I believe the original reason they were omitted
is that they could be arbitrarily large and/or binary, but we added
some heuristics to detect this and avoid displaying such files. The
Opscode platform doesn’t have this feature yet because we need to
rewrite the heuristics to work correctly with files from S3.

As a side note, the binary detection code uses Numeric#fdiv, which is
not defined on Ruby 1.8.6. I’ve created a bug ticket for this, and a
workaround is attached (just stick the monkey patch for Numeric#fdiv
in your server.rb).

Dan DeLeo

Ringo


#3

Dan,

On 8 December 2010 17:38, Daniel DeLeo dan@kallistec.com wrote:

The open source webui now does show cookbook files. IIRC, this feature
was added in 0.9.10. I believe the original reason they were omitted
is that they could be arbitrarily large and/or binary, but we added
some heuristics to detect this and avoid displaying such files. The
Opscode platform doesn’t have this feature yet because we need to
rewrite the heuristics to work correctly with files from S3.

I am running the full 0.9.12 stack, but still I don’t see the cookbook
files in the server web ui. Three of my cookbooks definitely have
cookbook files.

Ringo


#4

Dan,

On 9 December 2010 08:34, Ringo De Smet ringo.desmet@gmail.com wrote:

I am running the full 0.9.12 stack, but still I don’t see the cookbook
files in the server web ui. Three of my cookbooks definitely have
cookbook files.

Please ignore the above. Although I installed the 0.9.12 gems a while
ago, it seems chef-server-webui was still running from the 0.9.6 gems.
The client was running 0.9.12 though. I cleaned up my system, and now
everything is 0.9.12.

R.