Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Create an OSEv3 group that contains the master, nodes, etcd, and lb groups.
- # The lb group lets Ansible configure HAProxy as the load balancing solution.
- # Comment lb out if your load balancer is pre-configured.
- [OSEv3:children]
- masters
- nodes
- etcd
- lb
- #nfs
- # Set variables common for all OSEv3 hosts
- [OSEv3:vars]
- ansible_ssh_user=root
- openshift_release=1.4.1
- deployment_type=origin
- #deployment_subtype=registry
- ansible_python_interpreter=/usr/bin/python3
- osm_cluster_network_cidr=192.168.0.0/16
- # 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'}]
- # Enable cockpit
- #osm_use_cockpit=true
- # Set cockpit plugins
- #osm_cockpit_plugins=['cockpit-kubernetes']
- # Native high availbility cluster method with optional load balancer.
- # If no lb group is defined installer assumes that a load balancer has
- # been preconfigured. For installation the value of
- # openshift_master_cluster_hostname must resolve to the load balancer
- # or to one or all of the masters defined in the inventory if no load
- # balancer is present.
- openshift_master_cluster_method=native
- openshift_master_cluster_password=password
- openshift_master_cluster_hostname=openshift.domain.com
- openshift_master_cluster_public_hostname=openshift.domain.com
- # 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']}
- # override the default controller lease ttl
- #osm_controller_lease_ttl=30
- # enable ntp on masters to ensure proper failover
- openshift_clock_enabled=true
- # host group for masters
- [masters]
- host000osm100.domain.com openshift_ip=10.131.6.102
- host000osm101.domain.com openshift_ip=10.131.6.103
- host000osm102.domain.com openshift_ip=10.131.6.104
- # host group for etcd
- [etcd]
- host000ose100.domain.com openshift_ip=10.131.6.108
- host000ose101.domain.com openshift_ip=10.131.6.109
- host000ose102.domain.com openshift_ip=10.131.6.110
- # Specify load balancer host
- [lb]
- host000oha100.domain.com openshift_ip=10.131.6.111 --openshift_public_hostname=openshift.domain.com containerized=false
- # host group for nodes, includes region info
- [nodes]
- host000osm100.domain.com openshift_node_labels="{'region': 'infra', 'zone': 'default'}"
- host000osm101.domain.com openshift_node_labels="{'region': 'infra', 'zone': 'default'}"
- host000osm102.domain.com openshift_node_labels="{'region': 'infra', 'zone': 'default'}"
- host000osn100.domain.com openshift_node_labels="{'region': 'primary', 'zone': 'east'}"
- host000osn101.domain.com openshift_node_labels="{'region': 'primary', 'zone': 'west'}"
- host000osn102.domain.com openshift_node_labels="{'region': 'primary', 'zone': 'east'}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement