Change hardcoded db dep to variable
I have to remove mysql port configuration, since we dont support it(yet) using the "universal" way. Change-Id: I39a873aaf1f4a1389b1e17b189a66591c94464ec
This commit is contained in:
parent
0b5a36f970
commit
3ec258a731
|
@ -15,11 +15,11 @@ service:
|
||||||
pre:
|
pre:
|
||||||
- name: ironic-db-create
|
- name: ironic-db-create
|
||||||
type: single
|
type: single
|
||||||
command: mysql -v -u root -p{{ db.root_password }} -h {{ address('mariadb') }} -P {{ mariadb.port.cont }} -e
|
command: mysql -v -u root -p{{ db.root_password }} -h {{ address(service.database) }} -e
|
||||||
'create database `{{ ironic.db.name }}`; grant all privileges on `{{ ironic.db.name }}`.* to
|
'create database `{{ ironic.db.name }}`; grant all privileges on `{{ ironic.db.name }}`.* to
|
||||||
"{{ ironic.db.username }}"@"%" identified by "{{ ironic.db.password }}"'
|
"{{ ironic.db.username }}"@"%" identified by "{{ ironic.db.password }}"'
|
||||||
dependencies:
|
dependencies:
|
||||||
- mariadb
|
- {{ service.database }}
|
||||||
- name: ironic-db-sync
|
- name: ironic-db-sync
|
||||||
type: single
|
type: single
|
||||||
command: ironic-dbsync
|
command: ironic-dbsync
|
||||||
|
|
Loading…
Reference in New Issue