Skip to content

Instantly share code, notes, and snippets.

@DanielChuDC
Forked from davivcgarcia/inventory.ini
Created November 20, 2019 04:39
Show Gist options
  • Save DanielChuDC/66c0fa6134651e18e9cd994a3ec2ac3f to your computer and use it in GitHub Desktop.
Save DanielChuDC/66c0fa6134651e18e9cd994a3ec2ac3f to your computer and use it in GitHub Desktop.
Red Hat OpenShift v3.11 - Inventory Example: Authenticated Registry + Glusterfs (Logging, Metrics, Registry, Apps)
[OSEv3:children]
masters
nodes
etcd
glusterfs
[OSEv3:vars]
ansible_ssh_user=ec2-user
ansible_become=true
openshift_release=v3.11
openshift_deployment_type=openshift-enterprise
openshift_master_cluster_hostname=ip-10-1-21-100.ec2.internal
openshift_master_cluster_public_hostname=console.paas.acme.com
openshift_master_default_subdomain=apps.paas.acme.com
openshift_master_api_port=443
openshift_master_console_port=443
openshift_master_identity_providers=[{'name': 'Local', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider'}]
openshift_master_htpasswd_users={'admin': '<HTPASSWD HASH>', 'developer': '<HTPASSWD HASH>'}
openshift_master_dynamic_provisioning_enabled=true
oreg_url=registry.redhat.io/openshift3/ose-${component}:${version}
oreg_auth_user='<REGISTRY.REDHAT.IO SERVICE ACCOUNT USER>'
oreg_auth_password='<REGISTRY.REDHAT.IO SERVICE ACCOUNT PASSWORD>'
os_sdn_network_plugin_name='redhat/openshift-ovs-networkpolicy'
openshift_clock_enabled=true
openshift_storage_glusterfs_wipe=true
openshift_storage_glusterfs_heketi_wipe=true
openshift_storage_glusterfs_namespace=openshift-glusterfs
openshift_storage_glusterfs_storageclass=true
openshift_storage_glusterfs_storageclass_default=false
openshift_storage_glusterfs_block_deploy=true
openshift_storage_glusterfs_block_host_vol_create=true
openshift_storage_glusterfs_block_host_vol_size=100
openshift_storage_glusterfs_block_storageclass=true
openshift_storage_glusterfs_block_storageclass_default=false
openshift_storage_glusterfs_heketi_image=registry.access.redhat.com/rhgs3/rhgs-volmanager-rhel7:v3.11
openshift_storage_glusterfs_image=registry.access.redhat.com/rhgs3/rhgs-server-rhel7:v3.11
openshift_storage_glusterfs_block_image=registry.access.redhat.com/rhgs3/rhgs-gluster-block-prov-rhel7:v3.11
openshift_storage_glusterfs_s3_image=registry.access.redhat.com/rhgs3/rhgs-gluster-s3-server-rhel7:v3.11
openshift_hosted_registry_storage_kind=glusterfs
openshift_hosted_registry_storage_volume_size=80Gi
openshift_hosted_registry_replicas=1
openshift_registry_selector='node-role.kubernetes.io/infra=true'
openshift_hosted_router_replicas=3
openshift_router_selector='node-role.kubernetes.io/infra=true'
openshift_cluster_monitoring_operator_install=true
openshift_cluster_monitoring_operator_prometheus_storage_enabled=true
openshift_cluster_monitoring_operator_alertmanager_storage_enabled=true
openshift_cluster_monitoring_operator_prometheus_storage_capacity=40Gi
openshift_cluster_monitoring_operator_prometheus_storage_class_name=glusterfs-storage-block
openshift_cluster_monitoring_operator_alertmanager_storage_capacity=2Gi
openshift_cluster_monitoring_operator_alertmanager_storage_class_name=glusterfs-storage-block
openshift_cluster_monitoring_operator_node_selector={"node-role.kubernetes.io/infra":"true"}
openshift_metrics_install_metrics=true
openshift_metrics_duration=7
openshift_metrics_cassandra_pvc_size=25Gi
openshift_metrics_cassandra_storage_type=dynamic
openshift_metrics_cassandra_pvc_storage_class_name=glusterfs-storage-block
openshift_metrics_hawkular_hostname=metrics.apps.paas.acme.com
openshift_metrics_hawkular_nodeselector={"node-role.kubernetes.io/infra":"true"}
openshift_metrics_cassandra_nodeselector={"node-role.kubernetes.io/infra":"true"}
openshift_metrics_heapster_nodeselector={"node-role.kubernetes.io/infra":"true"}
openshift_logging_install_logging=true
openshift_logging_curator_default_days=7
openshift_logging_es_pvc_size=25Gi
openshift_logging_es_pvc_storage_class_name=glusterfs-storage-block
openshift_logging_kibana_hostname=logging.apps.paas.acme.com
openshift_logging_es_nodeselector={"node-role.kubernetes.io/infra":"true"}
openshift_logging_kibana_nodeselector={"node-role.kubernetes.io/infra":"true"}
openshift_logging_curator_nodeselector={"node-role.kubernetes.io/infra":"true"}
[masters]
ip-10-1-21-100.ec2.internal openshift_public_hostname=master.ocp.acme.com
[etcd]
ip-10-1-21-100.ec2.internal openshift_public_hostname=master.ocp.acme.com
[nodes]
ip-10-1-21-100.ec2.internal openshift_public_hostname=master.ocp.acme.com openshift_node_group_name='node-config-master'
ip-10-1-21-110.ec2.internal openshift_public_hostname=infra0.ocp.acme.com openshift_node_group_name='node-config-infra'
ip-10-1-21-111.ec2.internal openshift_public_hostname=infra1.ocp.acme.com openshift_node_group_name='node-config-infra'
ip-10-1-21-112.ec2.internal openshift_public_hostname=infra2.ocp.acme.com openshift_node_group_name='node-config-infra'
ip-10-1-21-120.ec2.internal openshift_public_hostname=node0.ocp.acme.com openshift_node_group_name='node-config-compute'
ip-10-1-21-121.ec2.internal openshift_public_hostname=node1.ocp.acme.com openshift_node_group_name='node-config-compute'
ip-10-1-21-122.ec2.internal openshift_public_hostname=node2.ocp.acme.com openshift_node_group_name='node-config-compute'
ip-10-1-21-123.ec2.internal openshift_public_hostname=node3.ocp.acme.com openshift_node_group_name='node-config-compute'
[glusterfs]
ip-10-1-21-110.ec2.internal glusterfs_devices='["/dev/xvdp"]'
ip-10-1-21-111.ec2.internal glusterfs_devices='["/dev/xvdp"]'
ip-10-1-21-112.ec2.internal glusterfs_devices='["/dev/xvdp"]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment