mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
DCD-880: stop product service and run slingshot in backup playbook
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
---
|
||||
|
||||
atl_db_port: 5432
|
||||
atl_systemd_service_name: "{{ atl_product_edition }}.service"
|
||||
|
||||
atl_slingshot_yum_repo_url: 'https://packages.atlassian.com/atlassian-slingshot-rpm'
|
||||
atl_amazon_extras_postgresql_version: '9.6'
|
||||
|
||||
|
||||
@@ -1,5 +1,29 @@
|
||||
---
|
||||
|
||||
- name: Install distro-specific backup support packages
|
||||
include_tasks: "../../tasks/{{ ansible_distribution|lower }}.yml"
|
||||
|
||||
- name: Stop the {{ atl_product_edition }} service
|
||||
service:
|
||||
name: "{{ atl_systemd_service_name }}"
|
||||
state: stopped
|
||||
|
||||
- name: Run the slingshot backup
|
||||
command:
|
||||
argv:
|
||||
- "atlassian-slingshot"
|
||||
- "--backupDir {{ atl_slingshot_backup_dir }}"
|
||||
- "--dbHost {{ atl_db_host }}"
|
||||
- "--dbPort {{ atl_db_port }}"
|
||||
- "--dbUser {{ atl_jdbc_user }}"
|
||||
- "--dbName {{ atl_jdbc_db_name }}"
|
||||
- "--s3BucketName {{ atl_s3_backup_bucket }}"
|
||||
- "--awsRegion {{ atl_s3_backup_region }}"
|
||||
- "--sharedHomeLocation {{ atl_product_home_shared }}"
|
||||
environment:
|
||||
ATL_DB_PASSWORD: "{{ atl_jdbc_password }}"
|
||||
|
||||
- name: Restart the {{ atl_product_edition }} service
|
||||
service:
|
||||
name: "{{ atl_systemd_service_name }}"
|
||||
state: restarted
|
||||
|
||||
Reference in New Issue
Block a user