From 9d81f32538aaaa568dcedfa409aae75df818e20c Mon Sep 17 00:00:00 2001 From: Huamin Chen Date: Thu, 14 Apr 2016 21:57:27 +0000 Subject: [PATCH] set path to find mon and osd systemd unit file templates Signed-off-by: Huamin Chen --- roles/ceph-mon/tasks/docker/start_docker_monitor.yml | 2 +- roles/ceph-osd/tasks/docker/start_docker_osd.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/ceph-mon/tasks/docker/start_docker_monitor.yml b/roles/ceph-mon/tasks/docker/start_docker_monitor.yml index 908894ad9..5192852e0 100644 --- a/roles/ceph-mon/tasks/docker/start_docker_monitor.yml +++ b/roles/ceph-mon/tasks/docker/start_docker_monitor.yml @@ -44,7 +44,7 @@ - name: generate systemd unit file become: true template: - src: ../templates/ceph-mon.service.j2 + src: "{{ playbook_dir }}/roles/ceph-mon/templates/ceph-mon.service.j2" dest: /var/lib/ceph/ceph-mon@.service owner: "root" group: "root" diff --git a/roles/ceph-osd/tasks/docker/start_docker_osd.yml b/roles/ceph-osd/tasks/docker/start_docker_osd.yml index 04a648d8a..161939057 100644 --- a/roles/ceph-osd/tasks/docker/start_docker_osd.yml +++ b/roles/ceph-osd/tasks/docker/start_docker_osd.yml @@ -107,7 +107,7 @@ - name: generate systemd unit file become: true template: - src: ceph-osd.service.j2 + src: "{{ playbook_dir }}/roles/ceph-osd/templates/ceph-osd.service.j2" dest: /var/lib/ceph/ceph-osd@.service owner: "root" group: "root"