Created
September 7, 2017 20:03
-
-
Save dav1x/9ade136aef80743c8996df2383678ea3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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