Last active
August 5, 2019 19:41
-
-
Save aelkz/7f52f121f096d176bae4877c3d8cf80d to your computer and use it in GitHub Desktop.
ocp-inventory
This file contains 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
[OSEv3:vars] | |
########################################################################### | |
# Host Variables | |
########################################################################### | |
openshift_public_hostname=foobar.io | |
openshift_master_cluster_hostname=foobar.io | |
openshift_master_default_subdomain=apps.foobar.io | |
openshift_master_api_port=8443 | |
openshift_master_console_port=8443 | |
########################################################################### | |
# Red Hat Information Login | |
########################################################################### | |
oreg_url=registry.redhat.io/openshift3/ose-${component}:${version} | |
oreg_auth_user=<USER> | |
oreg_auth_password=<PASS> | |
########################################################################### | |
# General Variables | |
########################################################################### | |
ansible_user=root | |
ansible_ssh_user=root | |
debug_level=4 | |
os_sdn_network_plugin_name='redhat/openshift-ovs-multitenant' | |
containerized=true | |
deployment_type=openshift-enterprise | |
osm_use_cockpit=true | |
enable_excluders=false | |
enable_docker_excluder=false | |
# Enable NFS support for infrastructure components (unsupported) | |
openshift_enable_unsupported_configurations=true | |
########################################################################### | |
# Define Openshift version | |
########################################################################### | |
openshift_release=v3.11.129 | |
########################################################################### | |
# Openshift Variables | |
########################################################################### | |
openshift_clock_enabled=true | |
openshift_disable_check=memory_availability,disk_availability,docker_storage,docker_storage_driver,package_version,package_availability,package_update,docker_image_availability | |
openshift_deployment_type=openshift-enterprise | |
########################################################################### | |
# Configure Metrics | |
########################################################################### | |
openshift_metrics_install_metrics=true | |
openshift_metrics_duration=7 | |
openshift_metrics_storage_kind=nfs | |
openshift_metrics_storage_access_modes=['ReadWriteOnce'] | |
openshift_metrics_storage_nfs_directory=/srv/nfs | |
openshift_metrics_storage_nfs_options='*(rw,root_squash)' | |
openshift_metrics_storage_volume_name=metrics | |
openshift_metrics_storage_volume_size=20Gi | |
openshift_metrics_storage_labels={'storage': 'metrics'} | |
# cassandra -- ephemeral storage (for testing) | |
openshift_metrics_cassandra_storage_type=emptydir | |
openshift_metrics_cassandra_replicas=1 | |
openshift_metrics_cassandra_limits_memory=2Gi | |
openshift_metrics_cassandra_limits_cpu=800m | |
openshift_metrics_cassandra_nodeselector={"node-role.kubernetes.io/infra": "true"} | |
# hawkular | |
openshift_metrics_hawkular_limits_memory=2Gi | |
openshift_metrics_hawkular_limits_cpu=800m | |
openshift_metrics_hawkular_replicas=1 | |
openshift_metrics_hawkular_nodeselector={"node-role.kubernetes.io/infra": "true"} | |
# heapster | |
openshift_metrics_heapster_limits_memory=2Gi | |
openshift_metrics_heapster_limits_cpu=800m | |
openshift_metrics_heapster_nodeselector={"node-role.kubernetes.io/infra": "true"} | |
########################################################################### | |
# Configure Logging EFK | |
########################################################################### | |
# OBS. Definir configuração mínima possível para não consumir muito recurso. | |
# install logging | |
openshift_logging_install_logging=true | |
# logging curator | |
openshift_logging_curator_default_days=3 | |
openshift_logging_curator_cpu_limit=500m | |
openshift_logging_curator_memory_limit=1Gi | |
openshift_logging_curator_nodeselector={"node-role.kubernetes.io/infra": "true"} | |
# Configure a second ES+Kibana cluster for operations logs | |
# Fluend splits the logs accordingly | |
openshift_logging_use_ops=false | |
# Fluentd | |
openshift_logging_fluentd_cpu_limit=500m | |
openshift_logging_fluentd_memory_limit=1Gi | |
# collect audit.log to ES | |
openshift_logging_fluentd_audit_container_engine=false | |
# persistent storage for logs | |
openshift_logging_storage_kind=nfs | |
openshift_logging_storage_access_modes=['ReadWriteOnce'] | |
openshift_logging_storage_nfs_directory=/srv/nfs | |
openshift_logging_storage_nfs_options='*(rw,root_squash)' | |
openshift_logging_storage_volume_name=logging | |
openshift_logging_storage_volume_size=20Gi | |
openshift_logging_storage_labels={'storage': 'logging'} | |
# eventrouter | |
openshift_logging_install_eventrouter=true | |
openshift_logging_eventrouter_nodeselector={"node-role.kubernetes.io/infra": "true"} | |
# Elasticsearch (ES) | |
# ES cluster size (HA ES >= 3) | |
openshift_logging_es_cluster_size=1 | |
# replicas per shard | |
# openshift_logging_es_number_of_replicas=1 | |
# shards per index | |
# openshift_logging_es_number_of_shards=1 | |
openshift_logging_es_cpu_limit=500m | |
openshift_logging_es_memory_limit=1Gi | |
# PVC size omitted == ephemeral vols are used | |
# openshift_logging_es_pvc_siz=10G | |
openshift_logging_es_nodeselector={"node-role.kubernetes.io/infra": "true"} | |
# Kibana | |
openshift_logging_kibana_cpu_limit=500m | |
openshift_logging_kibana_memory_limit=1Gi | |
openshift_logging_kibana_replica_count=1 | |
# expose ES? (default false) | |
openshift_logging_es_allow_external=false | |
openshift_logging_kibana_nodeselector={"node-role.kubernetes.io/infra": "true"} | |
########################################################################### | |
# Configure Monitoring | |
########################################################################### | |
openshift_cluster_monitoring_operator_install=true | |
openshift_cluster_monitoring_operator_prometheus_storage_enabled=false | |
openshift_cluster_monitoring_operator_alertmanager_storage_enabled=false | |
openshift_cluster_monitoring_operator_node_selector={"node-role.kubernetes.io/infra":"true"} | |
########################################################################### | |
# OpenShift Router and Registry Vars | |
########################################################################### | |
# NOTE: Qty should NOT exceed the number of infra nodes | |
openshift_hosted_router_replicas=1 | |
openshift_hosted_registry_replicas=1 | |
openshift_hosted_registry_pullthrough=true | |
openshift_hosted_registry_acceptschema2=true | |
openshift_hosted_registry_enforcequota=true | |
openshift_hosted_registry_storage_kind=nfs | |
openshift_hosted_registry_storage_access_modes=['ReadWriteMany'] | |
openshift_hosted_registry_storage_nfs_directory=/srv/nfs | |
openshift_hosted_registry_storage_nfs_options='*(rw,root_squash)' | |
openshift_hosted_registry_storage_volume_name=registry | |
openshift_hosted_registry_storage_volume_size=100Gi | |
openshift_hosted_registry_selector="node-role.kubernetes.io/infra=true" | |
#--------------- Define the authentication providers | |
# http://www.htaccesstools.com/htpasswd-generator/ | |
openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider'}] | |
openshift_master_htpasswd_users={'admin': '$apr1$aT/.s28h$y3mTH49/AQ.r6OnQWlMit1', 'developer': '$apr1$WQnWT8CE$vQaivlCTIu2Tw4HDlWOQn/'} | |
openshift_master_htpasswd_file='/etc/origin/master/htpasswd' | |
#--------------- Operator Lifecycle Manager (TechPreview) | |
openshift_enable_olm=true | |
openshift_additional_registry_credentials=[{'host':'registry.connect.redhat.com','user':'<USER>','password':'<PASS>','test_image':'mongodb/enterprise-operator:0.3.2'}] | |
########################################################################### | |
# Define Openshift Catalog | |
########################################################################### | |
openshift_service_catalog_image_version="v3.11" | |
openshift_enable_service_catalog=true | |
template_service_broker_install=false | |
openshift_template_service_broker_namespaces=['openshift'] | |
ansible_service_broker_install=false | |
ansible_service_broker_local_registry_whitelist=['.*-apb$'] | |
# NOTE: accept insecure registries and registries with self-signed certs | |
# setup for lab environment | |
openshift_docker_hosted_registry_insecure=true | |
########################################################################### | |
# Define Custom Node Groups Labels | |
########################################################################### | |
[OSEv3:children] | |
nfs | |
masters | |
etcd | |
nodes | |
[nfs] | |
foobar.io | |
[masters] | |
foobar.io openshift_schedulable=true | |
[etcd] | |
foobar.io | |
[nodes] | |
foobar.io openshift_schedulable=true openshift_node_group_name="node-config-all-in-one" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment