From 3ec258a731fc773bd3f6301cd046b4e28ee07995 Mon Sep 17 00:00:00 2001 From: Proskurin Kirill Date: Thu, 29 Dec 2016 11:50:12 +0000 Subject: [PATCH] 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 --- service/ironic-api.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/ironic-api.yaml b/service/ironic-api.yaml index 755a3e8..05c6152 100644 --- a/service/ironic-api.yaml +++ b/service/ironic-api.yaml @@ -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