forked from Nordix/metal3-dev-env
-
Notifications
You must be signed in to change notification settings - Fork 1
/
clouds.yaml.j2
19 lines (19 loc) · 850 Bytes
/
clouds.yaml.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
clouds:
metal3:
{% if env.IRONIC_BASIC_AUTH | lower == "true" %}
auth_type: http_basic
auth:
username: {{ env.IRONIC_USERNAME }}
password: {{ env.IRONIC_PASSWORD }}
{% else %}
auth_type: none
{% endif %}
{% if env.IRONIC_TLS_SETUP | lower == "true" %}
cacert: /etc/openstack/ironic-ca.crt
baremetal_endpoint_override: https://{{ env.CLUSTER_BARE_METAL_PROVISIONER_HOST }}:{{ env.IRONIC_API_PORT }}
baremetal_introspection_endpoint_override: https://{{ env.CLUSTER_BARE_METAL_PROVISIONER_HOST }}:{{ env.IRONIC_INSPECTOR_PORT }}
verify: false
{% else %}
baremetal_endpoint_override: http://{{ env.CLUSTER_BARE_METAL_PROVISIONER_HOST }}:{{ env.IRONIC_API_PORT }}
baremetal_introspection_endpoint_override: http://{{ env.CLUSTER_BARE_METAL_PROVISIONER_HOST }}:{{ env.IRONIC_INSPECTOR_PORT }}
{% endif %}