File tree Expand file tree Collapse file tree 8 files changed +24
-1
lines changed
Expand file tree Collapse file tree 8 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -735,6 +735,7 @@ func (r *AutoscalingReconciler) generateServiceConfig(
735735 instance .Status .DatabaseHostname ,
736736 autoscaling .DatabaseName ),
737737 "Timeout" : instance .Spec .Aodh .APITimeout ,
738+ "Region" : keystoneAPI .GetRegion (),
738739 }
739740
740741 prometheusParams := map [string ]any {
Original file line number Diff line number Diff line change @@ -1275,6 +1275,7 @@ func (r *CeilometerReconciler) generateServiceConfig(
12751275 "TLS" : false , // Default to false. Change to true later if TLS enabled
12761276 "SwiftRole" : false , //
12771277 "Timeout" : instance .Spec .APITimeout ,
1278+ "Region" : keystoneAPI .GetRegion (),
12781279 }
12791280
12801281 // create httpd vhost template parameters
Original file line number Diff line number Diff line change @@ -1199,6 +1199,7 @@ func (r *CloudKittyReconciler) generateServiceConfigs(
11991199 templateParameters ["ServicePassword" ] = string (ospSecret .Data [instance .Spec .PasswordSelectors .CloudKittyService ])
12001200 templateParameters ["KeystoneInternalURL" ] = keystoneInternalURL
12011201 templateParameters ["KeystonePublicURL" ] = keystonePublicURL
1202+ templateParameters ["Region" ] = keystoneAPI .GetRegion ()
12021203 templateParameters ["TransportURL" ] = string (transportURLSecret .Data ["transport_url" ])
12031204 templateParameters ["PrometheusHost" ] = instance .Status .PrometheusHost
12041205 templateParameters ["PrometheusPort" ] = instance .Status .PrometheusPort
Original file line number Diff line number Diff line change @@ -53,6 +53,9 @@ user_domain_name = Default
5353project_name = service
5454project_domain_name = Default
5555service_token_roles_required = True
56+ {{ if (index . "Region") -}}
57+ region_name = {{ .Region }}
58+ {{ end -}}
5659
5760[service_credentials]
5861auth_type=password
@@ -63,6 +66,9 @@ username={{ .AodhUser }}
6366user_domain_name=Default
6467password={{ .AodhPassword }}
6568interface = internalURL
69+ {{ if (index . "Region") -}}
70+ region_name = {{ .Region }}
71+ {{ end -}}
6672
6773[healthcheck]
6874[service_types]
Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ username=ceilometer
1616user_domain_name=Default
1717password={{ .CeilometerPassword }}
1818interface = internalURL
19+ {{ if (index . "Region") -}}
20+ region_name = {{ .Region }}
21+ {{ end -}}
1922{{- if .TLS }}
2023cafile = {{ .CAFile }}
2124{{- end }}
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ username=ceilometer
1414user_domain_name=Default
1515password={{ .CeilometerPassword }}
1616interface = internalURL
17+ {{ if (index . "Region") -}}
18+ region_name = {{ .Region }}
19+ {{ end -}}
1720
1821[compute]
1922instance_discovery_method=libvirt_metadata
Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ username=ceilometer
1515user_domain_name=Default
1616password={{ .CeilometerPassword }}
1717interface = internalURL
18+ {{ if (index . "Region") -}}
19+ region_name = {{ .Region }}
20+ {{ end -}}
1821
1922[coordination]
2023backend_url=
Original file line number Diff line number Diff line change @@ -11,7 +11,9 @@ transport_url = {{ .TransportURL }}
1111debug = True
1212project_domain_name = default
1313user_domain_name = default
14- region_name = RegionOne
14+ {{ if (index . "Region") -}}
15+ region_name = {{ .Region }}
16+ {{ end -}}
1517tenant_name = service
1618project_name = service
1719password = {{ .ServicePassword }}
@@ -78,6 +80,9 @@ username = {{ .ServiceUser }}
7880auth_url = {{ .KeystoneInternalURL }}
7981interface = internal
8082auth_type = password
83+ {{ if (index . "Region") -}}
84+ region_name = {{ .Region }}
85+ {{ end -}}
8186{{- if .TLS }}
8287cafile = {{ .CAFile }}
8388{{- end }}
You can’t perform that action at this time.
0 commit comments