Browse Source

make hostpath-provisioner optional for the docker registry

master
Nicolas Massé 9 years ago
parent
commit
8b026f4192
  1. 3
      roles/hostpath-provisioner/tasks/main.yml
  2. 1
      roles/hostpath-provisioner/vars/main.yml

3
roles/hostpath-provisioner/tasks/main.yml

@ -19,9 +19,12 @@
- name: Copy the PersistentVolumeClaim object definition
copy: src=registry-storage-pvc.yaml dest=/tmp/registry-storage-pvc.yaml
when: hostpath_provisioner_options.patch_docker_registry
- name: Create a PersistentVolumeClaim for the docker-registry
command: oc create -n default -f /tmp/registry-storage-pvc.yaml
when: hostpath_provisioner_options.patch_docker_registry
- name: Add the new volume to docker-registry
command: oc volume dc docker-registry -n default --add=true --overwrite=true --type=persistentVolumeClaim --name=registry-storage --claim-name=registry-storage
when: hostpath_provisioner_options.patch_docker_registry

1
roles/hostpath-provisioner/vars/main.yml

@ -5,3 +5,4 @@
target_namespace: default
docker_image: nmasse/openshift-hostpath-provisioner:latest
template: https://raw.githubusercontent.com/nmasse-itix/OpenShift-HostPath-Provisioner/master/setup/hostpath-provisioner-template.yaml
patch_docker_registry: true

Loading…
Cancel
Save