Unverified Commit 9810b344 by Joseph Mulloy Committed by GitHub

Merge pull request #4459 from edx/jdmulloy/ops3004/gocd_backup_time

Change GoCD backup time OPS3004
parents 72cbdcea 0cbc4625
# This playbook installs go-server
# https://www.go.cd/
#
# https://openedx.atlassian.net/wiki/spaces/EdxOps/pages/157526357/How+to+Upgrade+GoCD
# Example command: ansible-playbook -i <ip_here>, -c ssh go-server.yml -e@/path/to/secure/ansible/vars/admin/admin.yml -e@/path/to/secure/ansible/vars/admin/edx_admin.yml -e@/path/to/secure/ansible/vars/admin/pipeline/gocd.yml -D
- name: Install go-server
hosts: all
......
......@@ -82,6 +82,8 @@ GO_SERVER_BACKUP_PIP_PKGS: ["boto", "awscli"]
GO_SERVER_BACKUP_API_URL: "http://localhost:8153/go/api/backups"
GO_SERVER_BACKUP_TMP_LOCATION: "/tmp/{{ GO_SERVER_BACKUP_FILENAME }}"
GO_SERVER_BACKUP_CRON_SCRIPT_LOCATION: "/root/gocd_backup.sh"
GO_SERVER_BACKUP_CRON_HOUR: "23"
GO_SERVER_BACKUP_CRON_MINUTE: "58"
# When "true", attempts to restore go-server backup from S3.
GO_SERVER_RESTORE_BACKUP: false
......
......@@ -52,6 +52,6 @@
- name: create cron entry
cron:
name: "gocd backup"
minute: 0
hour: 3
minute: "{{ GO_SERVER_BACKUP_CRON_MINUTE }}"
hour: "{{ GO_SERVER_BACKUP_CRON_HOUR }}"
job: "{{ GO_SERVER_BACKUP_CRON_SCRIPT_LOCATION }} 2>&1 | /usr/bin/logger -t gocd_backup"
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