Skip to content

Openshift Advanced Install Sample file

Chakradhar Rao Jonagam edited this page Aug 30, 2016 · 1 revision
[OSEv3:children]
masters
nodes

# Set variables common for all OSEv3 hosts
[OSEv3:vars]
# SSH user, this user should allow ssh based auth without requiring a password
ansible_ssh_user=root
debug_level=5

# If ansible_ssh_user is not root, ansible_sudo must be set to true
#ansible_sudo=true

deployment_type=openshift-enterprise
openshift_master_default_subdomain=cloudapps.example.com

# Global Proxy Configuration
# These options configure HTTP_PROXY, HTTPS_PROXY, and NOPROXY environment
# variables for docker and master services.
#openshift_http_proxy=http://USER:PASSWORD@IPADDR:PORT
#openshift_https_proxy=https://USER:PASSWORD@IPADDR:PORT
#openshift_no_proxy='.hosts.example.com,some-host.com'

# These options configure the BuildDefaults admission controller which injects
# environment variables into Builds. These values will default to their
# corresponding values above but you may set them independently. See BuildDefaults
# documentation at https://docs.openshift.org/latest/admin_guide/build_defaults_overrides.html
#openshift_builddefaults_http_proxy=openshift_http_proxy
#openshift_builddefaults_https_proxy=openshift_https_proxy
#openshift_builddefaults_no_proxy=openshift_noproxy
#openshift_builddefaults_git_http_proxy=openshift_builddefaults_http_proxy
#openshift_builddefaults_git_https_proxy=openshift_builddefaults_https_proxy

# 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'}]
# host group for masters
[masters]
ose3node8.example.com openshift_hostname=ose3node8.example.com openshift_ip=10.0.2.17

# host group for nodes, includes region info
[nodes]
ose3node8.example.com openshift_hostname=ose3node8.example.com openshift_ip=10.0.2.17 openshift_node_labels="{'region': 'infra', 'zone': 'default'}"
ose3node9.example.com openshift_hostname=ose3node9.example.com openshift_ip=10.0.2.18 openshift_node_labels="{'region': 'primary', 'zone': 'east'}"
#node2.example.com openshift_node_labels="{'region': 'primary', 'zone': 'west'}"
Clone this wiki locally