Created
August 15, 2017 09:48
-
-
Save git001/67cf575f606638c5f3ca8decd4fe0956 to your computer and use it in GitHub Desktop.
Example inventory file for Calico SDN on openshift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this is the ansible inventory file from | |
# https://youtu.be/FsXuZCEWEhQ | |
[OSEv3:children] | |
masters | |
nodes | |
etcd | |
[OSEv3:vars] | |
ansible_ssh_user=root | |
os_firewall_use_firewalld=false | |
deployment_type=openshift-enterprise | |
os_sdn_network_plugin_name=cni | |
openshift_use_openshift_sdn=false | |
openshift_use_calico=true | |
calico_ipv4pool_ipip="cross-subnet" | |
calico_ipv4pool_cidr="10.5.0.0/16" | |
calico_etcd_cert_dir=/etc/origin/calico | |
calico_etcd_ca_cert_file=/etc/origin/calico/ca.pem | |
calico_etcd_cert_file=/etc/origin/calico/calico.pem | |
calico_etcd_key_file=/etc/origin/calico/calico-key.pem | |
calico_etcd_endpoints="https://e0.ocp.tigera.io:2379,https://e1.ocp.tigera.io:2379,https://e2.ocp.tigera.io:2379" | |
openshift_master_cluster_method=native | |
# Using AllowAllIdentityProvider just for Demo. Change to your favorite OpenShift Identity Provider | |
openshift_master_identity_providers=[{'name': 'allow_all', 'login': 'true', 'challenge': 'true', 'kind': 'AllowAllPasswordIdentityProvider'}] | |
# Disabling for smaller instances used for Demo purposes. Use instances with minimum disk and memory sizes required by OpenShift | |
openshift_disable_check=disk_availability,memory_availability | |
openshift_clock_enabled=true | |
[masters] | |
originm0.ocp.tigera.io openshift_hostname=originm0.ocp.tigera.io | |
originm1.ocp.tigera.io openshift_hostname=originm1.ocp.tigera.io | |
originm2.ocp.tigera.io openshift_hostname=originm2.ocp.tigera.io | |
# Use openshift_schedulable=true to allow pods to be scheduled on Masters. Otherwise, per OpenShift docs, Router and Registry should be manually scheduled | |
[nodes] | |
originm0.ocp.tigera.io openshift_hostname=originm0.ocp.tigera.io openshift_schedulable=true openshift_node_labels="{'region': 'infra', 'zone': 'default'}" | |
originm1.ocp.tigera.io openshift_hostname=originm1.ocp.tigera.io openshift_schedulable=true openshift_node_labels="{'region': 'infra', 'zone': 'default'}" | |
originm2.ocp.tigera.io openshift_hostname=originm2.ocp.tigera.io openshift_schedulable=true openshift_node_labels="{'region': 'infra', 'zone': 'default'}" | |
originw1.ocp.tigera.io openshift_hostname=originw1.ocp.tigera.io openshift_node_labels="{'region': 'primary', 'zone': 'west'}" | |
originw2.ocp.tigera.io openshift_hostname=originw2.ocp.tigera.io openshift_node_labels="{'region': 'primary', 'zone': 'west'}" | |
[etcd] | |
originm0.ocp.tigera.io openshift_hostname=originm0.ocp.tigera.io | |
originm1.ocp.tigera.io openshift_hostname=originm1.ocp.tigera.io | |
originm2.ocp.tigera.io openshift_hostname=originm2.ocp.tigera.io |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment