instack-undercloud/elements/undercloud-stack-config/os-refresh-config/configure.d/80-tuskar-db-create
James Slagle 958fc417c0 Configure tuskar db
We've switched to puppet and are no longer using the boot-stack element
that was responsible for creating all the initial db's. However, tuskar
is still installed via the element, so we need to setup it's db
manually.

The needed configuration is added to config.json.template, including the
bootstrap dict since 90-tuskar-db-sync relies on os-is-boostrap-host.

Change-Id: Ifd3bc393f76918dd208fa1e80ef01cf973770625
2015-03-27 12:29:22 -04:00

11 lines
227 B
Bash
Executable File

#!/bin/bash
set -eux
set -o pipefail
# This should run before configure.d/90-tuskar-db-sync
UNDERCLOUD_TUSKAR_PASSWORD=$(os-apply-config --key tuskar.service-password)
os-db-create tuskar tuskar $UNDERCLOUD_TUSKAR_PASSWORD