summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-cluster/config.yml
blob: 4235735409a23cf6b78a3f34371b92be70923bb6 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
---
- include: std_include.yml
  tags:
  - always

# TODO: refactor this into its own include
# and pass a variable for ctx
- name: Verify Requirements
  hosts: oo_all_hosts
  roles:
  - openshift_health_checker
  vars:
  - r_openshift_health_checker_playbook_context: install
  post_tasks:
  - action: openshift_health_check
    args:
      checks:
      - disk_availability
      - memory_availability
      - package_availability
      - package_version
      - docker_image_availability
      - docker_storage

- include: initialize_oo_option_facts.yml
  tags:
  - always

- name: Setup firewall
  hosts: oo_all_hosts
  tags:
  - always
  tasks:
  # This should move to intialize_facts
  - name: set os_firewall_enabled
    set_fact:
      os_firewall_enabled: true
      os_firewall_use_firewalld: false

  - name: Set proper firewall settings
    include_role:
      name: os_firewall

- name: Disable excluders
  hosts: oo_masters_to_config:oo_nodes_to_config
  tags:
  - always
  gather_facts: no
  roles:
  - role: openshift_excluder
    r_openshift_excluder_action: disable
    r_openshift_excluder_service_type: "{{ openshift.common.service_type }}"

- include: ../openshift-etcd/config.yml
  tags:
  - etcd

- include: ../openshift-nfs/config.yml
  tags:
  - nfs

- include: ../openshift-loadbalancer/config.yml
  tags:
  - loadbalancer

- include: ../openshift-master/config.yml
  tags:
  - master

- include: additional_config.yml
  tags:
  - master

- include: ../openshift-node/config.yml
  tags:
  - node

- include: ../openshift-glusterfs/config.yml
  tags:
  - glusterfs

- include: openshift_hosted.yml
  tags:
  - hosted

- include: service_catalog.yml
  when:
  - openshift_enable_service_catalog | default(false) | bool
  tags:
  - servicecatalog

- name: Re-enable excluder if it was previously enabled
  hosts: oo_masters_to_config:oo_nodes_to_config
  tags:
  - always
  gather_facts: no
  roles:
  - role: openshift_excluder
    r_openshift_excluder_action: enable
    r_openshift_excluder_service_type: "{{ openshift.common.service_type }}"