Created
July 16, 2014 11:02
-
-
Save kazuph/ce3237fdf71081ff65f0 to your computer and use it in GitHub Desktop.
ansilbeでnewrelic(サーバーリソース監視)を導入する ref: http://qiita.com/kazuph/items/96caa31fb0004835fca5
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
# NewRelicのリソース監視ツールを追加 | |
--- | |
- name: get repo | |
sudo: yes | |
yum: pkg={{item}} state=present | |
with_items: | |
- http://download.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm | |
- name: yum install | |
sudo: yes | |
yum: state=installed pkg=newrelic-sysmond | |
- name: set api key | |
sudo: yes | |
shell: | | |
nrsysmond-config --set license_key={{newrelic_api_key}} | |
- name: start | |
sudo: yes | |
service: name=newrelic-sysmond state=started enabled=yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment