From cd267f153c0c1ffd759286e5283bff30cfdfcb55 Mon Sep 17 00:00:00 2001 From: Marc Gariepy Date: Tue, 21 Feb 2017 12:43:11 -0500 Subject: [PATCH] Fix ceph AIO bootstrap for CentOS Change-Id: I1f9b86c217ce9a442c4e203ab6c75cc15ea7fffb --- tests/roles/bootstrap-host/tasks/prepare_ceph.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/roles/bootstrap-host/tasks/prepare_ceph.yml b/tests/roles/bootstrap-host/tasks/prepare_ceph.yml index e1794f3660..cb2623b63c 100644 --- a/tests/roles/bootstrap-host/tasks/prepare_ceph.yml +++ b/tests/roles/bootstrap-host/tasks/prepare_ceph.yml @@ -34,7 +34,7 @@ - name: Ensure that rc.local exists file: - path: /etc/rc.local + path: "{{ rc_local }}" state: touch mode: "u+x" tags: @@ -42,8 +42,9 @@ - name: Create ceph loopback at boot time lineinfile: - dest: /etc/rc.local + dest: "{{ rc_local }}" line: "losetup -f /openstack/{{ item }}.img" + insertbefore: "{{ rc_local_insert_before }}" with_items: "{{ ceph_osd_images }}" # TODO(logan): Move these vars to user_variables.ceph.yml.j2 once LP #1649381