diff options
author | shuai chen <chenshuai@huawei.com> | 2015-12-03 10:27:00 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2015-12-03 10:27:00 +0000 |
commit | 5de09de80aac43e61ec411ad598e8cd915d9cadd (patch) | |
tree | 570bd8310ba4488f36028d00730a9cd94cddc30e /deploy/adapters/ansible/roles/database/templates | |
parent | fd5db7e03c9595c14df71a49e778a3bdda89e344 (diff) | |
parent | 065da65479888dcf5340a8d15d7d8a4cadce6264 (diff) |
Merge "compass4nfv support heat"
Diffstat (limited to 'deploy/adapters/ansible/roles/database/templates')
-rw-r--r-- | deploy/adapters/ansible/roles/database/templates/data.j2 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/database/templates/data.j2 b/deploy/adapters/ansible/roles/database/templates/data.j2 index c894b322..109201ab 100644 --- a/deploy/adapters/ansible/roles/database/templates/data.j2 +++ b/deploy/adapters/ansible/roles/database/templates/data.j2 @@ -5,6 +5,7 @@ drop database if exists glance; drop database if exists neutron; drop database if exists nova; drop database if exists cinder; +drop database if exists heat; CREATE DATABASE keystone; {% for host in ['%', 'localhost', inventory_hostname] %} @@ -31,6 +32,11 @@ CREATE DATABASE cinder; GRANT ALL ON cinder.* TO 'cinder'@'{{ host }}' IDENTIFIED BY '{{ CINDER_DBPASS }}'; {% endfor %} +CREATE DATABASE heat; +{% for host in ['%', 'localhost', inventory_hostname] %} +GRANT ALL ON heat.* TO 'heat'@'{{ host }}' IDENTIFIED BY '{{ HEAT_DBPASS }}'; +{% endfor %} + {% if WSREP_SST_USER is defined %} {% for host in ['%', 'localhost', inventory_hostname] %} GRANT ALL ON *.* TO '{{ WSREP_SST_USER }}'@'{{ host }}' IDENTIFIED BY '{{ WSREP_SST_PASS }}'; |