diff options
author | carey.xu <carey.xuhan@huawei.com> | 2015-09-30 11:26:46 +0800 |
---|---|---|
committer | carey.xu <carey.xuhan@huawei.com> | 2015-10-09 15:03:51 +0800 |
commit | 00aaaac786bcec0d2de7c14c4f3c5a89ba2553f5 (patch) | |
tree | 05b45bee93c88f363cb78d79f9dac26cdf12afe6 /deploy/adapters/ansible/roles/ceilometer_controller/tasks | |
parent | 9a95593b0c8cdefb6ad4a3c836b699f42b1f7323 (diff) |
compass4nfv support ceilometer
JIRA: COMPASS-53
Change-Id: Ie8fc0f3f03f1de3c9fcf37778e025175ed391bc5
Signed-off-by: carey.xu <carey.xuhan@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/ceilometer_controller/tasks')
-rw-r--r-- | deploy/adapters/ansible/roles/ceilometer_controller/tasks/main.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/ceilometer_controller/tasks/main.yml b/deploy/adapters/ansible/roles/ceilometer_controller/tasks/main.yml new file mode 100644 index 00000000..4fddd1e6 --- /dev/null +++ b/deploy/adapters/ansible/roles/ceilometer_controller/tasks/main.yml @@ -0,0 +1,17 @@ +--- +- include_vars: "{{ ansible_os_family }}.yml" + +- name: install ceilometer packages + action: "{{ ansible_pkg_mgr }} name={{ item }} state=present" + with_items: "{{ ceilometer_packages }}| union(packages_noarch)" + +- name: copy ceilometer configs + template: src={{ item.src}} dest=/opt/os_templates + with_items: "{{ ceilometer_configs_templates }}" + +- name: update ceilometer configs + shell: crudini --merge {{ item.1 }} < /opt/os_templates/{{ item.0.src }} + with_subelements: + - ceilometer_configs_templates + - dest + notify: restart ceilometer relation service |