commit | author | age
|
2282af
|
1 |
--- |
22fc6b
|
2 |
- name: Create operator resource files |
2282af
|
3 |
k8s: |
GH |
4 |
state: present |
|
5 |
namespace: "{{ _namespace }}" |
22fc6b
|
6 |
definition: "{{ lookup('file', role_path ~ '/files/datagrid/operator/{{ item }}.yml' ) | from_yaml }}" |
GH |
7 |
with_items: |
|
8 |
- crd |
|
9 |
- role |
|
10 |
- sa |
2282af
|
11 |
|
22fc6b
|
12 |
- name: Create operator resource templates |
GH |
13 |
k8s: |
|
14 |
state: present |
|
15 |
namespace: "{{ _namespace }}" |
|
16 |
definition: "{{ lookup('template', role_path ~ '/templates/datagrid/operator/{{ item }}.j2' ) | from_yaml }}" |
|
17 |
with_items: |
|
18 |
- rolebinding |
|
19 |
- deployment |
|
20 |
|
|
21 |
- name: Wait until infinispan-operator is running |
2282af
|
22 |
command: > |
22fc6b
|
23 |
oc rollout status Deployment/infinispan-operator --watch=true -n "{{ _namespace }}" |
2282af
|
24 |
|
GH |
25 |
- name: Create Infinispan |
|
26 |
k8s: |
|
27 |
state: present |
|
28 |
namespace: "{{ _namespace }}" |
22fc6b
|
29 |
definition: "{{ lookup('template', role_path ~ '/files/datagrid/cluster.yml' ) | from_yaml }}" |