diff options
Diffstat (limited to 'scripts/raid-lvm/main.yml')
-rw-r--r-- | scripts/raid-lvm/main.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/scripts/raid-lvm/main.yml b/scripts/raid-lvm/main.yml new file mode 100644 index 0000000..405168f --- /dev/null +++ b/scripts/raid-lvm/main.yml @@ -0,0 +1,25 @@ +version: 2.2 +category: File System +shortdesc: RAID Hosting LVM +longdesc: "Configure a RAID 1 host based mirror together with a cluster manager LVM volume group and LVM volumes." +parameters: + - name: id + shortdesc: RAID and LVM Group ID + longdesc: File systems that should be mounted in the LVM can be added to this group resource. + type: resource + value: g-raid + required: true +include: + - script: raid1 + parameters: + - name: raidconf + value: /etc/mdadm.conf + type: string + - name: raiddev + value: /dev/md0 + type: string + - script: lvm +actions: + - include: lvm + - include: raid1 + - cib: group {{id}} {{raid1:id}} {{lvm:id}} meta target-role=stopped |