summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/heat/tasks/heat_install.yml
diff options
context:
space:
mode:
authorshuai chen <chenshuai@huawei.com>2015-12-03 10:27:00 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-12-03 10:27:00 +0000
commit5de09de80aac43e61ec411ad598e8cd915d9cadd (patch)
tree570bd8310ba4488f36028d00730a9cd94cddc30e /deploy/adapters/ansible/roles/heat/tasks/heat_install.yml
parentfd5db7e03c9595c14df71a49e778a3bdda89e344 (diff)
parent065da65479888dcf5340a8d15d7d8a4cadce6264 (diff)
Merge "compass4nfv support heat"
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
+