diff options
author | Valerii Ponomarov <vponomar@redhat.com> | 2019-02-07 02:08:23 +0530 |
---|---|---|
committer | Valerii Ponomarov <vponomar@redhat.com> | 2019-02-07 02:36:02 +0530 |
commit | 25fcd9c5aa4c360eff19ef08fc4e2bdff6147ffd (patch) | |
tree | 544cf09479861ee7c434a7f9ece19167c14ddf35 /deployment/playbooks/roles/openshift-volume-quota | |
parent | a6c7dead0d6ddad4dae93a4292891617b50b44a0 (diff) |
Add end-to-end OCP 'deployment' functionality
Add end-to-end deployment tool of OpenShift and OpenShift Container
Storage on top of VMWare.
Added code is modified version of the
'reference-architecture/vmware-ansible' dir from the following repo:
https://github.com/vponomaryov/openshift-ansible-contrib
Read 'deployment/README.rst' file for more details about the
deployment tool.
Change-Id: Ic96f252ff786cc1ecf24d27f0ec47e324131e41b
Diffstat (limited to 'deployment/playbooks/roles/openshift-volume-quota')
-rw-r--r-- | deployment/playbooks/roles/openshift-volume-quota/defaults/main.yaml | 5 | ||||
-rw-r--r-- | deployment/playbooks/roles/openshift-volume-quota/tasks/main.yaml | 27 |
2 files changed, 32 insertions, 0 deletions
diff --git a/deployment/playbooks/roles/openshift-volume-quota/defaults/main.yaml b/deployment/playbooks/roles/openshift-volume-quota/defaults/main.yaml new file mode 100644 index 00000000..cd74c20e --- /dev/null +++ b/deployment/playbooks/roles/openshift-volume-quota/defaults/main.yaml @@ -0,0 +1,5 @@ +--- +local_volumes_device: "/dev/sdc" +local_volumes_fstype: "xfs" +local_volumes_fsopts: "gquota" +local_volumes_path: "/var/lib/origin/openshift.local.volumes" diff --git a/deployment/playbooks/roles/openshift-volume-quota/tasks/main.yaml b/deployment/playbooks/roles/openshift-volume-quota/tasks/main.yaml new file mode 100644 index 00000000..df58fe80 --- /dev/null +++ b/deployment/playbooks/roles/openshift-volume-quota/tasks/main.yaml @@ -0,0 +1,27 @@ +--- +- name: Create filesystem for /var/lib/origin/openshift.local.volumes + filesystem: + fstype: "{{ local_volumes_fstype }}" + dev: "{{ local_volumes_device }}" + +- name: Create local volumes directory + file: + path: "{{ local_volumes_path }}" + state: directory + recurse: yes + +- name: Create fstab entry + mount: + name: "{{ local_volumes_path }}" + src: "{{ local_volumes_device }}" + fstype: "{{ local_volumes_fstype }}" + opts: "{{ local_volumes_fsopts }}" + state: present + +- name: Mount fstab entry + mount: + name: "{{ local_volumes_path }}" + src: "{{ local_volumes_device }}" + fstype: "{{ local_volumes_fstype }}" + opts: "{{ local_volumes_fsopts }}" + state: mounted |