Created
August 3, 2017 08:07
-
-
Save psachin/051ac8bea4953705f76b3fa2364fe05d to your computer and use it in GitHub Desktop.
Ansible host inventory(/etc/ansible/hosts) for OCP-3.5 installation. This also includes vars to enable hawkular metrics
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is the default ansible 'hosts' file. | |
# | |
# It should live in /etc/ansible/hosts | |
# | |
# - Comments begin with the '#' character | |
# - Blank lines are ignored | |
# - Groups of hosts are delimited by [header] elements | |
# - You can enter hostnames or ip addresses | |
# - A hostname/ip can be a member of multiple groups | |
# Ex 1: Ungrouped hosts, specify before any group headers. | |
## green.example.com | |
## blue.example.com | |
## 192.168.100.1 | |
## 192.168.100.10 | |
# Ex 2: A collection of hosts belonging to the 'webservers' group | |
## [webservers] | |
## alpha.example.org | |
## beta.example.org | |
## 192.168.1.100 | |
## 192.168.1.110 | |
# If you have multiple hosts following a pattern you can specify | |
# them like this: | |
## www[001:006].example.com | |
# Ex 3: A collection of database servers in the 'dbservers' group | |
## [dbservers] | |
## | |
## db01.intranet.mydomain.net | |
## db02.intranet.mydomain.net | |
## 10.25.1.56 | |
## 10.25.1.57 | |
# Here's another example of host ranges, this time there are no | |
# leading 0s: | |
## db-[99:101]-node.example.com | |
[OSEv3:children] | |
masters | |
nodes | |
[OSEv3:vars] | |
ansible_ssh_user=root | |
deployment_type=openshift-enterprise | |
# Uncomment the following to enable htpasswd authentication; defaults to | |
# DenyAllPasswordIdentityProvider. | |
openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}] | |
# apply updated node defaults | |
openshift_node_kubelet_args={'pods-per-core': ['10'], 'max-pods': ['250'], 'image-gc-high-threshold': ['90'], 'image-gc-low-threshold': ['80']} | |
openshift_metrics_install_metrics=True | |
openshift_hosted_metrics_storage_kind=nfs | |
openshift_hosted_metrics_storage_access_modes=['ReadWriteOnce'] | |
openshift_hosted_metrics_storage_host=vm253-237.dns.example.com | |
openshift_hosted_metrics_storage_nfs_directory=/nfsshare | |
openshift_hosted_metrics_storage_volume_name=metrics | |
openshift_hosted_metrics_storage_volume_size=10Gi | |
openshift_master_metrics_public_url=https://hawkular-metrics.apps.example.com/hawkular/metrics | |
openshift_metrics_hawkular_hostname=hawkular-metrics.apps.example.com | |
openshift_metrics_cassandra_storage_type=pv | |
[masters] | |
vm250-33.master.example.com | |
[nodes] | |
vm250-33.master.example.com openshift_node_labels="{'region': 'infra', 'zone': 'default'}" openshift_schedulable=true | |
vm250-57.node1.example.com openshift_node_labels="{'region': 'primary', 'zone': 'east'}" | |
vm253-153.node2.exampls.com openshift_node_labels="{'region': 'primary', 'zone': 'west'}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment