summaryrefslogtreecommitdiffstats
path: root/playbooks/aws/openshift-node/config.yml
blob: fc9b397b4b711b0967217a0525a76b76b19bbd65 (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
---
- name: Populate oo_nodes_to_config and oo_first_master host groups
  hosts: localhost
  gather_facts: no
  tasks:
  - name: Evaluate oo_nodes_to_config
    add_host:
      name: "{{ item }}"
      groups: oo_nodes_to_config
      ansible_ssh_user: root
    with_items: oo_host_group_exp | default([])
  - name: Evaluate oo_first_master
    add_host:
      name: "{{ groups['tag_env-host-type_' ~ cluster_id ~ '-openshift-master'][0] }}"
      groups: oo_first_master
      ansible_ssh_user: root


- include: ../../common/openshift-node/config.yml
  vars:
    openshift_cluster_id: "{{ cluster_id }}"
    openshift_debug_level: 4
    openshift_deployment_type: "{{ deployment_type }}"
    openshift_hostname: "{{ ec2_private_ip_address }}"
    openshift_public_hostname: "{{ ec2_ip_address }}"