summaryrefslogtreecommitdiffstats
path: root/deployment/playbooks/roles/etcd-storage/tasks/main.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'deployment/playbooks/roles/etcd-storage/tasks/main.yaml')
-rw-r--r--deployment/playbooks/roles/etcd-storage/tasks/main.yaml24
1 files changed, 24 insertions, 0 deletions
diff --git a/deployment/playbooks/roles/etcd-storage/tasks/main.yaml b/deployment/playbooks/roles/etcd-storage/tasks/main.yaml
new file mode 100644
index 00000000..fe13dc17
--- /dev/null
+++ b/deployment/playbooks/roles/etcd-storage/tasks/main.yaml
@@ -0,0 +1,24 @@
+---
+- name: Create openshift volume group
+ lvg: vg=etcd_vg pvs=/dev/sdd
+
+- name: Create lvm volumes
+ lvol: vg=etcd_vg lv=etcd_lv size=95%FREE state=present shrink=no
+
+- name: Create local partition on lvm lv
+ filesystem:
+ fstype: xfs
+ dev: /dev/etcd_vg/etcd_lv
+
+- name: Make mounts owned by nfsnobody
+ file: path=/var/lib/etcd state=directory mode=0755
+
+- name: Mount the partition
+ mount:
+ name: /var/lib/etcd
+ src: /dev/etcd_vg/etcd_lv
+ fstype: xfs
+ state: present
+
+- name: Remount new partition
+ command: "mount -a"