summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-10-10 17:27:56 -0400
committerScott Dodson <sdodson@redhat.com>2017-10-30 09:25:45 -0400
commitbbafaeb918a2ffbd591595bb5fb2a99eb900721d (patch)
tree4ec82db8913eb79ce03e4dd552936aa9d1769d62 /roles
parentb0ba3dc4b11199c5ccae37bdc452e3e35e225edc (diff)
downloadopenshift-bbafaeb918a2ffbd591595bb5fb2a99eb900721d.tar.gz
openshift-bbafaeb918a2ffbd591595bb5fb2a99eb900721d.tar.bz2
openshift-bbafaeb918a2ffbd591595bb5fb2a99eb900721d.tar.xz
openshift-bbafaeb918a2ffbd591595bb5fb2a99eb900721d.zip
Add dm_thin_pool for gluster use
Diffstat (limited to 'roles')
-rw-r--r--roles/openshift_storage_glusterfs/tasks/kernel_modules.yml12
-rw-r--r--roles/openshift_storage_glusterfs/templates/glusterfs.conf4
2 files changed, 16 insertions, 0 deletions
diff --git a/roles/openshift_storage_glusterfs/tasks/kernel_modules.yml b/roles/openshift_storage_glusterfs/tasks/kernel_modules.yml
new file mode 100644
index 000000000..030fa81c9
--- /dev/null
+++ b/roles/openshift_storage_glusterfs/tasks/kernel_modules.yml
@@ -0,0 +1,12 @@
+---
+- name: Ensure device mapper modules loaded
+ template:
+ src: glusterfs.conf
+ dest: /etc/modules-load.d/glusterfs.conf
+ register: km
+
+- name: load kernel modules
+ systemd:
+ name: systemd-modules-load.service
+ state: restarted
+ when: km | changed
diff --git a/roles/openshift_storage_glusterfs/templates/glusterfs.conf b/roles/openshift_storage_glusterfs/templates/glusterfs.conf
new file mode 100644
index 000000000..dd4d6e6f7
--- /dev/null
+++ b/roles/openshift_storage_glusterfs/templates/glusterfs.conf
@@ -0,0 +1,4 @@
+#{{ ansible_managed }}
+dm_thin_pool
+dm_snapshot
+dm_mirror \ No newline at end of file