mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 08:23:06 -06:00
ITOPS-2059 adding tags to tasks which only apply to new stacks so they can be skipped by clones
This commit is contained in:
@@ -9,6 +9,8 @@
|
|||||||
name: "{{ atl_jdbc_user }}"
|
name: "{{ atl_jdbc_user }}"
|
||||||
password: "{{ atl_jdbc_password }}"
|
password: "{{ atl_jdbc_password }}"
|
||||||
expires: 'infinity'
|
expires: 'infinity'
|
||||||
|
tags:
|
||||||
|
- new_only
|
||||||
|
|
||||||
- name: Update root privs for new user
|
- name: Update root privs for new user
|
||||||
postgresql_privs:
|
postgresql_privs:
|
||||||
@@ -19,6 +21,8 @@
|
|||||||
roles: "{{ atl_db_root_user }}"
|
roles: "{{ atl_db_root_user }}"
|
||||||
objs: "{{ atl_jdbc_user }}"
|
objs: "{{ atl_jdbc_user }}"
|
||||||
type: group
|
type: group
|
||||||
|
tags:
|
||||||
|
- new_only
|
||||||
|
|
||||||
- name: Create application database
|
- name: Create application database
|
||||||
postgresql_db:
|
postgresql_db:
|
||||||
@@ -32,3 +36,5 @@
|
|||||||
lc_collate: "{{ atl_jdbc_collation }}"
|
lc_collate: "{{ atl_jdbc_collation }}"
|
||||||
lc_ctype: "{{ atl_jdbc_ctype }}"
|
lc_ctype: "{{ atl_jdbc_ctype }}"
|
||||||
template: "{{ atl_jdbc_template }}"
|
template: "{{ atl_jdbc_template }}"
|
||||||
|
tags:
|
||||||
|
- new_only
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
atl_nfs_server_device: "{{ lookup('env', 'ATL_NFS_SERVER_DEVICE') }}"
|
atl_nfs_server_device: "{{ lookup('env', 'ATL_NFS_SERVER_DEVICE') }}"
|
||||||
atl_nfs_fs_type: "xfs"
|
atl_nfs_fs_type: "{{ lookup('env', 'ATL_NFS_FS_TYPE') or 'xfs' }}"
|
||||||
atl_nfs_fs_label: "BB-Shared"
|
atl_nfs_fs_label: "{{ lookup('env', 'ATL_NFS_FS_LABEL') or 'BB-Shared' }}"
|
||||||
|
|||||||
@@ -17,6 +17,8 @@
|
|||||||
number: 1
|
number: 1
|
||||||
flags:
|
flags:
|
||||||
- "{{ atl_nfs_fs_type }}"
|
- "{{ atl_nfs_fs_type }}"
|
||||||
|
tags:
|
||||||
|
- new_only
|
||||||
|
|
||||||
|
|
||||||
- name: Create the filesystem
|
- name: Create the filesystem
|
||||||
@@ -24,6 +26,8 @@
|
|||||||
dev: "{{ atl_nfs_server_device }}"
|
dev: "{{ atl_nfs_server_device }}"
|
||||||
fstype: "{{ atl_nfs_fs_type }}"
|
fstype: "{{ atl_nfs_fs_type }}"
|
||||||
opts: "-L {{ atl_nfs_fs_label }}"
|
opts: "-L {{ atl_nfs_fs_label }}"
|
||||||
|
tags:
|
||||||
|
- new_only
|
||||||
|
|
||||||
- name: Setup fstab and mount the filesystem
|
- name: Setup fstab and mount the filesystem
|
||||||
mount:
|
mount:
|
||||||
@@ -33,13 +37,15 @@
|
|||||||
state: mounted
|
state: mounted
|
||||||
|
|
||||||
|
|
||||||
- name: Create the shared home as BB mounts this directly
|
- name: Create the shared home
|
||||||
file:
|
file:
|
||||||
path: "{{ atl_shared_mountpoint }}/bitbucket/shared"
|
path: "{{ atl_shared_mountpoint }}/{{ atl_product_user }}/shared"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ atl_product_user }}"
|
owner: "{{ atl_product_user }}"
|
||||||
group: "{{ atl_product_user }}"
|
group: "{{ atl_product_user }}"
|
||||||
mode: 0750
|
mode: 0750
|
||||||
|
tags:
|
||||||
|
- new_only
|
||||||
|
|
||||||
|
|
||||||
- name: Create the NFS export file
|
- name: Create the NFS export file
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
# Created by Ansible
|
# Created by Ansible
|
||||||
/media/atl *(rw,no_root_squash)
|
/media/atl *(rw,no_root_squash,no_subtree_check,sync)
|
||||||
|
|||||||
Reference in New Issue
Block a user