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

newrelic-sysmond-policy (3) Versions 0.1.0

Installs/Configures newrelic-sysmond-policy startup/shutdown scripts

Policyfile
Berkshelf
Knife
cookbook 'newrelic-sysmond-policy', '= 0.1.0', :supermarket
cookbook 'newrelic-sysmond-policy', '= 0.1.0'
knife supermarket install newrelic-sysmond-policy
knife supermarket download newrelic-sysmond-policy
README
Dependencies
Quality 0%

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

  1. Fork the repository on Github
  2. Create a named feature branch (i.e. add-new-recipe)
  3. Write you change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request

License and Authors

Author:: Issac Goldstand

Dependent cookbooks

nodejs ~> 2.0.0
newrelic ~> 2.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Foodcritic Metric
            

0.1.0 failed this metric

FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/544e7cd396c3498e562b9717/newrelic-sysmond-policy/attributes/default.rb:1
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/544e7cd396c3498e562b9717/newrelic-sysmond-policy/attributes/default.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/544e7cd396c3498e562b9717/newrelic-sysmond-policy/attributes/default.rb:4
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/544e7cd396c3498e562b9717/newrelic-sysmond-policy/attributes/default.rb:5
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/544e7cd396c3498e562b9717/newrelic-sysmond-policy/attributes/default.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/544e7cd396c3498e562b9717/newrelic-sysmond-policy/recipes/default.rb:3
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/544e7cd396c3498e562b9717/newrelic-sysmond-policy/recipes/default.rb:17
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/544e7cd396c3498e562b9717/newrelic-sysmond-policy/recipes/default.rb:24
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/544e7cd396c3498e562b9717/newrelic-sysmond-policy/templates/default/init_d.erb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/544e7cd396c3498e562b9717/newrelic-sysmond-policy/templates/default/init_d.erb:12