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
bbc8c904
Commit
bbc8c904
authored
Oct 23, 2015
by
Edward Zarecor
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2386 from edx/e0d/mms-backup-agent
E0d/mms backup agent
parents
0be06c96
9e23ffab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
15 deletions
+18
-15
playbooks/roles/mongo_mms/defaults/main.yml
+9
-2
playbooks/roles/mongo_mms/tasks/main.yml
+9
-13
No files found.
playbooks/roles/mongo_mms/defaults/main.yml
View file @
bbc8c904
mms_agent_version
:
"
2.2.0.70-1"
mms_agent_url
:
"
https://mms.mongodb.com/download/agent/monitoring/mongodb-mms-monitoring-agent_{{
mms_agent_version
}}_amd64.deb"
base_url
:
"
https://mms.mongodb.com/download/agent/monitoring"
pkg_arch
:
"
amd64"
pkg_format
:
"
deb"
agents
:
-
agent
:
mongodb-mms-monitoring-agent
version
:
"
3.9.1.238-1"
-
agent
:
mongodb-mms-backup-agent
version
:
"
3.8.1.320-1"
playbooks/roles/mongo_mms/tasks/main.yml
View file @
bbc8c904
...
...
@@ -9,25 +9,21 @@
-
fail
:
MMSAPIKEY is required
when
:
MMSAPIKEY is not defined
# this cruft can be removed in ansible 1.6, which can have apt install local deb files
-
name
:
install required packages
apt
:
name={{ item }} state=present
with_items
:
-
gdebi
-
name
:
download mongo mms agent
get_url
:
>
url="{{
mms_agent_url
}}"
dest="/tmp/
mongodb-mms-monitoring-agent-{{ mms_agent_version }}.deb
"
url="{{
base_url }}/{{ item.agent }}_{{ item.version }}_{{ pkg_arch }}.{{ pkg_format
}}"
dest="/tmp/
{{ item.agent }}-{{ item.version }}.{{ pkg_format }}
"
register
:
download_mms_deb
with_items
:
agents
-
name
:
install mongo mms agent
shell
:
"
gdebi
-nq
/tmp/mongodb-mms-monitoring-agent-{{
mms_agent_version
}}.deb"
apt
:
>
deb="/tmp/{{ item.agent }}-{{ item.version }}.deb"
when
:
download_mms_deb.changed
notify
:
restart mms
with_items
:
agents
-
name
:
add key to monitoring-agent.config
lineinfile
:
>
...
...
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