Skip to content

Instantly share code, notes, and snippets.

@chhibber
Last active December 19, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save chhibber/5968213 to your computer and use it in GitHub Desktop.
Save chhibber/5968213 to your computer and use it in GitHub Desktop.
Saltstack - Newrelic System Daemon Setup
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.wait:
- name: nrsysmond-config --set license_key=<INPUT YOUR KEY HERE>
- unless: grep "license_key=<INPUT YOUR KEY HERE>" /etc/newrelic/nrsysmond.cfg
- watch:
- pkg: newrelic-sysmond
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment