diff --git a/ansible/kube/base.yaml b/ansible/kube/base.yaml index 7ce637926ab808b60930394793c4f97e939c0951..035224eb33066f7f9c59420f447f350b0bba5c1f 100644 --- a/ansible/kube/base.yaml +++ b/ansible/kube/base.yaml @@ -20,3 +20,16 @@ state: present key: "{{ item }}" loop: "{{ ssh_keys }}" + - name: Ensure /etc/multipathfolder exists + file: + path: /etc/multipath + state: directory + - name: Ensure /etc/multipath/conf.d folder exists + file: + path: /etc/multipath/conf.d + state: directory + - name: Blacklist multipath for drbd + template: + src: etc/multipath/conf.d/drbd.conf + dest: /etc/multipath/conf.d/drbd.conf + mode: 0644 diff --git a/ansible/kube/templates/etc/multipath/conf.d/drbd.conf b/ansible/kube/templates/etc/multipath/conf.d/drbd.conf new file mode 100644 index 0000000000000000000000000000000000000000..61c6b50c5a9b359990e6c40d4eca64b3a4be2acd --- /dev/null +++ b/ansible/kube/templates/etc/multipath/conf.d/drbd.conf @@ -0,0 +1,3 @@ +blacklist { + devnode "^drbd[0-9]+" +} \ No newline at end of file