Skip to content

Instantly share code, notes, and snippets.

@avimar
Created July 10, 2013 17:47
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save avimar/5968480 to your computer and use it in GitHub Desktop.
Save avimar/5968480 to your computer and use it in GitHub Desktop.
Install newrelic with salt-stack on your debian/ubuntu system
#install instructions at https://newrelic.com/docs/server/server-monitor-installation-ubuntu-and-debian
base:
pkgrepo.managed:
- humanname: Newrelic PPA
- name: deb http://apt.newrelic.com/debian/ newrelic non-free
# - dist: precise
- file: /etc/apt/sources.list.d/newrelic.list
- keyid: 548C16BF
- keyserver: subkeys.pgp.net
- require_in:
- pkg: newrelic-sysmond
newrelic-sysmond:
pkg:
- installed
service:
- running
newrelic-license-key:
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
@avimar
Copy link
Author

avimar commented Jul 10, 2013

if not already installed... pkgrepo.managed requires the apt package of: python-apt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment