Created
July 10, 2013 17:47
-
-
Save avimar/5968480 to your computer and use it in GitHub Desktop.
Install newrelic with salt-stack on your debian/ubuntu system
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if not already installed... pkgrepo.managed requires the apt package of: python-apt