File was renamed from ansible/configs/ocp-ha-lab/files/hosts_template.j2 |
| | |
| | | |
| | | # default project node selector |
| | | osm_default_node_selector='env=app' |
| | | openshift_hosted_infra_selector="env=infra" |
| | | |
| | | # Configure node kubelet arguments. pods-per-core is valid in OpenShift Origin 1.3 or OpenShift Container Platform 3.3 and later. |
| | | openshift_node_kubelet_args={'pods-per-core': ['10'], 'max-pods': ['250'], 'image-gc-high-threshold': ['85'], 'image-gc-low-threshold': ['75']} |
| | |
| | | # Configure logrotate scripts |
| | | # See: https://github.com/nickhammond/ansible-logrotate |
| | | logrotate_scripts=[{"name": "syslog", "path": "/var/log/cron\n/var/log/maillog\n/var/log/messages\n/var/log/secure\n/var/log/spooler\n", "options": ["daily", "rotate 7","size 500M", "compress", "sharedscripts", "missingok"], "scripts": {"postrotate": "/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true"}}] |
| | | |
| | | {% if osrelease | version_compare('3.7', '<') %} |
| | | # Anything before 3.7 |
| | | openshift_metrics_image_version=v{{ repo_version }} |
| | | #openshift_image_tag=v{{ repo_version }} |
| | | #openshift_release={{ osrelease }} |
| | | #docker_version="{{docker_version}}" |
| | | {% endif %} |
| | | |
| | | |
| | | ########################################################################### |
| | |
| | | #os_sdn_network_plugin_name='redhat/openshift-ovs-multitenant' |
| | | {{multi_tenant_setting}} |
| | | |
| | | {% if osrelease | version_compare('3.7', '>=') %} |
| | | # This should be turned on once all dependent scripts use firewalld rather than iptables |
| | | # os_firewall_use_firewalld=True |
| | | {% endif %} |
| | | |
| | | ########################################################################### |
| | | ### OpenShift Authentication Vars |
| | | ########################################################################### |
| | |
| | | ########################################################################### |
| | | |
| | | # Enable cluster metrics |
| | | {% if osrelease | version_compare('3.7', '>=') %} |
| | | |
| | | openshift_metrics_install_metrics={{install_metrics}} |
| | | |
| | | openshift_metrics_storage_kind=nfs |
| | |
| | | openshift_metrics_storage_volume_size=10Gi |
| | | openshift_metrics_storage_labels={'storage': 'metrics'} |
| | | |
| | | #openshift_master_metrics_public_url=https://hawkular-metrics.{{cloudapps_suffix}}/hawkular/metrics |
| | | openshift_metrics_cassandra_nodeselector={"env":"infra"} |
| | | openshift_metrics_hawkular_nodeselector={"env":"infra"} |
| | | openshift_metrics_heapster_nodeselector={"env":"infra"} |
| | | |
| | | ## Add Prometheus Metrics: |
| | | openshift_hosted_prometheus_deploy=true |
| | |
| | | openshift_prometheus_alertbuffer_storage_labels={'storage': 'prometheus-alertbuffer'} |
| | | openshift_prometheus_alertbuffer_storage_type='pvc' |
| | | |
| | | {% else %} |
| | | |
| | | openshift_hosted_metrics_deploy={{install_metrics}} |
| | | |
| | | openshift_hosted_metrics_storage_kind=nfs |
| | | openshift_hosted_metrics_storage_access_modes=['ReadWriteOnce'] |
| | | openshift_hosted_metrics_storage_host=support1.{{guid}}.internal |
| | | openshift_hosted_metrics_storage_nfs_directory=/srv/nfs |
| | | openshift_hosted_metrics_storage_nfs_options='*(rw,root_squash)' |
| | | openshift_hosted_metrics_storage_volume_name=metrics |
| | | openshift_hosted_metrics_storage_volume_size=10Gi |
| | | |
| | | openshift_hosted_metrics_public_url=https://hawkular-metrics.{{cloudapps_suffix}}/hawkular/metrics |
| | | |
| | | {% endif %} |
| | | openshift_metrics_cassandra_nodeselector={"env":"infra"} |
| | | openshift_metrics_hawkular_nodeselector={"env":"infra"} |
| | | openshift_metrics_heapster_nodeselector={"env":"infra"} |
| | | openshift_prometheus_node_exporter_image_version=v3.9 |
| | | |
| | | # Enable cluster logging |
| | | {% if osrelease | version_compare('3.7', '>=') %} |
| | | |
| | | openshift_logging_install_logging={{install_logging}} |
| | | |
| | | openshift_logging_storage_kind=nfs |
| | |
| | | # openshift_logging_kibana_hostname=kibana.{{cloudapps_suffix}} |
| | | openshift_logging_es_cluster_size=1 |
| | | |
| | | {% else %} |
| | | |
| | | openshift_hosted_logging_deploy={{install_logging}} |
| | | openshift_master_logging_public_url=https://kibana.{{cloudapps_suffix}} |
| | | |
| | | openshift_hosted_logging_storage_kind=nfs |
| | | openshift_hosted_logging_storage_access_modes=['ReadWriteOnce'] |
| | | openshift_hosted_logging_storage_nfs_directory=/srv/nfs |
| | | openshift_hosted_logging_storage_nfs_options='*(rw,root_squash)' |
| | | openshift_hosted_logging_storage_volume_name=logging |
| | | openshift_hosted_logging_storage_volume_size=10Gi |
| | | openshift_hosted_logging_hostname=kibana.{{cloudapps_suffix}} |
| | | openshift_hosted_logging_elasticsearch_cluster_size=1 |
| | | |
| | | openshift_hosted_logging_deployer_version=v{{repo_version}} |
| | | # This one is wrong (down arrow) |
| | | #openshift_hosted_logging_image_version=v{{repo_version}} |
| | | #openshift_logging_image_version=v{{repo_version}} |
| | | {% endif %} |
| | | |
| | | openshift_logging_es_nodeselector={"env":"infra"} |
| | | openshift_logging_kibana_nodeselector={"env":"infra"} |
| | | openshift_logging_curator_nodeselector={"env":"infra"} |
| | |
| | | # Configure additional projects |
| | | openshift_additional_projects={'openshift-template-service-broker': {'default_node_selector': ''}} |
| | | |
| | | |
| | | ########################################################################### |
| | | ### OpenShift Router and Registry Vars |
| | | ########################################################################### |
| | | |
| | | openshift_hosted_router_selector='env=infra' |
| | | openshift_hosted_router_replicas={{infranode_instance_count}} |
| | | #openshift_hosted_router_certificate={"certfile": "/path/to/router.crt", "keyfile": "/path/to/router.key", "cafile": "/path/to/router-ca.crt"} |
| | | |
| | | openshift_hosted_registry_selector='env=infra' |
| | | openshift_hosted_registry_replicas=1 |
| | | |
| | | openshift_hosted_registry_storage_kind=nfs |
| | |
| | | ### OpenShift Service Catalog Vars |
| | | ########################################################################### |
| | | |
| | | {% if osrelease | version_compare('3.7', '>=') %} |
| | | openshift_enable_service_catalog=true |
| | | |
| | | template_service_broker_install=true |
| | | template_service_broker_selector={"env":"infra"} |
| | | openshift_template_service_broker_namespaces=['openshift'] |
| | | ansible_service_broker_install=false |
| | | {% endif %} |
| | | |
| | | ansible_service_broker_install=true |
| | | ansible_service_broker_local_registry_whitelist=['.*-apb$'] |
| | | |
| | | openshift_hosted_etcd_storage_kind=nfs |
| | | openshift_hosted_etcd_storage_nfs_options="*(rw,root_squash,sync,no_wdelay)" |
| | | openshift_hosted_etcd_storage_nfs_directory=/srv/nfs |
| | | openshift_hosted_etcd_storage_labels={'storage': 'etcd-asb'} |
| | | openshift_hosted_etcd_storage_volume_name=etcd-asb |
| | | openshift_hosted_etcd_storage_access_modes=['ReadWriteOnce'] |
| | | openshift_hosted_etcd_storage_volume_size=10G |
| | | |
| | | |
| | | ########################################################################### |
| | | ### OpenShift Hosts |