summaryrefslogtreecommitdiffstats
path: root/playbooks/gce/openshift-cluster/config.yml
blob: 2625d4d0539bec896c398b37c64c07bcd7dd4eda (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
---
- hosts: localhost
  gather_facts: no
  tasks:
  - include_vars: vars.yml
  - include_vars: cluster_hosts.yml
  - add_host:
      name: "{{ item }}"
      groups: l_oo_all_hosts
      ansible_ssh_user: "{{ deployment_vars[deployment_type].ssh_user }}"
      ansible_become: "{{ deployment_vars[deployment_type].become }}"
    with_items: "{{ g_all_hosts | default([]) }}"

- hosts: l_oo_all_hosts
  gather_facts: no
  tasks:
  - include_vars: vars.yml
  - include_vars: cluster_hosts.yml

- include: ../../common/openshift-cluster/config.yml
  vars:
    g_ssh_user: "{{ deployment_vars[deployment_type].ssh_user }}"
    g_sudo: "{{ deployment_vars[deployment_type].become }}"
    g_nodeonmaster: true
    openshift_cluster_id: "{{ cluster_id }}"
    openshift_debug_level: "{{ debug_level }}"
    openshift_deployment_type: "{{ deployment_type }}"
    openshift_hostname: "{{ gce_private_ip }}"
    openshift_hosted_registry_selector: 'type=infra'
    openshift_hosted_router_selector: 'type=infra'
    openshift_master_cluster_method: 'native'
    openshift_use_openshift_sdn: "{{ lookup('oo_option', 'use_openshift_sdn') }}"
    os_sdn_network_plugin_name: "{{ lookup('oo_option', 'sdn_network_plugin_name') }}"
    openshift_use_flannel: "{{ lookup('oo_option', 'use_flannel') }}"
    openshift_use_calico: "{{ lookup('oo_option', 'use_calico') }}"
    openshift_use_fluentd: "{{ lookup('oo_option', 'use_fluentd') }}"