Commit 77224bdd by Max Rothman

Respond to comments

parent 12a7fc18
......@@ -61,3 +61,4 @@ MONGO_S3_S3CMD_CONFIG: "{{ COMMON_DATA_DIR }}/mongo-s3-backup.s3cfg"
MONGO_S3_BACKUP_AWS_ACCESS_KEY: !!null
MONGO_S3_BACKUP_AWS_SECRET_KEY: !!null
MONGO_LOG_MONGOSTAT: true
......@@ -161,9 +161,18 @@
day="{{ MONGO_S3_BACKUP_DAY }}"
when: MONGO_S3_BACKUP
- name: add mongodump logging command to cron
- name: add mongostat logging script
template:
src="edx/bin/log-mongostat.sh.j2"
dest="{{ COMMON_BIN_DIR }}/log-mongostat.sh"
owner="{{ mongo_user }}"
group="{{ mongo_user }}"
mode=0700
when: MONGO_LOG_MONGOSTAT
- name: add mongostat logging script to cron
cron:
name: "mongodump"
job: >
/usr/bin/mongostat -u {{ MONGO_ADMIN_USER }} --authenticationDatabase admin
-p '{{ MONGO_ADMIN_PASSWORD }}' --all -n 1 --json >{{ COMMON_LOG_DIR }}/mongo/mongostat.log 2>&1
\ No newline at end of file
name: "mongostat logging job"
job: /edx/bin/log-mongostat.sh >{{ mongo_log_dir }}/mongostat.log 2>&1
become: yes
when: MONGO_LOG_MONGOSTAT
/usr/bin/mongostat -u {{ MONGO_ADMIN_USER }} --authenticationDatabase admin -p '{{ MONGO_ADMIN_PASSWORD }}' --all -n 1 --json
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