From 11f87424ccef94e658fcbb85101420d32c40432e Mon Sep 17 00:00:00 2001 From: Sergey Reshetnyak Date: Thu, 10 Nov 2016 18:15:40 +0300 Subject: [PATCH] Use db.root_password parameter for creating database Change-Id: I0973d594f9e8185b4446061d2a39be1f1a7b3d3f --- service/cinder-api.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/cinder-api.yaml b/service/cinder-api.yaml index 75bc88f..a110689 100644 --- a/service/cinder-api.yaml +++ b/service/cinder-api.yaml @@ -16,7 +16,7 @@ service: - mariadb type: single command: - mysql -u root -p{{ keystone.db.password }} -h mariadb -e "create database {{ cinder.db.name }}; + mysql -u root -p{{ db.root_password }} -h mariadb -e "create database {{ cinder.db.name }}; grant all privileges on {{ cinder.db.name }}.* to '{{ cinder.db.username }}'@'%' identified by '{{ cinder.db.password }}';" - name: cinder-db-sync files: