Use db.root_password parameter for creating database

Change-Id: I0973d594f9e8185b4446061d2a39be1f1a7b3d3f
This commit is contained in:
Sergey Reshetnyak 2016-11-10 18:15:40 +03:00
parent 5a6653a5b2
commit 11f87424cc
1 changed files with 1 additions and 1 deletions

View File

@ -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: