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
This commit is contained in:
parent
a9c10413c5
commit
958fc417c0
@ -39,10 +39,20 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"tuskar": {
|
|
||||||
"service-password": "{{UNDERCLOUD_TUSKAR_PASSWORD}}"
|
|
||||||
},
|
|
||||||
"ironic": {
|
"ironic": {
|
||||||
"service-password": "{{UNDERCLOUD_IRONIC_PASSWORD}}"
|
"service-password": "{{UNDERCLOUD_IRONIC_PASSWORD}}"
|
||||||
|
},
|
||||||
|
"tuskar": {
|
||||||
|
"service-password": "{{UNDERCLOUD_TUSKAR_PASSWORD}}",
|
||||||
|
"db": "mysql://tuskar:{{UNDERCLOUD_TUSKAR_PASSWORD}}@localhost/tuskar?charset=utf8",
|
||||||
|
"heat_keystone": {
|
||||||
|
"username": "admin",
|
||||||
|
"password": "unset",
|
||||||
|
"tenant_name": "admin"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"bootstrap_host": {
|
||||||
|
"bootstrap_nodeid": "undercloud",
|
||||||
|
"nodeid": "undercloud"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,10 @@
|
|||||||
|
#!/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
|
Loading…
Reference in New Issue
Block a user