mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 08:23:06 -06:00
DCD-386: More steps necessary for creating the filesystem.
This commit is contained in:
@@ -1,22 +1,34 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Create the filesystem if necessary
|
- name: Create product user for mapping
|
||||||
filesystem:
|
user:
|
||||||
dev: "{{ atl_nfs_server_device }}"
|
name: "{{ atl_product_user }}"
|
||||||
fstype: "{{ atl_nfs_fs_type }}"
|
comment: "Product runtime user"
|
||||||
opts:
|
|
||||||
- "-L {{ atl_nfs_fs_label }}"
|
|
||||||
|
|
||||||
- name: Create mountpoint
|
- name: Create mountpoint
|
||||||
file:
|
file:
|
||||||
path: "{{ atl_shared_mountpoint }}"
|
path: "{{ atl_shared_mountpoint }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0750
|
|
||||||
owner: "{{ atl_product_user }}"
|
- name: Setup the disk partition
|
||||||
group: "{{ atl_product_user }}"
|
parted:
|
||||||
|
device: "{{ atl_nfs_server_device }}"
|
||||||
|
label: gpt
|
||||||
|
name: "{{ atl_nfs_fs_label }}"
|
||||||
|
number: 1
|
||||||
|
flags:
|
||||||
|
- "{{ atl_nfs_fs_type }}"
|
||||||
|
|
||||||
|
|
||||||
|
- name: Create the filesystem
|
||||||
|
filesystem:
|
||||||
|
dev: "{{ atl_nfs_server_device }}"
|
||||||
|
fstype: "{{ atl_nfs_fs_type }}"
|
||||||
|
opts: "-L {{ atl_nfs_fs_label }}"
|
||||||
|
|
||||||
- name: Setup fstab and mount the filesystem
|
- name: Setup fstab and mount the filesystem
|
||||||
mount:
|
mount:
|
||||||
path: "{{ atl_shared_mountpoint }}"
|
path: "{{ atl_shared_mountpoint }}"
|
||||||
src: "{{ atl_nfs_server_device }}:/"
|
src: "LABEL={{ atl_nfs_fs_label }}"
|
||||||
|
fstype: "{{ atl_nfs_fs_type }}"
|
||||||
state: mounted
|
state: mounted
|
||||||
|
|||||||
Reference in New Issue
Block a user