commit | author | age
|
561acf
|
1 |
[OSEv3:vars] |
4d169a
|
2 |
|
S |
3 |
########################################################################### |
|
4 |
### Ansible Vars |
|
5 |
########################################################################### |
|
6 |
timeout=60 |
|
7 |
ansible_become=yes |
|
8 |
ansible_ssh_user={{ansible_ssh_user}} |
|
9 |
|
561acf
|
10 |
# disable memory check, as we are not a production environment |
JM |
11 |
openshift_disable_check="memory_availability" |
|
12 |
|
|
13 |
# Set this line to enable NFS |
|
14 |
openshift_enable_unsupported_configurations=True |
4d169a
|
15 |
|
S |
16 |
|
561acf
|
17 |
########################################################################### |
JM |
18 |
### OpenShift Hosts |
|
19 |
########################################################################### |
|
20 |
[OSEv3:children] |
785959
|
21 |
lb |
4d169a
|
22 |
masters |
S |
23 |
etcd |
|
24 |
nodes |
|
25 |
nfs |
|
26 |
|
785959
|
27 |
[lb] |
JM |
28 |
{% for host in groups['loadbalancers'] %} |
561acf
|
29 |
{{ hostvars[host].internaldns }} |
785959
|
30 |
{% endfor %} |
JM |
31 |
|
4d169a
|
32 |
[masters] |
561acf
|
33 |
{% for host in groups['masters']|sort %} |
JM |
34 |
{{ hostvars[host].internaldns }} |
4d169a
|
35 |
{% endfor %} |
S |
36 |
|
|
37 |
[etcd] |
561acf
|
38 |
{% for host in groups['masters']|sort %} |
JM |
39 |
{{ hostvars[host].internaldns }} |
4d169a
|
40 |
{% endfor %} |
S |
41 |
|
|
42 |
[nodes] |
|
43 |
## These are the masters |
561acf
|
44 |
{% for host in groups['masters']|sort %} |
JM |
45 |
{{ hostvars[host].internaldns }} openshift_hostname={{ hostvars[host].internaldns }} openshift_node_labels="{'env': 'master', 'cluster': '{{guid}}'}" |
4d169a
|
46 |
{% endfor %} |
S |
47 |
|
|
48 |
## These are infranodes |
561acf
|
49 |
{% for host in groups['infranodes']|sort %} |
JM |
50 |
{{ hostvars[host].internaldns }} openshift_hostname={{ hostvars[host].internaldns }} openshift_node_labels="{'env':'infra', 'cluster': '{{guid}}'}" |
4d169a
|
51 |
{% endfor %} |
S |
52 |
|
|
53 |
## These are regular nodes |
561acf
|
54 |
{% for host in groups['nodes']|sort %} |
JM |
55 |
{{ hostvars[host].internaldns }} openshift_hostname={{ hostvars[host].internaldns }} openshift_node_labels="{'env':'app', 'cluster': '{{guid}}'}" |
|
56 |
{% endfor %} |
4d169a
|
57 |
|
561acf
|
58 |
{% for host in groups['support']|sort %} |
JM |
59 |
# {{ hostvars[host].internaldns }} openshift_hostname={{ hostvars[host].internaldns }} openshift_node_labels="{'env':'glusterfs', 'cluster': '{{guid}}'}" |
4d169a
|
60 |
{% endfor %} |
S |
61 |
|
|
62 |
[nfs] |
561acf
|
63 |
{% set nfshost = groups['support']|sort|first %} |
JM |
64 |
{{ hostvars[nfshost].internaldns }} openshift_hostname={{ hostvars[nfshost].internaldns }} |