Skip to content

Instantly share code, notes, and snippets.

@dav1x
Created September 7, 2017 20:03
Show Gist options
  • Save dav1x/9ade136aef80743c8996df2383678ea3 to your computer and use it in GitHub Desktop.
Save dav1x/9ade136aef80743c8996df2383678ea3 to your computer and use it in GitHub Desktop.
- name: Create openshift volume group
lvg: vg=etcd pvs=/dev/sdd
- name: Create lvm volumes
lvol: vg=etcd lv=etcd size=95%FREE state=present shrink=no
- name: Create local partition on lvm lv
filesystem:
fstype: xfs
dev: /dev/etcd/etcd
- 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/etcd
fstype: xfs
state: present
- name: Remount new partition
command: "mount -a"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment