From a1824b6acfa9fd9381129219078050e63e22c686 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Tue, 27 Aug 2019 17:10:34 +0000 Subject: [PATCH] communishift: Add some 1g drives for rwo volumes. Signed-off-by: Kevin Fenzi --- playbooks/groups/nfs-servers.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/playbooks/groups/nfs-servers.yml b/playbooks/groups/nfs-servers.yml index d03edf05d6..15d11476d1 100644 --- a/playbooks/groups/nfs-servers.yml +++ b/playbooks/groups/nfs-servers.yml @@ -87,6 +87,30 @@ tags: - drives + - name: create 1 GB communishift logical volumes + lvol: vg=VG_nfs lv=openshift-01gb-{{item}} size=1g shrink=no + with_items: ["00","01","02","03","04","05","06","07","08","09"] + tags: + - drives + + - name: Create FS for 1 GB communishift logical volules + filesystem: fstype=xfs dev=/dev/VG_nfs/openshift-01gb-{{item}} + with_items: ["00","01","02","03","04","05","06","07","08","09"] + tags: + - drives + + - name: Create openshift 1GB tree directories + file: path=/srv/nfs/openshift-01gb-{{item}} state=directory owner=root group=root + with_items: ["00","01","02","03","04","05","06","07","08","09"] + tags: + - drives + + - name: Mount openshift 1GB tree directories + mount: name=/srv/nfs/openshift-01gb-{{item}} src=/dev/mapper/VG_nfs-openshift--01gb--{{item}} fstype=xfs state=mounted + with_items: ["00","01","02","03","04","05","06","07","08","09"] + tags: + - drives + - name: create 5 GB communishift logical volumes lvol: vg=VG_nfs lv=openshift-05gb-{{item}} size=5g shrink=no with_items: ["00","01","02","03","04","05","06","07","08","09"]