openstack-ansible/playbooks/roles/os_ceilometer/tasks/ceilometer_upstart_common_init.yml
Miguel Cantu 653f184733 Implement Ceilometer
This patch implements the implement-ceilometer blueprint.
It addes the necessary role/variables to deploy ceilometer
with a Mongodb backend. The Monogdb backend is assumed to
be up and configured and the playbooks only require a few
values to be set in user_variables to establish a connection.

Change-Id: I2164a1f27f632ce254cc2711ada2c449a9961fed
Implements: blueprint implement-ceilometer
2015-07-07 19:31:04 +00:00

32 lines
614 B
YAML

- name: Place the init script
template:
src: "ceilometer-upstart-init.j2"
dest: "/etc/init/{{ program_name }}.conf"
mode: "0644"
owner: "root"
group: "root"
notify:
- Restart ceilometer services
tags:
- upstart-init
- ceilometer-init
- name: Reload init scripts
shell: |
initctl reload-configuration
notify:
- Restart ceilometer services
tags:
- upstart-init
- ceilometer-init
- name: Load service
service:
name: "{{ program_name }}"
enabled: "yes"
notify:
- Restart ceilometer services
tags:
- upstart-init
- ceilometer-init