Skip to content

Instantly share code, notes, and snippets.

Created June 16, 2017 12:21
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 anonymous/be8dba5a02de5d82886c55cd72e2d222 to your computer and use it in GitHub Desktop.
Save anonymous/be8dba5a02de5d82886c55cd72e2d222 to your computer and use it in GitHub Desktop.
# Create an OSEv3 group that contains the masters and nodes groups
[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
#ansible_become=true
#ansible_become_user=root
#ansible_sudo=root
containerized=true
openshift_clock_enabled=true
openshift_deployment_type=origin
openshift_release=1.5.1
openshift_disable_check=memory_availability, docker_storage
openshift_docker_insecure_registries=172.30.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'}]
openshift_master_htpasswd_users={'admin': '$apr1$zgSjCrLt$1KSuj66CggeWSv.D.BXOA1', 'user': '$apr1$.gw8w9i1$ln9bfTRiD6OwuNTG5LvW50'}
# host group for masters
[masters]
master.adunicorn.local
# host group for etcd
[etcd]
master.adunicorn.local
# host group for nodes, includes region info
[nodes]
master.adunicorn.local openshift_node_labels="{'region': 'infra'}" openshift_schedulable=false
minion1.adunicorn.local openshift_node_labels="{'region': 'primary', 'zone': 'east'}" openshift_schedulable=true
minion2.adunicorn.local openshift_node_labels="{'region': 'primary', 'zone': 'east'}" openshift_schedulable=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment