mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
DCD-880: Variablify create_backups tasks
This commit is contained in:
6
roles/create_backups/defaults/main.yml
Normal file
6
roles/create_backups/defaults/main.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
atl_slingshot_yum_repo_url: 'https://packages.atlassian.com/atlassian-slingshot-rpm'
|
||||
|
||||
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_components: 'stable main'
|
||||
@@ -8,12 +8,8 @@ lint:
|
||||
platforms:
|
||||
- name: amazon_linux2
|
||||
image: amazonlinux:2
|
||||
groups:
|
||||
- aws_node_local
|
||||
- name: ubuntu_lts
|
||||
image: ubuntu:bionic
|
||||
groups:
|
||||
- aws_node_local
|
||||
provisioner:
|
||||
name: ansible
|
||||
lint:
|
||||
|
||||
@@ -2,5 +2,10 @@
|
||||
- name: Converge
|
||||
hosts: all
|
||||
tasks:
|
||||
# Role default vars must be included because we aren't running the whole role, just a subset of tasks
|
||||
- name: Include role vars
|
||||
include_vars:
|
||||
file: ../../defaults/main.yml
|
||||
|
||||
- name: Install distro-specific backup support packages
|
||||
include_tasks: "../../tasks/{{ ansible_distribution|lower }}.yml"
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
file: atlassian-slingshot
|
||||
state: present
|
||||
description: Atlassian Slingshot
|
||||
baseurl: https://packages.atlassian.com/atlassian-slingshot-rpm
|
||||
baseurl: "{{ atl_slingshot_yum_repo_url }}"
|
||||
gpgcheck: no
|
||||
|
||||
- name: Install atlassian-slingshot
|
||||
|
||||
@@ -6,12 +6,12 @@
|
||||
|
||||
- name: Add atlassian-slingshot debian repo public key
|
||||
apt_key:
|
||||
url: https://packages.atlassian.com/api/gpg/key/public
|
||||
url: "{{ atl_slingshot_deb_pubkey_url }}"
|
||||
state: present
|
||||
|
||||
- name: Add atlassian-slingshot debian repository
|
||||
apt_repository:
|
||||
repo: deb https://packages.atlassian.com/atlassian-slingshot-deb stable main
|
||||
repo: "deb {{ atl_slingshot_deb_repo_url }} {{ atl_slingshot_deb_repo_components }}"
|
||||
state: present
|
||||
filename: atlassian-slingshot
|
||||
|
||||
|
||||
Reference in New Issue
Block a user