From fcf755c8ce3193d274927937c80379f4cdd14d96 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Tue, 6 Mar 2018 18:47:42 +0100 Subject: [PATCH] Handle external ceph configs as templates Change-Id: Ice5b058fe17ad7d648f21d1ddacaa339c6f7102f --- ansible/roles/gnocchi/tasks/external_ceph.yml | 2 +- ansible/roles/nova/tasks/external_ceph.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/gnocchi/tasks/external_ceph.yml b/ansible/roles/gnocchi/tasks/external_ceph.yml index 9dca91a30a..16c166cb58 100644 --- a/ansible/roles/gnocchi/tasks/external_ceph.yml +++ b/ansible/roles/gnocchi/tasks/external_ceph.yml @@ -10,7 +10,7 @@ - "gnocchi-statsd" - name: Copy over ceph.conf file - copy: + template: src: "{{ node_custom_config }}/{{ item }}/ceph.conf" dest: "{{ node_config_directory }}/{{ item }}/ceph.conf" when: inventory_hostname in groups[item] diff --git a/ansible/roles/nova/tasks/external_ceph.yml b/ansible/roles/nova/tasks/external_ceph.yml index 700dbcbd0f..f3c53a6ff7 100644 --- a/ansible/roles/nova/tasks/external_ceph.yml +++ b/ansible/roles/nova/tasks/external_ceph.yml @@ -42,7 +42,7 @@ - Restart nova-libvirt container - name: Copy over ceph.conf - copy: + template: src: "{{ node_custom_config }}/nova/ceph.conf" dest: "{{ node_config_directory }}/{{ item }}/" mode: "0660"