[nfs/server] make the disks have format. break the world

This commit is contained in:
Stephen Smoogen 2019-06-06 13:36:00 +00:00
parent 4f60aeda18
commit b6df48ce31
2 changed files with 19 additions and 4 deletions
roles/nfs/server/tasks

View file

@ -9,6 +9,10 @@
tags:
- nfs/server
- name: If we are on storinator01 make its disks
include_playbook: storinator.yml
when: inventory_hostname == 'storinator01.fedorainfracloud.org'
- name: setup /etc/exports
copy: src={{ inventory_hostname }}-exports dest=/etc/exports
register: exports
@ -34,10 +38,6 @@
tags:
- nfs/server
- name: If we are on storinator01 include its jobs
include_playbook: storinator.yml
when: inventory_hostname == 'storinator01.fedorainfracloud.org'
- name: Kick exportfs if /etc/exports changed
command: /usr/sbin/exportfs -ra
when: exports.changed

View file

@ -2,15 +2,30 @@
- name: create copr storage
lvol: vg=VG_nfs lv=copr-dist-git size=10t shrink=no
- name: Create FS for copr
filesystem: fstype=xfs dev=/dev/VG_nfs/copr-dist-git
- 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
- name: Create FS for 5 GB communishift logical volules
filesystem: fstype=xfs dev=/dev/VG_nfs/openshift-05gb-{{item}}
with_items: 00 01 02 03 04 05 06 07 08 09
- name: create 10 GB communishift logical volumes
lvol: vg=VG_nfs lv=openshift-10gb-{{item}} size=10g shrink=no
with_items: 00 01 02 03 04 05 06 07 08 09
- name: Create FS for 10 GB communishift logical volules
filesystem: fstype=xfs dev=/dev/VG_nfs/openshift-10gb-{{item}}
with_items: 00 01 02 03 04 05 06 07 08 09
- name: create 25 GB communishift logical volumes
lvol: vg=VG_nfs lv=openshift-25gb-{{item}} size=25g shrink=no
with_items: 00 01 02 03 04 05 06 07 08 09
- name: Create FS for 25 GB communishift logical volules
filesystem: fstype=xfs dev=/dev/VG_nfs/openshift-25gb-{{item}}
with_items: 00 01 02 03 04 05 06 07 08 09