Fix mysql command line

Command failed due to incorrect quotes

Change-Id: Iadcb874705c03459b1e9ee2a06cd823251f5f4c8
This commit is contained in:
Mikhail 2017-02-22 10:31:11 +04:00
parent 1398a1b500
commit 64a3ddb965
1 changed files with 3 additions and 3 deletions

View File

@ -14,11 +14,11 @@ service:
pre:
- name: murano-db-create
type: single
command: mysql -v -u root -p{{ db.root_password }} -h {{ address(service.database) }} -e 'create database `{{ murano.db.name }}`;
command: mysql -v -u root -p{{ db.root_password }} -h {{ address(service.database) }} -e "create database {{ murano.db.name }};
create user '{{ murano.db.username }}'@'%' identified by '{{ murano.db.password }}'
{% if db.tls.enabled %} require ssl {% endif %};
grant all privileges on `{{ murano.db.name }}`.* to "{{ murano.db.username }}"@"%" identified by "{{ murano.db.password }}"
{% if db.tls.enabled %} require ssl {% endif %};'
grant all privileges on {{ murano.db.name }}.* to '{{ murano.db.username }}'@'%' identified by '{{ murano.db.password }}'
{% if db.tls.enabled %} require ssl {% endif %};"
dependencies:
- {{ service.database }}
- name: murano-db-sync