---
# By default install rhel and xpaas streams on enterprise installs
openshift_examples_load_centos: "{{ openshift_deployment_type == 'origin' }}"
openshift_examples_load_rhel: "{{ openshift_deployment_type != 'origin' }}"
openshift_examples_load_db_templates: true
openshift_examples_load_xpaas: "{{ openshift_deployment_type != 'origin' }}"
openshift_examples_load_quickstarts: true

examples_base: "{{ openshift.common.config_base if openshift_is_atomic | bool else '/usr/share/openshift' }}/examples"
image_streams_base: "{{ examples_base }}/image-streams"
centos_image_streams: "{{ image_streams_base }}/image-streams-centos7.json"
centos_dotnet_streams: "{{ image_streams_base }}/dotnet_imagestreams_centos.json"
rhel_image_streams: "{{ image_streams_base }}/image-streams-rhel7.json"
rhel_dotnet_streams: "{{ image_streams_base }}/dotnet_imagestreams.json"
db_templates_base: "{{ examples_base }}/db-templates"
xpaas_image_streams: "{{ examples_base }}/xpaas-streams/"
xpaas_templates_base: "{{ examples_base }}/xpaas-templates"
quickstarts_base: "{{ examples_base }}/quickstart-templates"
infrastructure_origin_base: "{{ examples_base }}/infrastructure-templates/origin"
infrastructure_enterprise_base: "{{ examples_base }}/infrastructure-templates/enterprise"
cockpit_ui_base: "{{ examples_base }}/infrastructure-templates/enterprise"

openshift_examples_import_command: "create"
registry_host: "{{ openshift_facts_registry_url.split('/')[0] if '.' in openshift_facts_registry_url.split('/')[0] else '' }}"
satellite_prefix: "{{ openshift_facts_registry_url.split('$')[0] if '.' in openshift_facts_registry_url.split('$')[0] else '' }}"
