mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 16:33:08 -06:00
DCD-386: Move user creation up to linux_common as NFS needs to share the UID.
This commit is contained in:
@@ -14,6 +14,9 @@ postgres_version: "9.6"
|
||||
git_version: "2.14.4"
|
||||
atl_shared_mountpoint: "/media/atl"
|
||||
|
||||
# Simplify NFS mapping by using a fixed UID
|
||||
atl_product_user_uid: '2001'
|
||||
|
||||
# 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_family }}"
|
||||
|
||||
@@ -14,3 +14,9 @@
|
||||
- unzip
|
||||
- fontconfig
|
||||
- python-psycopg2
|
||||
|
||||
- name: Create product user
|
||||
user:
|
||||
name: "{{ atl_product_user }}"
|
||||
uid: "{{ atl_product_user_uid }}"
|
||||
comment: "Product runtime user"
|
||||
|
||||
@@ -2,8 +2,3 @@
|
||||
|
||||
- name: Perform distro-specific tasks
|
||||
include_tasks: "{{ ansible_distribution|lower }}.yml"
|
||||
|
||||
- name: Create product user
|
||||
user:
|
||||
name: "{{ atl_product_user }}"
|
||||
comment: "Product runtime user"
|
||||
|
||||
Reference in New Issue
Block a user