Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

server_inventory (4) Versions 0.0.4

Installs/Configures server_inventory

Policyfile
Berkshelf
Knife
cookbook 'server_inventory', '~> 0.0.4', :supermarket
cookbook 'server_inventory', '~> 0.0.4'
knife supermarket install server_inventory
knife supermarket download server_inventory
README
Dependencies
Quality 17%
= DESCRIPTION: ****** WARNING ****************** Use of the role_count.rb is very hard on the chef server as it has to run a search on every role you have this should not be a problem as long as you only run on one node ( not sure why you would run on more) We have 132 servers hitting the chef server every 30 minutes with 60 roles and it takes 75 seconds to run in our env. ****** You have been warned ****** My developers and VP want to know how servers are being used, so I embed the page generated by this cookbook in our wiki and its always up to date! Uses a simple javascript sort that I found at http://yoast.com/articles/sortable-table/ Whats on the page that is generated: inventory.rb: A time stamp of the page generation A html tabe giving the following for each node <tr> <th width="13%">Name</th> <th width="13%">IP</th> <th width="13%">Hardware</th> <th width="13%">OS</th> <th width="24%">Roles</th> <th width="24%">Recipes</th> </tr> Lastly a server count role_count.rb: A time stamp of the page generation A html tabe giving the following for each node <tr> <th width="70%">Role</th> <th width="30%">Count</th> </tr> Lastly a role count = REQUIREMENTS: Requires a webserver to server the html page from the output location. = ATTRIBUTES: The path of the web directory you want to server the report from: default[:server_inventory][:output_dir] = /var/www/html Output format can be html, csv, incase you want to import to another system: default[:server_inventory][:output_format] = [ "html" ] = USAGE: Add the the run_list of any chef node and view pages via your brower. You may need to update the output_dir for your env. I suggest a roll, but its not nessary { "name": "SERVER_INVENTORY_ROLE", "default_attributes": { }, "json_class": "Chef::Role", "run_list": [ "recipe[server_inventory]", "recipe[server_inventory::role_count]" ], "description": "This role will be on one server that generates a up to date server list with every chef run", "chef_type": "role", "server_inventory": { "output_dir": "/var/www/html/myvirtual.com", "output_format": [ "html", "csv" ] } } }

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.0.4 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.0.4 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

0.0.4 failed this metric

FC064: Ensure issues_url is set in metadata: server_inventory/metadata.rb:1
FC065: Ensure source_url is set in metadata: server_inventory/metadata.rb:1
FC066: Ensure chef_version is set in metadata: server_inventory/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: server_inventory/metadata.rb:1
FC069: Ensure standardized license defined in metadata: server_inventory/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.0.4 passed this metric

Testing File Metric
            

0.0.4 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

0.0.4 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number