| | |
| | | {% endfor %} |
| | | |
| | | [masters] |
| | | {% for host in groups['masters'] %} |
| | | {% for host in groups['masters']|sort %} |
| | | {{ hostvars[host].internaldns }} host_zone={{hostvars[host]['placement']}} |
| | | {% endfor %} |
| | | |
| | | [etcd] |
| | | {% for host in groups['masters'] %} |
| | | {% for host in groups['masters']|sort %} |
| | | {{ hostvars[host].internaldns }} host_zone={{hostvars[host]['placement']}} |
| | | {% endfor %} |
| | | |
| | | [nodes] |
| | | ## These are the masters |
| | | {% for host in groups['masters'] %} |
| | | {{ hostvars[host].internaldns }} openshift_hostname={{ hostvars[host].internaldns }} openshift_node_labels="{'cluster': '{{guid}}', 'env':'master', 'zone': '{{hostvars[host]['placement']}}'}" |
| | | {% for host in groups['masters']|sort %} |
| | | {{ hostvars[host].internaldns }} openshift_hostname={{ hostvars[host].internaldns }} openshift_node_labels="{'env':'master', 'cluster': '{{guid}}', 'zone': '{{hostvars[host]['placement']}}'}" |
| | | {% endfor %} |
| | | |
| | | ## These are infranodes |
| | | {% for host in groups['infranodes'] %} |
| | | {{ hostvars[host].internaldns }} openshift_hostname={{ hostvars[host].internaldns }} openshift_node_labels="{'cluster': '{{guid}}', 'env':'infra', 'zone': '{{hostvars[host]['placement']}}'}" |
| | | {% for host in groups['infranodes']|sort %} |
| | | {{ hostvars[host].internaldns }} openshift_hostname={{ hostvars[host].internaldns }} openshift_node_labels="{'env':'infra', 'cluster': '{{guid}}', 'zone': '{{hostvars[host]['placement']}}'}" |
| | | {% endfor %} |
| | | |
| | | ## These are regular nodes |
| | | {% for host in groups['nodes'] %} |
| | | {{ hostvars[host].internaldns }} openshift_hostname={{ hostvars[host].internaldns }} openshift_node_labels="{'cluster': '{{guid}}', 'env':'app', 'zone': '{{hostvars[host]['placement']}}'}" |
| | | {% for host in groups['nodes']|sort %} |
| | | {{ hostvars[host].internaldns }} openshift_hostname={{ hostvars[host].internaldns }} openshift_node_labels="{'env':'app', 'cluster': '{{guid}}', 'zone': '{{hostvars[host]['placement']}}'}" |
| | | {% endfor %} |
| | | |
| | | ## These are CNS nodes |
| | | {% for host in groups['support'] %} |
| | | # {{ hostvars[host].internaldns }} openshift_hostname={{ hostvars[host].internaldns }} openshift_node_labels="{'cluster': '{{guid}}', 'env':'glusterfs', 'zone': '{{hostvars[host]['placement']}}'}" |
| | | {% for host in groups['support']|sort %} |
| | | # {{ hostvars[host].internaldns }} openshift_hostname={{ hostvars[host].internaldns }} openshift_node_labels="{'env':'glusterfs', 'cluster': '{{guid}}', 'zone': '{{hostvars[host]['placement']}}'}" |
| | | {% endfor %} |
| | | |
| | | [nfs] |
| | |
| | | {{ hostvars[nfshost].internaldns }} openshift_hostname={{ hostvars[nfshost].internaldns }} |
| | | |
| | | #[glusterfs] |
| | | {% for host in groups['support'] %} |
| | | {% for host in groups['support']|sort %} |
| | | # {{ hostvars[host].internaldns }} glusterfs_devices='[ "{{ glusterfs_app_device_name }}" ]' |
| | | {% endfor %} |