From b2010b2952390506b3c914ea2054b12c7bd987a1 Mon Sep 17 00:00:00 2001 From: Paulo Pizarro Date: Thu, 25 Apr 2019 10:33:47 -0300 Subject: [PATCH] Fixed mms agent configuration --- README.md | 2 +- defaults/main.yml | 2 +- handlers/main.yml | 4 ++-- tasks/mms-agent.yml | 6 +++--- ...utomation-agent.config.j2 => monitoring-agent.config.j2} | 0 5 files changed, 7 insertions(+), 7 deletions(-) rename templates/{automation-agent.config.j2 => monitoring-agent.config.j2} (100%) diff --git a/README.md b/README.md index a3a4f26..dc94736 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/defaults/main.yml b/defaults/main.yml index 1cd5b90..2f6014d 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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 diff --git a/handlers/main.yml b/handlers/main.yml index 6191ea6..6ca9d4d 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -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 diff --git a/tasks/mms-agent.yml b/tasks/mms-agent.yml index 901af58..92f80aa 100644 --- a/tasks/mms-agent.yml +++ b/tasks/mms-agent.yml @@ -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 diff --git a/templates/automation-agent.config.j2 b/templates/monitoring-agent.config.j2 similarity index 100% rename from templates/automation-agent.config.j2 rename to templates/monitoring-agent.config.j2