-
Notifications
You must be signed in to change notification settings - Fork 49
/
hosts
56 lines (40 loc) · 1.49 KB
/
hosts
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
# This is an example of a bring your own (byo) host inventory
# Create an OSEv3 group that contains the masters and nodes groups
[OSEv3:children]
masters
nodes
etcd
#nfs
#glusterfs
# Set variables common for all OSEv3 hosts
[OSEv3:vars]
# SSH user, this user should allow ssh based auth without requiring a
# password. If using ssh key based auth, then the key should be managed by an
# ssh agent.
ansible_ssh_user=BASTION_USERNAME
# If ansible_ssh_user is not root, ansible_become must be set to true and the
# user must be configured for passwordless sudo
ansible_become=yes
# Debug level for all OpenShift components (Defaults to 2)
debug_level=2
openshift_master_cluster_method=native
openshift_master_cluster_hostname=INTERNAL_MASTER
openshift_master_cluster_public_hostname=EXTERNAL_MASTER
# default subdomain to use for exposed routes
openshift_master_default_subdomain=APP_SUBDOMAIN
# host group for masters
[masters]
master[1:3]
[etcd]
master[1:3]
#[nfs]
#ose-bastion
# NOTE: Currently we require that masters be part of the SDN which requires that they also be nodes
# However, in order to ensure that your masters are not burdened with running pods you should
# make them unschedulable by adding openshift_schedulable=False any node that's also a master.
[nodes]
master[1:3] openshift_schedulable=false openshift_node_labels="{'region': 'primary'}"
node[1:3] openshift_node_labels="{'region': 'primary'}"
infranode[1:3] openshift_node_labels="{'region': 'infra'}"
#[glusterfs]
#infranode[1:3]