mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
DCD-880: Install postgresql as part of slingshot backup
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
atl_slingshot_yum_repo_url: 'https://packages.atlassian.com/atlassian-slingshot-rpm'
|
atl_slingshot_yum_repo_url: 'https://packages.atlassian.com/atlassian-slingshot-rpm'
|
||||||
|
atl_amazon_extras_postgresql_version: '9.6'
|
||||||
|
|
||||||
atl_slingshot_deb_pubkey_url: 'https://packages.atlassian.com/api/gpg/key/public'
|
atl_slingshot_deb_pubkey_url: 'https://packages.atlassian.com/api/gpg/key/public'
|
||||||
atl_slingshot_deb_repo_url: 'https://packages.atlassian.com/atlassian-slingshot-deb'
|
atl_slingshot_deb_repo_url: 'https://packages.atlassian.com/atlassian-slingshot-deb'
|
||||||
|
|||||||
@@ -8,3 +8,4 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
|
|||||||
|
|
||||||
def test_slingshot_installed(host):
|
def test_slingshot_installed(host):
|
||||||
assert host.file('/usr/bin/atlassian-slingshot').exists
|
assert host.file('/usr/bin/atlassian-slingshot').exists
|
||||||
|
assert host.file('/usr/bin/psql').exists
|
||||||
|
|||||||
@@ -12,3 +12,8 @@
|
|||||||
- name: Install atlassian-slingshot
|
- name: Install atlassian-slingshot
|
||||||
yum:
|
yum:
|
||||||
name: atlassian-slingshot
|
name: atlassian-slingshot
|
||||||
|
|
||||||
|
- name: Enable Postgresql from 'extras'
|
||||||
|
command: amazon-linux-extras install -y "postgresql{{ atl_amazon_extras_postgresql_version }}"
|
||||||
|
args:
|
||||||
|
creates: /usr/bin/psql
|
||||||
|
|||||||
5
roles/create_backups/tasks/main.yml
Normal file
5
roles/create_backups/tasks/main.yml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
- name: Install distro-specific backup support packages
|
||||||
|
include_tasks: "../../tasks/{{ ansible_distribution|lower }}.yml"
|
||||||
|
|
||||||
|
|
||||||
@@ -20,3 +20,8 @@
|
|||||||
name: atlassian-slingshot
|
name: atlassian-slingshot
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
- name: Install postgresql
|
||||||
|
apt:
|
||||||
|
name: postgresql
|
||||||
|
state: present
|
||||||
Reference in New Issue
Block a user