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
ece9f7a3
Unverified
Commit
ece9f7a3
authored
Apr 11, 2018
by
Fred Smith
Committed by
GitHub
Apr 11, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4464 from edx/derf/update_new_relic_and_infrastructure_regularly
update new relic and infrastructure regularly
parents
5de93c27
deec1f67
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
5 deletions
+43
-5
playbooks/roles/newrelic/tasks/main.yml
+2
-2
playbooks/roles/newrelic_infrastructure/defaults/main.yml
+12
-0
playbooks/roles/newrelic_infrastructure/tasks/main.yml
+29
-3
No files found.
playbooks/roles/newrelic/tasks/main.yml
View file @
ece9f7a3
...
...
@@ -43,7 +43,7 @@
apt
:
name
:
"
{{
item
}}"
install_recommends
:
yes
state
:
presen
t
state
:
lates
t
with_items
:
"
{{
newrelic_debian_pkgs
}}"
when
:
ansible_distribution == 'Ubuntu'
...
...
@@ -56,7 +56,7 @@
-
name
:
Install newrelic related system packages for Amazon
yum
:
name
:
"
{{
item
}}"
state
:
presen
t
state
:
lates
t
update_cache
:
yes
with_items
:
"
{{
newrelic_redhat_pkgs
}}"
when
:
ansible_distribution == 'Amazon'
...
...
playbooks/roles/newrelic_infrastructure/defaults/main.yml
View file @
ece9f7a3
...
...
@@ -22,3 +22,15 @@ NEWRELIC_INFRASTRUCTURE_DEBIAN_KEY_URL: 'https://download.newrelic.com/infrastru
# Any extra config you want to specify
# https://docs.newrelic.com/docs/infrastructure/new-relic-infrastructure/configuration/infrastructure-config-file-template-newrelic-infrayml
NEWRELIC_INFRASTRUCTURE_EXTRA_CONFIG
:
'
'
NEWRELIC_INFRASTRUCTURE_AMAZON_REPO
:
'
https://download.newrelic.com/infrastructure_agent/linux/yum/el/6/x86_64/newrelic-infra.repo'
#
# OS packages
#
newrelic_infrastructure_debian_pkgs
:
-
newrelic-infra
newrelic_infrastructure_redhat_pkgs
:
-
newrelic-infra
playbooks/roles/newrelic_infrastructure/tasks/main.yml
View file @
ece9f7a3
...
...
@@ -38,6 +38,7 @@
tags
:
-
install
-
install:app-requirements
when
:
ansible_distribution == 'Ubuntu'
-
name
:
Install apt repository for New Relic Infrastructure
apt_repository
:
...
...
@@ -47,13 +48,38 @@
tags
:
-
install
-
install:app-requirements
when
:
ansible_distribution == 'Ubuntu'
-
name
:
Install
New Relic Infrastructure agent
-
name
:
Install
newrelic related system packages for Ubuntu
apt
:
name
:
"
newrelic-infra"
name
:
"
{{
item
}}"
install_recommends
:
yes
state
:
latest
tags
:
-
install
-
install:code
-
install:app-requirements
with_items
:
"
{{
newrelic_infrastructure_debian_pkgs
}}"
when
:
ansible_distribution == 'Ubuntu'
-
name
:
Configure the New Relic Servers yum repository
yum
:
name
:
"
{{
NEWRELIC_AMAZON_REPO
}}"
state
:
present
tags
:
-
install
-
install:app-requirements
when
:
ansible_distribution == 'Amazon'
-
name
:
Install newrelic related system packages for Amazon
yum
:
name
:
"
{{
item
}}"
state
:
latest
update_cache
:
yes
with_items
:
"
{{
newrelic_infrastructure_redhat_pkgs
}}"
tags
:
-
install
-
install:app-requirements
when
:
ansible_distribution == 'Amazon'
-
name
:
Restart the infrastructure agent if the license key changes
service
:
...
...
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