Skip to content

Instantly share code, notes, and snippets.

@yuvalif
Last active April 11, 2018 08:09
Show Gist options
  • Save yuvalif/777b9b992cf11a3505e6577eb664357c to your computer and use it in GitHub Desktop.
Save yuvalif/777b9b992cf11a3505e6577eb664357c 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
# use enterprise edition
openshift_deployment_type=openshift-enterprise
# use RPM install
containerized=False
# disabling some validations
# not a real production environment, just want to use loopback storage
openshift_disable_check=docker_storage
# ideally the rest of the checks are not excluded
# 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]
master.example.com
# host group for etcd
[etcd]
master.example.com
# host group for nodes, includes region info
[nodes]
master.example.com openshift_node_labels="{'region': 'infra', 'zone': 'default'}" openshift_schedulable=True
node.example.com 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