From 3f5ed998eb91b93cdb595949c394c301017940d5 Mon Sep 17 00:00:00 2001 From: Alan Bishop Date: Wed, 3 Oct 2018 12:47:23 +0000 Subject: [PATCH] Improve support for deploying ceph on standalone system The standalone deployer adds "ansible_connection: local" to facilitate all-in-one deployments. This patch passes on this setting when generating the inventory used by ceph-ansible. Change-Id: I694c4b3c7fb98e11d7a52eed4072a37471c0e405 --- docker/services/ceph-ansible/ceph-base.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/services/ceph-ansible/ceph-base.yaml b/docker/services/ceph-ansible/ceph-base.yaml index f81ac9af4c..7cd3eb7bb2 100644 --- a/docker/services/ceph-ansible/ceph-base.yaml +++ b/docker/services/ceph-ansible/ceph-base.yaml @@ -393,6 +393,9 @@ outputs: ansible_user: {{ hostvars.raw_get(host)['ansible_ssh_user'] | default('root') }} ansible_host: {{ hostvars.raw_get(host)['ansible_host'] | default(host) }} ansible_become: true + {% if hostvars.raw_get(host)['ansible_connection'] | default('') == 'local' -%} + ansible_connection: local + {% endif -%} {% endif -%} {% endif -%} {%- endfor -%}