Skip to content

Instantly share code, notes, and snippets.

@chhibber
Created January 14, 2014 06:53
Show Gist options
  • Save chhibber/8414223 to your computer and use it in GitHub Desktop.
Save chhibber/8414223 to your computer and use it in GitHub Desktop.
State File: New Relic
Newrelic - install repo:
cmd.run:
- name: rpm -Uvh http://download.newrelic.com/pub/newrelic/el5/i386/newrelic-repo-5-3.noarch.rpm
- unless: rpm -qa | grep newrelic-repo
newrelic-sysmond:
pkg:
- installed
- require:
- cmd: Newrelic - install repo
service:
- running
- require:
- pkg: newrelic-sysmond
Newrelic license install:
cmd.run:
- name: nrsysmond-config --set license_key=YOURLICENSEKEY
- unless: grep "license_key=YOURLICENSEKEY" /etc/newrelic/nrsysmond.cfg
- require:
- pkg: newrelic-sysmond
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment