blob: b86bb1549c72b02bc02cb6777ce5f44ba64104ca (
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
57
58
59
60
61
62
|
---
# This file is included both in the openshift_master role and in the upgrade
# playbooks.
- include: config/install-node-deps-docker-service-file.yml
when: openshift.common.is_containerized | bool
- block:
- name: Pre-pull node image
command: >
docker pull {{ openshift.node.node_image }}:{{ openshift_image_tag }}
register: pull_result
changed_when: "'Downloaded newer image' in pull_result.stdout"
- include: config/install-node-docker-service-file.yml
when:
- openshift.common.is_containerized | bool
- not openshift.common.is_node_system_container | bool
- name: Install Node service file
template:
dest: "/etc/systemd/system/{{ openshift.common.service_type }}-node.service"
src: "node.service.j2"
when: not openshift.common.is_containerized | bool
notify:
- reload systemd units
- restart node
- include: config/install-ovs-service-env-file.yml
when: openshift.common.is_containerized | bool
- name: Install Node system container
include: node_system_container.yml
when:
- openshift.common.is_containerized | bool
- openshift.common.is_node_system_container | bool
- name: Install OpenvSwitch system containers
include: openvswitch_system_container.yml
when:
- openshift.common.use_openshift_sdn | default(true) | bool
- openshift.common.is_containerized | bool
- openshift.common.is_openvswitch_system_container | bool
- include: config/workaround-bz1331590-ovs-oom-fix.yml
when: openshift.common.use_openshift_sdn | default(true) | bool
- block:
- name: Pre-pull openvswitch image
command: >
docker pull {{ openshift.node.ovs_image }}:{{ openshift_image_tag }}
register: pull_result
changed_when: "'Downloaded newer image' in pull_result.stdout"
- include: config/install-ovs-docker-service-file.yml
when:
- openshift.common.is_containerized | bool
- openshift.common.use_openshift_sdn | default(true) | bool
- not openshift.common.is_openvswitch_system_container | bool
- include: config/configure-node-settings.yml
- include: config/configure-proxy-settings.yml
|