cookbook 'stackdriver', '~> 0.1.0'
stackdriver (1) Versions 0.1.0 Follow0
Installs/Configures stackdriver
cookbook 'stackdriver', '~> 0.1.0', :supermarket
knife supermarket install stackdriver
knife supermarket download stackdriver
Chef Cookbook for Stackdriver
- This Chef cookbook will deploy the the Stackdriver collectd agent.
- This cookbook requires a Stackdriver account. Free trial available.
Requirements
Chef >= 10
Platform
- Any RedHat based Linux distro, including: CentOS, Fedora, Amazon and other derivatives.
Attributes
-
default[:stackdriver][:api][:key]
= Your API Key is available from the Stackdriver App Settings Page. Override/replace "YOUR_API_KEY_HERE" with a valid API Key. -
default[:stackdriver][:collectd][:config]
= Defines whether or not to auto-generate your collectd config. Defaults to "yes."
Usage
- Download the Stackdriver cookbook into your
chef-repo/cookbooks/stackdriver
directory: (the cookbook directory name must be stackdriver) -
git clone https://github.com/dlaube/chef-stackdriver.git ./stackdriver
, or - manually download from the Opscode community site
http://community.opscode.com/cookbooks/stackdriver
, or knife cookbook site download stackdriver
- Set your apikey as described in the
Attributes
section. - You may override these via a Chef role or environment. Alternatively, edit
stackdriver/attributes/default.rb
if you are daring ;) - Set any other optional attributes described above, as desired.
- Upload the stackdriver cookbook to your chef server or hosted chef:
knife cookbook upload -a -o stackdriver
- Include
recipe[stackdriver]
in the run_list for all of your servers. knife node run_list add NODE_NAME_HERE 'recipe[stackdriver]'
- Run chef-client on your nodes in whatever manner suits you, such as
sudo chef-client
or a batch job. - View your system(s) within a few moments in the Stackdriver App
- Ensure that you see the Agent Status listed as active.
That's all there is to it!
Links
License and Author
Author:: David Laube
(The MIT License)
Copyright © 2013 Stackdriver and original authors.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without
limitation the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Software, and to permit persons
to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.1.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.0 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.1.0 failed this metric
FC064: Ensure issues_url is set in metadata: stackdriver/metadata.rb:1
FC065: Ensure source_url is set in metadata: stackdriver/metadata.rb:1
FC066: Ensure chef_version is set in metadata: stackdriver/metadata.rb:1
FC104: Use the :run action in ruby_block instead of :create: stackdriver/recipes/repo.rb:26
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.0 passed this metric
Testing File Metric
0.1.0 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.1.0 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
0.1.0 failed this metric
0.1.0 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.1.0 failed this metric
FC064: Ensure issues_url is set in metadata: stackdriver/metadata.rb:1
FC065: Ensure source_url is set in metadata: stackdriver/metadata.rb:1
FC066: Ensure chef_version is set in metadata: stackdriver/metadata.rb:1
FC104: Use the :run action in ruby_block instead of :create: stackdriver/recipes/repo.rb:26
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.0 passed this metric
Testing File Metric
0.1.0 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.1.0 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
0.1.0 failed this metric
FC065: Ensure source_url is set in metadata: stackdriver/metadata.rb:1
FC066: Ensure chef_version is set in metadata: stackdriver/metadata.rb:1
FC104: Use the :run action in ruby_block instead of :create: stackdriver/recipes/repo.rb:26
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.0 passed this metric
Testing File Metric
0.1.0 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.1.0 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
0.1.0 failed this metric
0.1.0 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