Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
13e888db
Commit
13e888db
authored
Jul 29, 2014
by
Han Su Kim
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1352 from edx/han/newrelic
New Relic : Adding some logic for Amazon Linux
parents
a2e95ade
442bf012
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
8 deletions
+24
-8
playbooks/roles/newrelic/defaults/main.yml
+5
-4
playbooks/roles/newrelic/tasks/main.yml
+19
-4
No files found.
playbooks/roles/newrelic/defaults/main.yml
View file @
13e888db
...
@@ -16,9 +16,9 @@
...
@@ -16,9 +16,9 @@
#
#
newrelic_role_name
:
newrelic
newrelic_role_name
:
newrelic
NEWRELIC_REPO
:
'
deb
http://apt.newrelic.com/debian/
newrelic
non-free'
NEWRELIC_
DEBIAN_
REPO
:
'
deb
http://apt.newrelic.com/debian/
newrelic
non-free'
NEWRELIC_KEY_ID
:
'
548C16BF'
NEWRELIC_
DEBIAN_
KEY_ID
:
'
548C16BF'
NEWRELIC_
KEY_URL
:
'
https://download.newrelic.com/{{
NEWRELIC
_KEY_ID
}}.gpg'
NEWRELIC_
DEBIAN_KEY_URL
:
'
https://download.newrelic.com/{{
NEWRELIC_DEBIAN
_KEY_ID
}}.gpg'
NEWRELIC_LICENSE_KEY
:
"
SPECIFY_KEY_HERE"
NEWRELIC_LICENSE_KEY
:
"
SPECIFY_KEY_HERE"
#
#
...
@@ -28,4 +28,5 @@ NEWRELIC_LICENSE_KEY: "SPECIFY_KEY_HERE"
...
@@ -28,4 +28,5 @@ NEWRELIC_LICENSE_KEY: "SPECIFY_KEY_HERE"
newrelic_debian_pkgs
:
newrelic_debian_pkgs
:
-
newrelic-sysmond
-
newrelic-sysmond
newrelic_redhat_pkgs
:
[]
newrelic_redhat_pkgs
:
-
newrelic-sysmond
playbooks/roles/newrelic/tasks/main.yml
View file @
13e888db
...
@@ -27,18 +27,33 @@
...
@@ -27,18 +27,33 @@
-
name
:
add apt key
-
name
:
add apt key
apt_key
:
>
apt_key
:
>
id="{{ NEWRELIC_
KEY_ID }}" url="{{ NEWRELIC
_KEY_URL }}"
id="{{ NEWRELIC_
DEBIAN_KEY_ID }}" url="{{ NEWRELIC_DEBIAN
_KEY_URL }}"
state=present
state=present
when
:
ansible_distribution == 'Ubuntu'
-
name
:
Configure the New Relic Servers yum repository
shell
:
>
rpm -Uvh https://yum.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm
creates=/etc/yum.repos.d/newrelic.repo
when
:
ansible_distribution == 'Amazon'
-
name
:
install apt repository
-
name
:
install apt repository
apt_repository
:
repo="{{ NEWRELIC_REPO }}" update_cache=yes
apt_repository
:
repo="{{ NEWRELIC_DEBIAN_REPO }}" update_cache=yes
when
:
ansible_distribution == 'Ubuntu'
-
name
:
install newrelic agent
-
name
:
install newrelic agent
(apt)
apt
:
pkg="newrelic-sysmond"
apt
:
pkg="newrelic-sysmond"
when
:
ansible_distribution == 'Ubuntu'
-
name
:
Install newrelic related system packages
.
-
name
:
Install newrelic related system packages
for Ubuntu
apt
:
pkg={{ item }} install_recommends=yes state=present
apt
:
pkg={{ item }} install_recommends=yes state=present
with_items
:
newrelic_debian_pkgs
with_items
:
newrelic_debian_pkgs
when
:
ansible_distribution == 'Ubuntu'
-
name
:
Install newrelic related system packages for Amazon
yum
:
pkg={{ item }} state=present
with_items
:
newrelic_redhat_pkgs
when
:
ansible_distribution == 'Amazon'
-
name
:
configure the agent with the license key
-
name
:
configure the agent with the license key
shell
:
>
shell
:
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment