DCD-880: Install postgresql as part of slingshot backup

This commit is contained in:
Ben Partridge
2020-01-03 13:32:27 +11:00
parent 58692b2843
commit 5d543b3f0c
5 changed files with 18 additions and 1 deletions

View File

@@ -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'

View File

@@ -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

View File

@@ -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

View File

@@ -0,0 +1,5 @@
---
- name: Install distro-specific backup support packages
include_tasks: "../../tasks/{{ ansible_distribution|lower }}.yml"

View File

@@ -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