Commit 0df4aebf by Edward Zarecor

update config, ensure all are started.

parent bbc8c904
...@@ -6,5 +6,7 @@ pkg_format: "deb" ...@@ -6,5 +6,7 @@ pkg_format: "deb"
agents: agents:
- agent: mongodb-mms-monitoring-agent - agent: mongodb-mms-monitoring-agent
version: "3.9.1.238-1" version: "3.9.1.238-1"
config: "/etc/mongodb-mms/monitoring-agent.config"
- agent: mongodb-mms-backup-agent - agent: mongodb-mms-backup-agent
version: "3.8.1.320-1" version: "3.8.1.320-1"
config: "/etc/mongodb-mms/backup-agent.config"
...@@ -27,11 +27,14 @@ ...@@ -27,11 +27,14 @@
- name: add key to monitoring-agent.config - name: add key to monitoring-agent.config
lineinfile: > lineinfile: >
dest=/etc/mongodb-mms/monitoring-agent.config dest={{ item.config }}"
regexp="^mmsApiKey=" regexp="^mmsApiKey="
line="mmsApiKey={{ MMSAPIKEY }}" line="mmsApiKey={{ MMSAPIKEY }}"
notify: restart mms notify: restart mms
with_items:
agents
- name: start mms service - name: start mms service
service: name=mongodb-mms-monitoring-agent state=started service: name=item.agent state=started
with_items:
agents
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment