summaryrefslogtreecommitdiffstats
path: root/roles/openshift_openstack/tasks/container-storage-setup.yml
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-11-16 08:53:17 -0500
committerGitHub <noreply@github.com>2017-11-16 08:53:17 -0500
commit8a85bc3a00efb654238a58e1faa2a2629d9360b1 (patch)
tree693186d957899c6e3cd38a6ae5aa66392814ff15 /roles/openshift_openstack/tasks/container-storage-setup.yml
parent7dcc6292e2ca89fe22675491299cf5853860bed8 (diff)
parent2e9d134d4564d87dbbc7853b07204f7f44ee01e6 (diff)
downloadopenshift-8a85bc3a00efb654238a58e1faa2a2629d9360b1.tar.gz
openshift-8a85bc3a00efb654238a58e1faa2a2629d9360b1.tar.bz2
openshift-8a85bc3a00efb654238a58e1faa2a2629d9360b1.tar.xz
openshift-8a85bc3a00efb654238a58e1faa2a2629d9360b1.zip
Merge pull request #6039 from tomassedovic/openstack-provider-githist
Add the OpenStack provider
Diffstat (limited to 'roles/openshift_openstack/tasks/container-storage-setup.yml')
-rw-r--r--roles/openshift_openstack/tasks/container-storage-setup.yml37
1 files changed, 37 insertions, 0 deletions
diff --git a/roles/openshift_openstack/tasks/container-storage-setup.yml b/roles/openshift_openstack/tasks/container-storage-setup.yml
new file mode 100644
index 000000000..82307b208
--- /dev/null
+++ b/roles/openshift_openstack/tasks/container-storage-setup.yml
@@ -0,0 +1,37 @@
+---
+- block:
+ - name: create the docker-storage config file
+ template:
+ src: docker-storage-setup-overlayfs.j2
+ dest: /etc/sysconfig/docker-storage-setup
+ owner: root
+ group: root
+ mode: 0644
+ when:
+ - ansible_distribution_version | version_compare('7.4', '>=')
+ - ansible_distribution == "RedHat"
+
+- block:
+ - name: create the docker-storage-setup config file
+ template:
+ src: docker-storage-setup-dm.j2
+ dest: /etc/sysconfig/docker-storage-setup
+ owner: root
+ group: root
+ mode: 0644
+ when:
+ - ansible_distribution_version | version_compare('7.4', '<')
+ - ansible_distribution == "RedHat"
+
+- block:
+ - name: create the docker-storage-setup config file for CentOS
+ template:
+ src: docker-storage-setup-dm.j2
+ dest: /etc/sysconfig/docker-storage-setup
+ owner: root
+ group: root
+ mode: 0644
+
+ # TODO(shadower): Find out which CentOS version supports overlayfs2
+ when:
+ - ansible_distribution == "CentOS"