| | |
| | | tags: |
| | | - create_user_pv |
| | | |
| | | - name: For CNS change default storage class to glusterfs-storage |
| | | hosts: masters |
| | | run_once: true |
| | | become: yes |
| | | gather_facts: False |
| | | vars_files: |
| | | - "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/env_vars.yml" |
| | | tags: |
| | | - env-specific |
| | | - env-specific_infra |
| | | tasks: |
| | | - name: Set glusterfs-storage class to default |
| | | when: install_glusterfs|bool |
| | | shell: "oc patch storageclass glusterfs-storage -p '{\"metadata\": {\"annotations\": \ |
| | | {\"storageclass.kubernetes.io/is-default-class\": \"true\"}}}'" |
| | | - name: Remove default from glusterfs-storage-block class |
| | | when: install_glusterfs|bool |
| | | shell: "oc patch storageclass glusterfs-block -p '{\"metadata\": {\"annotations\": \ |
| | | {\"storageclass.kubernetes.io/is-default-class\": \"false\"}}}'" |
| | | |
| | | - name: Configure Bastion for CF integration |
| | | hosts: bastions |
| | | become: yes |