Skip to content

Instantly share code, notes, and snippets.

@dmesser
Created January 11, 2018 23:20
Show Gist options
  • Select an option

  • Save dmesser/12ef5e7b95f072d297b46133ce00d400 to your computer and use it in GitHub Desktop.

Select an option

Save dmesser/12ef5e7b95f072d297b46133ce00d400 to your computer and use it in GitHub Desktop.

Revisions

  1. dmesser revised this gist Jan 11, 2018. 1 changed file with 47 additions and 47 deletions.
    94 changes: 47 additions & 47 deletions hosts
    Original file line number Diff line number Diff line change
    @@ -1,53 +1,53 @@
    [OSEv3:children]
    masters
    nodes
    masters
    nodes

    [OSEv3:vars]
    deployment_type=openshift-enterprise
    containerized=true
    openshift_image_tag=v3.7.14
    openshift_master_identity_providers=[{'name': 'htpasswd', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}]
    openshift_master_htpasswd_users={'developer': '$apr1$bKWroIXS$/xjq07zVg9XtH6/VKuh6r/','operator': '$apr1$bKWroIXS$/xjq07zVg9XtH6/VKuh6r/'}
    openshift_master_default_subdomain='cloudapps.${MasterNodePublicIP}.nip.io'
    openshift_router_selector='role=master'
    openshift_hosted_router_wait=true
    openshift_registry_selector='role=infra'
    openshift_hosted_registry_wait=true
    openshift_metrics_install_metrics=false
    openshift_metrics_hawkular_hostname="hawkular-metrics.{{ openshift_master_default_subdomain }}"
    openshift_metrics_cassandra_storage_type=pv
    openshift_metrics_cassandra_pvc_size=10Gi
    openshift_logging_install_logging=false
    openshift_logging_es_pvc_size=10Gi
    openshift_logging_es_pvc_dynamic=true
    openshift_docker_additional_registries=mirror.lab:5555
    openshift_docker_insecure_registries=mirror.lab:5555
    oreg_url=mirror.lab:5555/openshift3/ose-${!component}:${!version}
    osm_etcd_image=mirror.lab:5555/rhel7/etcd
    openshift_service_catalog_image_prefix=mirror.lab:5555/openshift3/ose-
    openshift_cli_image=mirror.lab:5555/openshift3/ose
    osm_image=mirror.lab:5555/openshift3/ose
    openshift_examples_modify_imagestreams=false
    openshift_disable_check=disk_availability,memory_availability,docker_image_availability
    [OSEv3:vars]
    deployment_type=openshift-enterprise
    containerized=true
    openshift_image_tag=v3.7.14
    openshift_master_identity_providers=[{'name': 'htpasswd', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}]
    openshift_master_htpasswd_users={'developer': '$apr1$bKWroIXS$/xjq07zVg9XtH6/VKuh6r/','operator': '$apr1$bKWroIXS$/xjq07zVg9XtH6/VKuh6r/'}
    openshift_master_default_subdomain='cloudapps.${MasterNodePublicIP}.nip.io'
    openshift_router_selector='role=master'
    openshift_hosted_router_wait=true
    openshift_registry_selector='role=infra'
    openshift_hosted_registry_wait=true
    openshift_metrics_install_metrics=false
    openshift_metrics_hawkular_hostname="hawkular-metrics.{{ openshift_master_default_subdomain }}"
    openshift_metrics_cassandra_storage_type=pv
    openshift_metrics_cassandra_pvc_size=10Gi
    openshift_logging_install_logging=false
    openshift_logging_es_pvc_size=10Gi
    openshift_logging_es_pvc_dynamic=true
    openshift_docker_additional_registries=mirror.lab:5555
    openshift_docker_insecure_registries=mirror.lab:5555
    oreg_url=mirror.lab:5555/openshift3/ose-${!component}:${!version}
    osm_etcd_image=mirror.lab:5555/rhel7/etcd
    openshift_service_catalog_image_prefix=mirror.lab:5555/openshift3/ose-
    openshift_cli_image=mirror.lab:5555/openshift3/ose
    osm_image=mirror.lab:5555/openshift3/ose
    openshift_examples_modify_imagestreams=false
    openshift_disable_check=disk_availability,memory_availability,docker_image_availability

    [masters]
    master.lab openshift_public_hostname=${MasterNodePublicIP}.nip.io openshift_hostname=master.lab openshift_ip=${MasterNodeInterface.PrimaryPrivateIpAddress} openshift_public_ip=${MasterNodePublicIP}
    [masters]
    master.lab openshift_public_hostname=${MasterNodePublicIP}.nip.io openshift_hostname=master.lab openshift_ip=${MasterNodeInterface.PrimaryPrivateIpAddress} openshift_public_ip=${MasterNodePublicIP}

    [masters:vars]
    openshift_schedulable=true
    openshift_node_labels="{'role': 'master'}"
    [masters:vars]
    openshift_schedulable=true
    openshift_node_labels="{'role': 'master'}"

    [etcd:children]
    masters
    [etcd:children]
    masters

    [nodes]
    master.lab openshift_public_hostname=${MasterNodePublicIP}.nip.io openshift_hostname=master.lab openshift_ip=${MasterNodeInterface.PrimaryPrivateIpAddress} openshift_public_ip=${MasterNodePublicIP}
    infra-1.lab openshift_hostname=infra-1.lab openshift_ip=${InfraNode1Interface.PrimaryPrivateIpAddress} openshift_node_labels="{'role': 'infra'}"
    infra-2.lab openshift_hostname=infra-2.lab openshift_ip=${InfraNode2Interface.PrimaryPrivateIpAddress} openshift_node_labels="{'role': 'infra'}"
    infra-3.lab openshift_hostname=infra-3.lab openshift_ip=${InfraNode3Interface.PrimaryPrivateIpAddress} openshift_node_labels="{'role': 'infra'}"
    node-1.lab openshift_hostname=node-1.lab openshift_ip=${AppNode1Interface.PrimaryPrivateIpAddress} openshift_node_labels="{'role': 'app'}"
    node-2.lab openshift_hostname=node-2.lab openshift_ip=${AppNode2Interface.PrimaryPrivateIpAddress} openshift_node_labels="{'role': 'app'}"
    node-3.lab openshift_hostname=node-3.lab openshift_ip=${AppNode3Interface.PrimaryPrivateIpAddress} openshift_node_labels="{'role': 'app'}"
    node-4.lab openshift_hostname=node-4.lab openshift_ip=${AppNode4Interface.PrimaryPrivateIpAddress} openshift_node_labels="{'role': 'app'}"
    node-5.lab openshift_hostname=node-5.lab openshift_ip=${AppNode5Interface.PrimaryPrivateIpAddress} openshift_node_labels="{'role': 'app'}"
    node-6.lab openshift_hostname=node-6.lab openshift_ip=${AppNode6Interface.PrimaryPrivateIpAddress} openshift_node_labels="{'role': 'app'}"
    [nodes]
    master.lab openshift_public_hostname=${MasterNodePublicIP}.nip.io openshift_hostname=master.lab openshift_ip=${MasterNodeInterface.PrimaryPrivateIpAddress} openshift_public_ip=${MasterNodePublicIP}
    infra-1.lab openshift_hostname=infra-1.lab openshift_ip=${InfraNode1Interface.PrimaryPrivateIpAddress} openshift_node_labels="{'role': 'infra'}"
    infra-2.lab openshift_hostname=infra-2.lab openshift_ip=${InfraNode2Interface.PrimaryPrivateIpAddress} openshift_node_labels="{'role': 'infra'}"
    infra-3.lab openshift_hostname=infra-3.lab openshift_ip=${InfraNode3Interface.PrimaryPrivateIpAddress} openshift_node_labels="{'role': 'infra'}"
    node-1.lab openshift_hostname=node-1.lab openshift_ip=${AppNode1Interface.PrimaryPrivateIpAddress} openshift_node_labels="{'role': 'app'}"
    node-2.lab openshift_hostname=node-2.lab openshift_ip=${AppNode2Interface.PrimaryPrivateIpAddress} openshift_node_labels="{'role': 'app'}"
    node-3.lab openshift_hostname=node-3.lab openshift_ip=${AppNode3Interface.PrimaryPrivateIpAddress} openshift_node_labels="{'role': 'app'}"
    node-4.lab openshift_hostname=node-4.lab openshift_ip=${AppNode4Interface.PrimaryPrivateIpAddress} openshift_node_labels="{'role': 'app'}"
    node-5.lab openshift_hostname=node-5.lab openshift_ip=${AppNode5Interface.PrimaryPrivateIpAddress} openshift_node_labels="{'role': 'app'}"
    node-6.lab openshift_hostname=node-6.lab openshift_ip=${AppNode6Interface.PrimaryPrivateIpAddress} openshift_node_labels="{'role': 'app'}"
  2. dmesser created this gist Jan 11, 2018.
    53 changes: 53 additions & 0 deletions hosts
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,53 @@
    [OSEv3:children]
    masters
    nodes

    [OSEv3:vars]
    deployment_type=openshift-enterprise
    containerized=true
    openshift_image_tag=v3.7.14
    openshift_master_identity_providers=[{'name': 'htpasswd', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}]
    openshift_master_htpasswd_users={'developer': '$apr1$bKWroIXS$/xjq07zVg9XtH6/VKuh6r/','operator': '$apr1$bKWroIXS$/xjq07zVg9XtH6/VKuh6r/'}
    openshift_master_default_subdomain='cloudapps.${MasterNodePublicIP}.nip.io'
    openshift_router_selector='role=master'
    openshift_hosted_router_wait=true
    openshift_registry_selector='role=infra'
    openshift_hosted_registry_wait=true
    openshift_metrics_install_metrics=false
    openshift_metrics_hawkular_hostname="hawkular-metrics.{{ openshift_master_default_subdomain }}"
    openshift_metrics_cassandra_storage_type=pv
    openshift_metrics_cassandra_pvc_size=10Gi
    openshift_logging_install_logging=false
    openshift_logging_es_pvc_size=10Gi
    openshift_logging_es_pvc_dynamic=true
    openshift_docker_additional_registries=mirror.lab:5555
    openshift_docker_insecure_registries=mirror.lab:5555
    oreg_url=mirror.lab:5555/openshift3/ose-${!component}:${!version}
    osm_etcd_image=mirror.lab:5555/rhel7/etcd
    openshift_service_catalog_image_prefix=mirror.lab:5555/openshift3/ose-
    openshift_cli_image=mirror.lab:5555/openshift3/ose
    osm_image=mirror.lab:5555/openshift3/ose
    openshift_examples_modify_imagestreams=false
    openshift_disable_check=disk_availability,memory_availability,docker_image_availability

    [masters]
    master.lab openshift_public_hostname=${MasterNodePublicIP}.nip.io openshift_hostname=master.lab openshift_ip=${MasterNodeInterface.PrimaryPrivateIpAddress} openshift_public_ip=${MasterNodePublicIP}

    [masters:vars]
    openshift_schedulable=true
    openshift_node_labels="{'role': 'master'}"

    [etcd:children]
    masters

    [nodes]
    master.lab openshift_public_hostname=${MasterNodePublicIP}.nip.io openshift_hostname=master.lab openshift_ip=${MasterNodeInterface.PrimaryPrivateIpAddress} openshift_public_ip=${MasterNodePublicIP}
    infra-1.lab openshift_hostname=infra-1.lab openshift_ip=${InfraNode1Interface.PrimaryPrivateIpAddress} openshift_node_labels="{'role': 'infra'}"
    infra-2.lab openshift_hostname=infra-2.lab openshift_ip=${InfraNode2Interface.PrimaryPrivateIpAddress} openshift_node_labels="{'role': 'infra'}"
    infra-3.lab openshift_hostname=infra-3.lab openshift_ip=${InfraNode3Interface.PrimaryPrivateIpAddress} openshift_node_labels="{'role': 'infra'}"
    node-1.lab openshift_hostname=node-1.lab openshift_ip=${AppNode1Interface.PrimaryPrivateIpAddress} openshift_node_labels="{'role': 'app'}"
    node-2.lab openshift_hostname=node-2.lab openshift_ip=${AppNode2Interface.PrimaryPrivateIpAddress} openshift_node_labels="{'role': 'app'}"
    node-3.lab openshift_hostname=node-3.lab openshift_ip=${AppNode3Interface.PrimaryPrivateIpAddress} openshift_node_labels="{'role': 'app'}"
    node-4.lab openshift_hostname=node-4.lab openshift_ip=${AppNode4Interface.PrimaryPrivateIpAddress} openshift_node_labels="{'role': 'app'}"
    node-5.lab openshift_hostname=node-5.lab openshift_ip=${AppNode5Interface.PrimaryPrivateIpAddress} openshift_node_labels="{'role': 'app'}"
    node-6.lab openshift_hostname=node-6.lab openshift_ip=${AppNode6Interface.PrimaryPrivateIpAddress} openshift_node_labels="{'role': 'app'}"