Skip to content

Instantly share code, notes, and snippets.

@leifmadsen
Last active January 17, 2023 22:01
Show Gist options
  • Select an option

  • Save leifmadsen/45b8d075c02770f9eb9efc943c24fb81 to your computer and use it in GitHub Desktop.

Select an option

Save leifmadsen/45b8d075c02770f9eb9efc943c24fb81 to your computer and use it in GitHub Desktop.
OpenShift+Storage+Service Catalogs
# vim: set ft=yaml shiftwidth=2 tabstop=2 expandtab :
openshift-lb ansible_host=openshift-lb.nfvpe.site
openshift-master-1 ansible_host=openshift-master-1.nfvpe.site
openshift-master-2 ansible_host=openshift-master-2.nfvpe.site
openshift-master-3 ansible_host=openshift-master-3.nfvpe.site
openshift-node-1 ansible_host=openshift-node-1.nfvpe.site
openshift-node-2 ansible_host=openshift-node-2.nfvpe.site
openshift-node-3 ansible_host=openshift-node-3.nfvpe.site
openshift-infra-node-1 ansible_host=10.19.110.71 # needed for telemetry
openshift-infra-node-2 ansible_host=10.19.110.72 # needed for telemetry
[OSEv3:children]
masters
nodes
etcd
glusterfs
lb
[OSEv3:vars]
ansible_become=yes
debug_level=4
# storage
openshift_storage_glusterfs_namespace=glusterfs
openshift_storage_glusterfs_name=storage
openshift_storage_glusterfs_storageclass_default=true
# service broker
openshift_enable_service_catalog=true
openshift_service_catalog_image_version=v3.9
# main setup
#openshift_master_unsupported_embedded_etcd=true
openshift_disable_check=disk_availability,memory_availability,docker_image_availability
openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}]
openshift_deployment_type=origin
openshift_release=v3.9
enable_excluders=false
openshift_clock_enabled=true
# Native HA
openshift_master_cluster_method=native
openshift_master_cluster_hostname=master.nfvpe.site
openshift_master_cluster_public_hostname=console.nfvpe.site
# hostname setup
openshift_hostname_check=true
openshift_master_default_subdomain=apps.nfvpe.site
# ansible service broker
ansible_service_broker_registry_user=<DOCKERHUB_USERNAME>
ansible_service_broker_registry_password=<DOCKERHUB_PASSWORD>
ansible_service_broker_registry_organization=ansibleplaybookbundle
ansible_service_broker_registry_whitelist=[".*-apb$"]
ansible_service_broker_local_registry_whitelist=[".*"]
[masters]
openshift-master-1
openshift-master-2
openshift-master-3
[etcd]
openshift-master-1
openshift-master-2
openshift-master-3
[lb]
openshift-lb
[nodes]
openshift-master-[1:3]
openshift-node-1 openshift_node_labels="{'region': 'primary', 'zone': 'default', 'node': 'blue'}"
openshift-node-2 openshift_node_labels="{'region': 'primary', 'zone': 'default', 'node': 'blue'}"
openshift-node-3 openshift_node_labels="{'region': 'primary', 'zone': 'default', 'node': 'green'}"
openshift-infra-node-1 openshift_node_labels="{'region': 'infra', 'zone': 'default', 'node': 'blue'}"
openshift-infra-node-2 openshift_node_labels="{'region': 'infra', 'zone': 'default', 'node': 'green'}"
[glusterfs]
openshift-node-[1:3]
[glusterfs:vars]
glusterfs_devices=[ "/dev/vdb" ]
r_openshift_storage_glusterfs_use_firewalld=false
r_openshift_storage_glusterfs_firewall_enabled=true
openshift_storage_glusterfs_timeout=900
openshift_storage_glusterfs_wipe=true
[all:vars]
ansible_user=centos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment