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
dd3e3b34
Commit
dd3e3b34
authored
Sep 07, 2017
by
Nadeem Shahzad
Committed by
GitHub
Sep 07, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4077 from edx/nadeem/OPS-2253
Upgrade mongo agent
parents
f1dc0ca8
597c2e25
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
6 deletions
+21
-6
playbooks/roles/mongo_mms/defaults/main.yml
+3
-2
playbooks/roles/mongo_mms/tasks/main.yml
+18
-4
No files found.
playbooks/roles/mongo_mms/defaults/main.yml
View file @
dd3e3b34
...
...
@@ -2,13 +2,14 @@
base_url
:
"
https://cloud.mongodb.com/download/agent"
pkg_arch
:
"
amd64"
pkg_format
:
"
deb"
os_version
:
"
ubuntu1604"
agents
:
-
agent
:
mongodb-mms-monitoring-agent
version
:
"
5.7.0.368
-1"
version
:
"
6.0.0.381
-1"
config
:
"
/etc/mongodb-mms/monitoring-agent.config"
dir
:
"
monitoring"
-
agent
:
mongodb-mms-backup-agent
version
:
"
5.
4.0.493
-1"
version
:
"
5.
8.0.655
-1"
config
:
"
/etc/mongodb-mms/backup-agent.config"
dir
:
"
backup"
playbooks/roles/mongo_mms/tasks/main.yml
View file @
dd3e3b34
...
...
@@ -10,18 +10,33 @@
msg
:
"
MMSAPIKEY
is
required"
when
:
MMSAPIKEY is not defined
-
name
:
download mongo mms agent
-
name
:
download
trusty
mongo mms agent
get_url
:
url
:
"
{{
base_url
}}/{{
item.dir
}}/{{
item.agent
}}_{{
item.version
}}_{{
pkg_arch
}}.{{
pkg_format
}}"
dest
:
"
/tmp/{{
item.agent
}}-{{
item.version
}}.{{
pkg_format
}}"
register
:
download_mms_deb
with_items
:
"
{{
agents
}}"
when
:
ansible_distribution_release == 'trusty'
-
name
:
download xenial mongo mms agent
get_url
:
url
:
"
{{
base_url
}}/{{
item.dir
}}/{{
item.agent
}}_{{
item.version
}}_{{
pkg_arch
}}.{{
os_version
}}.{{
pkg_format
}}"
dest
:
"
/tmp/{{
item.agent
}}-{{
item.version
}}.{{
pkg_format
}}"
register
:
download_mms_deb
with_items
:
"
{{
agents
}}"
when
:
ansible_distribution_release == 'xenial'
-
name
:
install mongo mms agent
apt
:
deb
:
"
/tmp/{{
item.agent
}}-{{
item.version
}}.deb"
when
:
download_mms_deb.changed
notify
:
restart mms
with_items
:
"
{{
agents
}}"
-
name
:
add group ID to monitoring-agent.config
lineinfile
:
dest
:
"
{{
item.config
}}"
regexp
:
"
^mmsGroupId="
line
:
"
mmsGroupId={{
MMSGROUPID
}}"
with_items
:
"
{{
agents
}}"
-
name
:
add key to monitoring-agent.config
...
...
@@ -29,10 +44,9 @@
dest
:
"
{{
item.config
}}"
regexp
:
"
^mmsApiKey="
line
:
"
mmsApiKey={{
MMSAPIKEY
}}"
notify
:
restart mms
with_items
:
"
{{
agents
}}"
-
name
:
start mms service
-
name
:
start mms service
service
:
name
:
"
{{
item.agent
}}"
state
:
started
...
...
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