DCD-386: Move user creation up to linux_common as NFS needs to share the UID.

This commit is contained in:
Steve Smith
2019-05-30 11:35:22 +10:00
parent 9f66941151
commit f13fb656d0
3 changed files with 9 additions and 5 deletions

View File

@@ -14,6 +14,9 @@ postgres_version: "9.6"
git_version: "2.14.4" git_version: "2.14.4"
atl_shared_mountpoint: "/media/atl" 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? # FIXME: Some of these should be overridden from the environment?
atl_home_base: "/var/atlassian/application-data" atl_home_base: "/var/atlassian/application-data"
atl_product_home: "{{ atl_home_base }}/{{ atl_product_family }}" atl_product_home: "{{ atl_home_base }}/{{ atl_product_family }}"

View File

@@ -14,3 +14,9 @@
- unzip - unzip
- fontconfig - fontconfig
- python-psycopg2 - python-psycopg2
- name: Create product user
user:
name: "{{ atl_product_user }}"
uid: "{{ atl_product_user_uid }}"
comment: "Product runtime user"

View File

@@ -2,8 +2,3 @@
- name: Perform distro-specific tasks - name: Perform distro-specific tasks
include_tasks: "{{ ansible_distribution|lower }}.yml" include_tasks: "{{ ansible_distribution|lower }}.yml"
- name: Create product user
user:
name: "{{ atl_product_user }}"
comment: "Product runtime user"