aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/heat/tasks/heat_install.yml
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/heat/tasks/heat_install.yml
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/heat/tasks/heat_install.yml')
-rw-r--r--deploy/adapters/ansible/roles/heat/tasks/heat_install.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/heat/tasks/heat_install.yml b/deploy/adapters/ansible/roles/heat/tasks/heat_install.yml
new file mode 100644
index 00000000..ab23f873
--- /dev/null
+++ b/deploy/adapters/ansible/roles/heat/tasks/heat_install.yml
@@ -0,0 +1,19 @@
+---
+- include_vars: "{{ ansible_os_family }}.yml"
+
+- name: install heat related packages
+ action: "{{ ansible_pkg_mgr }} name={{ item }} state=present"
+ with_items: packages | union(packages_noarch)
+
+- name: generate heat service list
+ shell: echo {{ item }} >> /opt/service
+ with_items: services | union(services_noarch)
+
+- name: update heat conf
+ template: src=heat.j2
+ dest=/etc/heat/heat.conf
+ backup=yes
+ notify:
+ - restart heat service
+ - remove heat-sqlite-db
+