mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
DCD-224: Rename product vars for clarity and create the shared home.
This commit is contained in:
@@ -3,8 +3,9 @@
|
||||
become: true
|
||||
|
||||
vars:
|
||||
atl_product: jira
|
||||
atl_product_user: jira
|
||||
atl_product_family: "jira"
|
||||
atl_product_edition: "jira-software"
|
||||
atl_product_user: "jira"
|
||||
|
||||
roles:
|
||||
- linux_common
|
||||
|
||||
@@ -10,9 +10,10 @@ postgres_version: "9.6"
|
||||
git_version: "2.14.4"
|
||||
atl_shared_mountpoint: "/media/atl"
|
||||
|
||||
# FIXME: Some of these could be overridden from the environment.
|
||||
# FIXME: Some of these should be overridden from the environment?
|
||||
atl_home_base: "/var/atlassian/application-data"
|
||||
atl_product_home: "{{ atl_home_base }}/{{ atl_product }}"
|
||||
atl_product_home: "{{ atl_home_base }}/{{ atl_product_family }}"
|
||||
atl_product_home_shared: "{{ atl_shared_mountpoint }}/{{ atl_product_family }}/shared"
|
||||
|
||||
atl_product_installation_base: "/opt/atlassian"
|
||||
atl_product_installation_dir: "{{ atl_product_installation_base }}/{{ atl_product }}"
|
||||
@@ -22,4 +23,3 @@ atl_installer_temp: "{{ atl_product_installation_base }}/tmp"
|
||||
# set in /etc/atl by the CloudFormation template and sourced before
|
||||
# Ansible is run. See bin/ansible-with-atl-env for a convenient wrapper
|
||||
atl_efs_id: "{{ lookup('env', 'ATL_EFS_ID') }}"
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
atl_product_user: "testuser"
|
||||
atl_product_home: "/opt/atlassian/product"
|
||||
atl_installer_temp: "/opt/atlassian/temp"
|
||||
atl_product_home_shared: "/media/atl/jira/shared"
|
||||
roles:
|
||||
- role: linux_common
|
||||
- role: product_common
|
||||
|
||||
@@ -14,7 +14,8 @@ def test_user_created(host):
|
||||
|
||||
@pytest.mark.parametrize('target', [
|
||||
'/opt/atlassian/product',
|
||||
'/opt/atlassian/temp'
|
||||
'/opt/atlassian/temp',
|
||||
'/media/atl/jira/shared'
|
||||
])
|
||||
def test_dirs_created(host, target):
|
||||
d = host.file(target)
|
||||
|
||||
@@ -17,3 +17,4 @@
|
||||
with_items:
|
||||
- "{{ atl_product_home }}"
|
||||
- "{{ atl_installer_temp }}"
|
||||
- "{{ atl_product_home_shared }}"
|
||||
|
||||
Reference in New Issue
Block a user