Wolfgang Kulhanek
2018-05-18 752d494dde306bd5aeaec5231ce210e7514f47b0
ansible/configs/ocp-workshop/post_software.yml
@@ -60,6 +60,26 @@
      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