Skip to content

Instantly share code, notes, and snippets.

@detiber
Created January 15, 2016 19:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save detiber/d38aefe4cf37006a9f84 to your computer and use it in GitHub Desktop.
Save detiber/d38aefe4cf37006a9f84 to your computer and use it in GitHub Desktop.
[OSEv3:children]
masters
nodes
etcd
lb
# Set variables common for all OSEv3 hosts
[OSEv3:vars]
ansible_ssh_user=ec2-user
ansible_sudo=true
# deployment type valid values are origin, online, atomic-enterprise, and openshift-enterprise
deployment_type=openshift-enterprise
# htpasswd auth
openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/htpasswd'}]
# Allow all auth
#openshift_master_identity_providers=[{'name': 'allow_all', 'login': 'true', 'challenge': 'true', 'kind': 'AllowAllPasswordIdentityProvider'}]
# host group for masters
[masters]
<master instance hostname>
[etcd]
[lb]
# NOTE: Currently we require that masters be part of the SDN which requires that they also be nodes
# However, in order to ensure that your masters are not burdened with running pods you should
# make them unschedulable by adding openshift_schedulable=False any node that's also a master.
[nodes]
<master instance hostname> openshift_schedulable=False
<node instance 1> openshift_node_labels="{'region': 'primary', 'zone': 'default'}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment