cookbook 'newrelic-sysmond-policy', '~> 0.1.3'
newrelic-sysmond-policy (3) Versions 0.1.3 Follow1
Installs/Configures newrelic-sysmond-policy startup/shutdown scripts
cookbook 'newrelic-sysmond-policy', '~> 0.1.3', :supermarket
knife supermarket install newrelic-sysmond-policy
knife supermarket download newrelic-sysmond-policy
newrelic-sysmond-policy
Cookbook containing a start/stop script to associate the server with a particular server policy at startup and possibly another one at shutdown (for cloud "spot" or "autoscale" VMs)
Supported Platforms
- CentOS 5.6
- Ubuntu 14.04
It probably works on any other platform that uses init-style startup/shutdown scripts
Attributes
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>[:newrelic_sysmond_policy][:installprereqs]</tt></td>
<td>Boolean</td>
<td>whether to install prerequisites (node.js, npm, newrelic-sysmond-policy package) via the nodejs cookbook (if false, make sure that newrelic-sysmond-policy is installed and on your path) </td>
<td><tt>true</tt></td>
</tr>
<tr>
<td><tt>[:newrelic_sysmond_policy][:path]</tt></td>
<td>String</td>
<td>Path to newrelic-sysmond-policy (important if you are installing the prerequisites on your own) </td>
<td><tt>/usr/bin/newrelic-sysmond-policy</tt></td>
</tr>
<tr>
<td><tt>[:newrelic][:apikey]</tt></td>
<td>String</td>
<td>NewRelic API Key. Must be set. Read more</td>
<td><tt>nil</tt></td>
</tr>
<tr>
<td><tt>[:newrelic][:server_monitoring][:startup_policy]</tt></td>
<td>String</td>
<td>Policy to assign at startup</td>
<td><tt>Default server alert policy</tt></td>
</tr>
<tr>
<td><tt>[:newrelic][:server_monitoring][:shutdown_policy]</tt></td>
<td>String</td>
<td>Policy to assign at shutdown. By default this will take whatever is configured as the startup policy, effectively leaving the server in the same policy at shutdown. In a dynamically provisioned environment, however, you may want to set the shutdown environment to something useful to distiguish between servers which are not reporting and servers which were intentionally deprovisioned</td>
<td><tt>Takes value from [:newrelic][:server_monitoring][:startup_policy]</tt></td>
</tr>
</table>
Usage
newrelic-sysmond-policy::default
Include newrelic-sysmond-policy
in your node's run_list
:
{ "run_list": [ "recipe[newrelic-sysmond-policy::default]" ] }
Contributing
- Fork the repository on Github
- Create a named feature branch (i.e.
add-new-recipe
) - Write you change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request
License and Authors
Author:: Issac Goldstand
Dependent cookbooks
nodejs >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.1.3 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.3 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.3 failed this metric
FC007: Ensure recipe dependencies are reflected in cookbook metadata: newrelic-sysmond-policy/recipes/default.rb:4
FC053: Metadata uses the deprecated "recommends" keyword: newrelic-sysmond-policy/metadata.rb:13
FC064: Ensure issues_url is set in metadata: newrelic-sysmond-policy/metadata.rb:1
FC065: Ensure source_url is set in metadata: newrelic-sysmond-policy/metadata.rb:1
FC066: Ensure chef_version is set in metadata: newrelic-sysmond-policy/metadata.rb:1
FC069: Ensure standardized license defined in metadata: newrelic-sysmond-policy/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.3 passed this metric
Testing File Metric
0.1.3 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.3 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.3 failed this metric
0.1.3 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.3 failed this metric
FC007: Ensure recipe dependencies are reflected in cookbook metadata: newrelic-sysmond-policy/recipes/default.rb:4
FC053: Metadata uses the deprecated "recommends" keyword: newrelic-sysmond-policy/metadata.rb:13
FC064: Ensure issues_url is set in metadata: newrelic-sysmond-policy/metadata.rb:1
FC065: Ensure source_url is set in metadata: newrelic-sysmond-policy/metadata.rb:1
FC066: Ensure chef_version is set in metadata: newrelic-sysmond-policy/metadata.rb:1
FC069: Ensure standardized license defined in metadata: newrelic-sysmond-policy/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.3 passed this metric
Testing File Metric
0.1.3 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.3 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.3 failed this metric
FC053: Metadata uses the deprecated "recommends" keyword: newrelic-sysmond-policy/metadata.rb:13
FC064: Ensure issues_url is set in metadata: newrelic-sysmond-policy/metadata.rb:1
FC065: Ensure source_url is set in metadata: newrelic-sysmond-policy/metadata.rb:1
FC066: Ensure chef_version is set in metadata: newrelic-sysmond-policy/metadata.rb:1
FC069: Ensure standardized license defined in metadata: newrelic-sysmond-policy/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.3 passed this metric
Testing File Metric
0.1.3 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.3 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.3 failed this metric
0.1.3 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