cookbook 'oneapm-ci-agent', '~> 0.1.0'
oneapm-ci-agent (1) Versions 0.1.0 Follow0
Installs/Configures oneapm-ci-agent components
cookbook 'oneapm-ci-agent', '~> 0.1.0', :supermarket
knife supermarket install oneapm-ci-agent
knife supermarket download oneapm-ci-agent
oneapm-ci-agent Cookbook
Chef recipes to deploy oneapm-ci-agent and configuration automatically.
Requirements
- chef >= 10.14
Platforms
- Amazon Linux
- CentOS
- Debian
- RedHat
- Scientific Linux
- Ubuntu
Cookbooks
The following Opscode cookbooks are dependencies:
apt
chef_handler
yum
Recipes
default
Just a placeholder for now, when we have more shared components they will probably live there.
oneapm-ci-agent
Installs the oneapm-ci-agent on the target system, sets the LICENSE key, and start the service to report on the local system metrics
oneapm-ci-sdk
Installs the language-specific libraries to interact with onestatsd
. Not completed yet.
other
There are many other integration-specific recipes, that are meant to assist in deploying the correct agent configuration files and dependencies for a given integration.
Usage
-
Add this cookbook to your chef server, either by installing with knife or by adding it to your Berksfile:
cookbook 'oneapm-ci-agent', '~> 0.1.0'
Add your LICENSE Key as a node attribute via an
environment
orrole
or by declaring it in another cookbook at a higher precedence level.-
Associate the recipes with the desired
roles
, i.e. "role:example" should start the agent with "oneapm-ci::oneapm-ci-agent". Here's an example role:name 'example' description 'Example role using Oneapm-ci' default_attributes( 'oneapm-ci' => { 'license_key' => 'license_key', } ) run_list %w( recipe[oneapm-ci::oneapm-ci-agent] )
And upload the role to the chef server, add your role to run_list.
'run_list': [ 'role[example]' ]
Or, you update the oneapm-ci-agent specific attribute with your LICENSE key and upload the updated cookbook, then add cookbook to run_list:
'run_list': [ 'recipe[oneapm-ci-agent::oneapm-ci-agent]']
Wait until
chef-client
runs on the target node (or trigger chef-client manually if you're impatient)
Attribute
-
license_key
- The OneAPM license key to associate your Agent's data with your organization. -
hostname
- Default node hostname. Force the hostname to whatever you want if you want. -
tags
- Set the host's tags. -
log_level
- Default INFO.
Dependent cookbooks
apt >= 0.0.0 |
chef_handler ~> 1.1.0 |
yum >= 0.0.0 |
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
FC052: Metadata uses the deprecated "suggests" keyword: oneapm-ci-agent/metadata.rb:24
FC064: Ensure issues_url is set in metadata: oneapm-ci-agent/metadata.rb:1
FC065: Ensure source_url is set in metadata: oneapm-ci-agent/metadata.rb:1
FC066: Ensure chef_version is set in metadata: oneapm-ci-agent/metadata.rb:1
FC068: Ensure license is set in metadata: oneapm-ci-agent/metadata.rb:1
FC069: Ensure standardized license defined in metadata: oneapm-ci-agent/metadata.rb:1
FC120: Do not set the name property directly on a resource: oneapm-ci-agent/recipes/repository.rb:28
FC121: Cookbook depends on cookbook made obsolete by Chef 14: oneapm-ci-agent/metadata.rb:1
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
FC052: Metadata uses the deprecated "suggests" keyword: oneapm-ci-agent/metadata.rb:24
FC064: Ensure issues_url is set in metadata: oneapm-ci-agent/metadata.rb:1
FC065: Ensure source_url is set in metadata: oneapm-ci-agent/metadata.rb:1
FC066: Ensure chef_version is set in metadata: oneapm-ci-agent/metadata.rb:1
FC068: Ensure license is set in metadata: oneapm-ci-agent/metadata.rb:1
FC069: Ensure standardized license defined in metadata: oneapm-ci-agent/metadata.rb:1
FC120: Do not set the name property directly on a resource: oneapm-ci-agent/recipes/repository.rb:28
FC121: Cookbook depends on cookbook made obsolete by Chef 14: oneapm-ci-agent/metadata.rb:1
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
FC064: Ensure issues_url is set in metadata: oneapm-ci-agent/metadata.rb:1
FC065: Ensure source_url is set in metadata: oneapm-ci-agent/metadata.rb:1
FC066: Ensure chef_version is set in metadata: oneapm-ci-agent/metadata.rb:1
FC068: Ensure license is set in metadata: oneapm-ci-agent/metadata.rb:1
FC069: Ensure standardized license defined in metadata: oneapm-ci-agent/metadata.rb:1
FC120: Do not set the name property directly on a resource: oneapm-ci-agent/recipes/repository.rb:28
FC121: Cookbook depends on cookbook made obsolete by Chef 14: oneapm-ci-agent/metadata.rb:1
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