2016-09-22 00:17:47 +08:00
|
|
|
---
|
|
|
|
- name: Copy over ceph.conf file
|
2018-03-06 18:47:42 +01:00
|
|
|
template:
|
2018-06-11 11:21:53 +08:00
|
|
|
src: "{{ node_custom_config }}/gnocchi/ceph.conf"
|
2016-09-22 00:17:47 +08:00
|
|
|
dest: "{{ node_config_directory }}/{{ item }}/ceph.conf"
|
2019-03-22 19:18:45 +00:00
|
|
|
mode: "0660"
|
2018-10-02 09:16:34 +01:00
|
|
|
become: true
|
2016-09-22 00:17:47 +08:00
|
|
|
when: inventory_hostname in groups[item]
|
|
|
|
with_items:
|
|
|
|
- "gnocchi-api"
|
|
|
|
- "gnocchi-metricd"
|
|
|
|
- "gnocchi-statsd"
|
2017-09-27 17:01:21 +02:00
|
|
|
notify:
|
2019-03-26 09:56:29 +00:00
|
|
|
- Restart {{ item }} container
|
2016-09-22 00:17:47 +08:00
|
|
|
|
|
|
|
- name: Copy over ceph gnocchi keyring
|
|
|
|
copy:
|
2019-09-26 12:41:18 +02:00
|
|
|
src: "{{ node_custom_config }}/gnocchi/{{ ceph_gnocchi_keyring }}"
|
|
|
|
dest: "{{ node_config_directory }}/{{ item }}/{{ ceph_gnocchi_keyring }}"
|
2019-03-22 19:18:45 +00:00
|
|
|
mode: "0660"
|
2018-10-02 09:16:34 +01:00
|
|
|
become: true
|
2016-09-22 00:17:47 +08:00
|
|
|
when: inventory_hostname in groups[item]
|
|
|
|
with_items:
|
|
|
|
- "gnocchi-api"
|
|
|
|
- "gnocchi-metricd"
|
|
|
|
- "gnocchi-statsd"
|
2017-09-27 17:01:21 +02:00
|
|
|
notify:
|
2019-03-26 09:56:29 +00:00
|
|
|
- Restart {{ item }} container
|
2018-01-22 17:11:19 +08:00
|
|
|
|
|
|
|
- name: Ensuring config directory has correct owner and permission
|
|
|
|
become: true
|
|
|
|
file:
|
|
|
|
path: "{{ node_config_directory }}/{{ item }}"
|
|
|
|
recurse: yes
|
|
|
|
owner: "{{ config_owner_user }}"
|
|
|
|
group: "{{ config_owner_group }}"
|
|
|
|
when: inventory_hostname in groups[item]
|
|
|
|
with_items:
|
|
|
|
- "gnocchi-api"
|
|
|
|
- "gnocchi-metricd"
|
|
|
|
- "gnocchi-statsd"
|