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

scollector (5) Versions 3.0.1

Installs/Configures scollector

Policyfile
Berkshelf
Knife
cookbook 'scollector', '~> 3.0.1', :supermarket
cookbook 'scollector', '~> 3.0.1'
knife supermarket install scollector
knife supermarket download scollector
README
Dependencies
Quality 17%

scollector Cookbook

This cookbook downloads and installs scollector for [bosun](bosun.org).

Requirements

  • Chef Client 11.x or better

Platforms

  • Centos
  • Ubuntu
  • Debian

Dependent Cookbooks

Attributes

  • node['scollector']['host'] - Sets bosun server host
  • node['scollector']['port'] - Sets bosun server port
  • node['scollector']['bin_path'] - Sets path to scollector executable
  • node['scollector']['conf_dir'] - Sets dir for scollector config dir
  • node['scollector']['collectors_dir'] - Sets dir for external collectors (scollector runs all executables every interval sec in collectors_dir/interval/)
  • node['scollector']['config_cookbook'] - Cookbook where template scollector.conf.erb is stored
  • node['scollector']['tags'] - Tags to add to metrics, that scollector sends to bosun.
  • node['scollector']['init_style'] - explicitly set the init system used (systemd, runit, sysvinit, upstart or inittab). Systemd default for CentOS.

Recipes

This section describes the recipes in the cookbook and how to use them in your environment.

default

Includes the golang::packages and scollector::configure recipes by default.

configure

Configures scollector.conf and:

  • On CentOS 7+: installs systemd service for scollector and starts it
  • Elsewhere: enables runit service for scollector and starts it

Usage

You can include scollector::default in your company cookbook and redefine attributes there like

companyname-scollector/attributes/default.rb:

  • default['scollector']['host'] = '192.168.169.21'
  • default['scollector']['port'] = 8070

Or you can redefine it in your role or environment.

NOTE: Make sure that you are using golang cookbook from github (see Berksfile).

Testing

Kitchen tests via busser-serverspec:
* kitchen test

License & Authors

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Dependent cookbooks

golang >= 1.5.0
poise-service-runit >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

3.0.1 failed this metric

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

Contributing File Metric
            

3.0.1 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
            

3.0.1 failed this metric

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

No Binaries Metric
            

3.0.1 passed this metric

Testing File Metric
            

3.0.1 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
            

3.0.1 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