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
2f3331b4
Commit
2f3331b4
authored
Feb 25, 2014
by
e0d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactoring.
parent
eaebc113
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
11 deletions
+18
-11
playbooks/roles/newrelic/defaults/main.yml
+6
-5
playbooks/roles/newrelic/tasks/main.yml
+12
-6
No files found.
playbooks/roles/newrelic/defaults/main.yml
View file @
2f3331b4
...
...
@@ -16,10 +16,10 @@
#
newrelic_role_name
:
newrelic
COMMON_
NEWRELIC_REPO
:
'
deb
http://apt.newrelic.com/debian/
newrelic
non-free'
COMMON_
NEWRELIC_KEY_ID
:
'
548C16BF'
COMMON_NEWRELIC_KEY_URL
:
'
https://download.newrelic.com/548C16BF
.gpg'
COMMON_NEWRELIC_LICENSE_KEY
:
'
bad547c0367f61fc2fbcce830399d7bdfde82d74
'
NEWRELIC_REPO
:
'
deb
http://apt.newrelic.com/debian/
newrelic
non-free'
NEWRELIC_KEY_ID
:
'
548C16BF'
NEWRELIC_KEY_URL
:
'
https://download.newrelic.com/{{
NEWRELIC_KEY_ID
}}
.gpg'
NEWRELIC_LICENSE_KEY
:
'
NEW-RELIC-KEY
'
NEWRELIC_APP_NAME
:
'
e0d-sandbox'
...
...
@@ -28,6 +28,7 @@ NEWRELIC_APP_NAME: 'e0d-sandbox'
# OS packages
#
newrelic_debian_pkgs
:
[]
newrelic_debian_pkgs
:
-
newrelic-sysmond
newrelic_redhat_pkgs
:
[]
playbooks/roles/newrelic/tasks/main.yml
View file @
2f3331b4
...
...
@@ -26,18 +26,24 @@
# - newrelic
-
name
:
add apt key
apt_key
:
id=548C16BF url={{COMMON_NEWRELIC_KEY_URL }} state=present
apt_key
:
>
id="{{ NEWRELIC_KEY_ID }}" url="{{ NEWRELIC_KEY_URL }}"
state=present
-
name
:
install apt repository
apt_repository
:
repo="{{
COMMON_
NEWRELIC_REPO }}" update_cache=yes
apt_repository
:
repo="{{ NEWRELIC_REPO }}" update_cache=yes
-
name
:
install newrelic agent
apt
:
pkg="newrelic-sysmond"
-
name
:
Install newrelic related system packages.
apt
:
pkg={{ item }} install_recommends=yes state=present
with_items
:
newrelic_debian_pkgs
-
name
:
configure the agent with the license key
shell
:
>
nrsysmond-config --set license_key=
{{ COMMON_NEWRELIC_LICENSE_KEY }}
nrsysmond-config --set license_key=
"{{ NEWRELIC_LICENSE_KEY }}"
ssl=true
-
name
:
start the newrelic system agent
shell
:
/etc/init.d/newrelic-sysmond start
\ No newline at end of file
-
name
:
ensure started and enabled
service
:
name=newrelic-sysmond state=started enabled=yes
\ No newline at end of file
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