Pranav Gaikwad
2019-08-05 5082d293b55e5a64792f8997ac3586ed6bf349d1
commit | author | age
e28b28 1 ---
5082d2 2 - name: "{{ ceph_workload_title }} Ceph common resources"
PG 3   k8s:
4     state: "{{ ceph_workload_state }}"
5     definition: "{{ lookup('file', item) }}"
e28b28 6   loop:
PG 7     - "common.yaml"
5082d2 8     - "cephfs/csi-node-plugin-psp.yaml"
PG 9     - "cephfs/csi-nodeplugin-rbac.yaml"
10     - "cephfs/csi-provisioner-psp.yaml"
11     - "cephfs/csi-provisioner-rbac.yaml"
12     - "rbd/csi-node-plugin-psp.yaml"
13     - "rbd/csi-nodeplugin-rbac.yaml"
14     - "rbd/csi-provisioner-psp.yaml"
15     - "rbd/csi-provisioner-rbac.yaml"
e28b28 16   tags:
PG 17   - ceph_common_dep
18
5082d2 19 - name: "{{ ceph_workload_title }} Ceph operator and cluster"
e28b28 20   k8s:
PG 21     state: "{{ ceph_workload_state }}"
22     definition: "{{ lookup('template', item) }}"
23   loop:
24     - "operator-openshift-with-csi.yaml.j2"
25     - "cluster.yaml.j2"
26   tags:
27   - ceph_cluster_dep
28   - ceph_operator_dep
29
30 - name: "Waiting for MON pods to come up..."
31   shell: "oc get pods -o json --selector=app=rook-ceph-mon -n rook-ceph"
32   register: mon_pods
33   until: mon_pods.stdout|from_json|json_query('items[*].status.phase')|unique == ["Running"]
5082d2 34   retries: 12
PG 35   delay: 24
36   when: not ceph_workload_destroy | bool
e28b28 37
PG 38 - name: "Waiting for OSD pods to come up..."
39   shell: "oc get pods -o json --selector=app=rook-ceph-osd -n rook-ceph"
40   register: osd_pods
41   until: osd_pods.stdout|from_json|json_query('items[*].status.phase')|unique == ["Running"]
5082d2 42   retries: 12
PG 43   delay: 24
44   when: not ceph_workload_destroy | bool