Fixed mms agent configuration

This commit is contained in:
Paulo Pizarro 2019-04-25 10:33:47 -03:00 committed by Paulo Pizarro
parent 387e7f7ff5
commit 0ab86358bf
5 changed files with 7 additions and 7 deletions

View File

@ -101,7 +101,7 @@ mongodb_replication_oplogsize: 1024 # specifies a maximum size in
mongodb_set_parameters: { "enableLocalhostAuthBypass": "true", "authenticationMechanisms": "SCRAM-SHA-1,MONGODB-CR" }
# MMS Agent
mongodb_mms_agent_pkg: https://mms.mongodb.com/download/agent/automation/mongodb-mms-automation-agent-manager_1.4.2.783-1_amd64.deb
mongodb_mms_agent_pkg: https://cloud.mongodb.com/download/agent/monitoring/mongodb-mms-monitoring-agent_7.2.0.488-1_amd64.ubuntu1604.deb
mongodb_mms_group_id: ""
mongodb_mms_api_key: ""
mongodb_mms_base_url: https://mms.mongodb.com

View File

@ -70,7 +70,7 @@ mongodb_replication_replindexprefetch: "all" # specify index prefetching be
mongodb_replication_oplogsize: 1024 # specifies a maximum size in megabytes for the replication operation log
# MMS Agent
mongodb_mms_agent_pkg: https://mms.mongodb.com/download/agent/automation/mongodb-mms-automation-agent-manager_1.4.2.783-1_amd64.deb
mongodb_mms_agent_pkg: https://cloud.mongodb.com/download/agent/monitoring/mongodb-mms-monitoring-agent_7.2.0.488-1_amd64.ubuntu1604.deb
mongodb_mms_group_id: ""
mongodb_mms_api_key: ""
mongodb_mms_base_url: https://mms.mongodb.com

View File

@ -8,8 +8,8 @@
service: name={{ mongodb_daemon_name }} state=restarted
when: mongodb_manage_service
- name: mongodb-mms-automation-agent restart
service: name=mongodb-mms-automation-agent state=restarted
- name: mongodb-mms-monitoring-agent restart
service: name=mongodb-mms-monitoring-agent state=restarted
when: mongodb_manage_service
- name: reload systemd

View File

@ -25,9 +25,9 @@
file: state=directory path=/etc/mongodb-mms owner={{mongodb_user}} group={{mongodb_user}} mode=0755
- name: Configure the MMS agent pt. 2
template: src=automation-agent.config.j2 dest=/etc/mongodb-mms/automation-agent.config
notify: mongodb-mms-automation-agent restart
template: src=monitoring-agent.config.j2 dest=/etc/mongodb-mms/monitoring-agent.config
notify: mongodb-mms-monitoring-agent restart
- name: Ensure that the MMS agent is started
service: name=mongodb-mms-automation-agent state=started enabled=yes
service: name=mongodb-mms-monitoring-agent state=started enabled=yes
when: mongodb_manage_service