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
c7a9c229
Commit
c7a9c229
authored
Apr 09, 2018
by
Joseph Mulloy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Parameterize and change gocd cron time OPS-3004
parent
72cbdcea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
playbooks/roles/go-server/defaults/main.yml
+2
-0
playbooks/roles/go-server/tasks/setup_regular_backup.yml
+2
-2
No files found.
playbooks/roles/go-server/defaults/main.yml
View file @
c7a9c229
...
@@ -82,6 +82,8 @@ GO_SERVER_BACKUP_PIP_PKGS: ["boto", "awscli"]
...
@@ -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_API_URL
:
"
http://localhost:8153/go/api/backups"
GO_SERVER_BACKUP_TMP_LOCATION
:
"
/tmp/{{
GO_SERVER_BACKUP_FILENAME
}}"
GO_SERVER_BACKUP_TMP_LOCATION
:
"
/tmp/{{
GO_SERVER_BACKUP_FILENAME
}}"
GO_SERVER_BACKUP_CRON_SCRIPT_LOCATION
:
"
/root/gocd_backup.sh"
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.
# When "true", attempts to restore go-server backup from S3.
GO_SERVER_RESTORE_BACKUP
:
false
GO_SERVER_RESTORE_BACKUP
:
false
...
...
playbooks/roles/go-server/tasks/setup_regular_backup.yml
View file @
c7a9c229
...
@@ -52,6 +52,6 @@
...
@@ -52,6 +52,6 @@
-
name
:
create cron entry
-
name
:
create cron entry
cron
:
cron
:
name
:
"
gocd
backup"
name
:
"
gocd
backup"
minute
:
0
minute
:
"
{{
GO_SERVER_BACKUP_CRON_MINUTE
}}"
hour
:
3
hour
:
"
{{
GO_SERVER_BACKUP_CRON_HOUR
}}"
job
:
"
{{
GO_SERVER_BACKUP_CRON_SCRIPT_LOCATION
}}
2>&1
|
/usr/bin/logger
-t
gocd_backup"
job
:
"
{{
GO_SERVER_BACKUP_CRON_SCRIPT_LOCATION
}}
2>&1
|
/usr/bin/logger
-t
gocd_backup"
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