summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/database/templates/data.j2
diff options
context:
space:
mode:
authorQiLiang <liangqi1@huawei.com>2015-11-23 15:22:28 +0800
committerQiLiang <liangqi1@huawei.com>2015-12-02 11:58:45 +0800
commit065da65479888dcf5340a8d15d7d8a4cadce6264 (patch)
tree805b621e5117f721069a92c8986c6dd106b7253d /deploy/adapters/ansible/roles/database/templates/data.j2
parent3c48d787b3caa3a12153257abf66e3211109b8f5 (diff)
compass4nfv support heat
JIRA: COMPASS-52 Change-Id: I0cab3ba4d435b2b28eff9a1a73c3d829be731e3d Signed-off-by: QiLiang <liangqi1@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/database/templates/data.j2')
-rw-r--r--deploy/adapters/ansible/roles/database/templates/data.j26
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 }}';