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:
Proskurin Kirill 2016-12-29 11:50:12 +00:00
parent 0b5a36f970
commit 3ec258a731
1 changed files with 2 additions and 2 deletions

View File

@ -15,11 +15,11 @@ service:
pre:
- name: ironic-db-create
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
"{{ ironic.db.username }}"@"%" identified by "{{ ironic.db.password }}"'
dependencies:
- mariadb
- {{ service.database }}
- name: ironic-db-sync
type: single
command: ironic-dbsync