Files
openstack-helm/keystone/templates/bin/_db-sync.sh.tpl
Mathieu Gagné fd074471ac Add support for etcSources to db-sync job
This change adds support for charts already supporting etcSources:
- aodh
- ceilometer
- cinder
- glance
- heat
- keystone
- neutron
- octavia
- placement

Change-Id: Ie6e2397627ecfe88cc0a1a5af3214ad747153519
Signed-off-by: Mathieu Gagné <mgagne@calavera.ca>
2026-02-23 15:39:24 -05:00

37 lines
1.2 KiB
Smarty

#!/bin/bash
{{/*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/}}
set -ex
keystone-manage \
--config-file=/etc/keystone/keystone.conf \
--config-dir=/etc/keystone/keystone.conf.d \
db_sync
keystone-manage \
--config-file=/etc/keystone/keystone.conf \
--config-dir=/etc/keystone/keystone.conf.d \
bootstrap \
--bootstrap-username ${OS_USERNAME} \
--bootstrap-password ${OS_PASSWORD} \
--bootstrap-project-name ${OS_PROJECT_NAME} \
--bootstrap-admin-url ${OS_BOOTSTRAP_ADMIN_URL} \
--bootstrap-public-url ${OS_BOOTSTRAP_PUBLIC_URL} \
--bootstrap-internal-url ${OS_BOOTSTRAP_INTERNAL_URL} \
--bootstrap-region-id ${OS_REGION_NAME}
exec python /tmp/endpoint-update.py