-
Notifications
You must be signed in to change notification settings - Fork 187
/
clouds.yaml.template
38 lines (38 loc) · 1.13 KB
/
clouds.yaml.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
clouds:
{{- if eq .AuthType "none"}}
metal3-bootstrap:
auth_type: {{.AuthType}}
baremetal_endpoint_override: {{.BootstrapIronicURL}}
baremetal_introspection_endpoint_override: {{.BootstrapInspectorURL}}
verify: false
metal3:
auth_type: {{.AuthType}}
baremetal_endpoint_override: {{.ClusterIronicURL}}
{{- if .OCPVersionUsesInspector }}
baremetal_introspection_endpoint_override: {{.ClusterInspectorURL}}
{{- end }}
verify: false
{{- if .OCPVersionUsesInspector }}
metal3-inspector:
auth_type: {{.AuthType}}
baremetal_introspection_endpoint_override: {{.ClusterInspectorURL}}
verify: false
{{- end}}
{{- else if eq .AuthType "http_basic"}}
metal3:
auth_type: {{.AuthType}}
auth:
username: {{.IronicUser}}
password: {{.IronicPassword}}
baremetal_endpoint_override: {{.ClusterIronicURL}}
verify: false
{{- if .OCPVersionUsesInspector }}
metal3-inspector:
auth_type: {{.AuthType}}
auth:
username: {{.InspectorUser}}
password: {{.InspectorPassword}}
baremetal_introspection_endpoint_override: {{.ClusterInspectorURL}}
verify: false
{{- end}}
{{- end}}