Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
9810b344
Unverified
Commit
9810b344
authored
6 years ago
by
Joseph Mulloy
Committed by
GitHub
6 years ago
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4459 from edx/jdmulloy/ops3004/gocd_backup_time
Change GoCD backup time OPS3004
parents
72cbdcea
0cbc4625
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
playbooks/go-server.yml
+2
-0
playbooks/roles/go-server/defaults/main.yml
+2
-0
playbooks/roles/go-server/tasks/setup_regular_backup.yml
+2
-2
No files found.
playbooks/go-server.yml
View file @
9810b344
# 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
...
...
This diff is collapsed.
Click to expand it.
playbooks/roles/go-server/defaults/main.yml
View file @
9810b344
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
playbooks/roles/go-server/tasks/setup_regular_backup.yml
View file @
9810b344
...
...
@@ -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"
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment