summaryrefslogtreecommitdiffstats
path: root/roles/kuryr/tasks/master.yaml
blob: 4f9dd82def77e590c5032218415a8850c590b49b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
- name: Perform OpenShift ServiceAccount config
  include_tasks: serviceaccount.yaml
  run_once: true

- name: Create kuryr manifests tempdir
  command: mktemp -d
  register: manifests_tmpdir

- name: Create kuryr ConfigMap manifest
  become: yes
  template:
    src: configmap.yaml.j2
    dest: "{{ manifests_tmpdir.stdout }}/configmap.yaml"

- name: Create kuryr-controller Deployment manifest
  become: yes
  template:
    src: controller-deployment.yaml.j2
    dest: "{{ manifests_tmpdir.stdout }}/controller-deployment.yaml"

- name: Create kuryr-cni DaemonSet manifest
  become: yes
  template:
    src: cni-daemonset.yaml.j2
    dest: "{{ manifests_tmpdir.stdout }}/cni-daemonset.yaml"

- name: Apply ConfigMap manifest
  oc_obj:
    state: present
    kind: ConfigMap
    name: "kuryr-config"
    namespace: "{{ kuryr_namespace }}"
    files:
    - "{{ manifests_tmpdir.stdout }}/configmap.yaml"
  run_once: true

- name: Apply Controller Deployment manifest
  oc_obj:
    state: present
    kind: Deployment
    name: "kuryr-controller"
    namespace: "{{ kuryr_namespace }}"
    files:
    - "{{ manifests_tmpdir.stdout }}/controller-deployment.yaml"
  run_once: true

- name: Apply kuryr-cni DaemonSet manifest
  oc_obj:
    state: present
    kind: DaemonSet
    name: "kuryr-cni-ds"
    namespace: "{{ kuryr_namespace }}"
    files:
    - "{{ manifests_tmpdir.stdout }}/cni-daemonset.yaml"
  run_once: true