From 3c49d1c76c1442dc258a646051f279b589b376f2 Mon Sep 17 00:00:00 2001 From: Sylvain Afchain Date: Thu, 28 Mar 2019 11:35:01 +0100 Subject: [PATCH] Fix skydive deployment not able to read ssh private key Change-Id: Ic524d895e14c201eebb2017b583b66fbdc33d381 --- extraconfig/services/skydive-analyzer.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extraconfig/services/skydive-analyzer.yaml b/extraconfig/services/skydive-analyzer.yaml index c148726ad9..d87fac1416 100644 --- a/extraconfig/services/skydive-analyzer.yaml +++ b/extraconfig/services/skydive-analyzer.yaml @@ -110,6 +110,7 @@ outputs: skydive_os_auth_url: {{os_auth_url}}/v3 skydive_os_service_region_name: {{os_region_name}} skydive_deployment_mode: container + skydive_deployment_source: tripleo skydive_flow_protocol: websocket skydive_topology_probes: - neutron @@ -160,8 +161,10 @@ outputs: set -e + ANSIBLE_CONFIG="{{playbook_dir}}/ansible.cfg" ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook + {% if ansible_ssh_private_key_file is defined %}--private-key '{{ansible_ssh_private_key_file}}'{% endif %} -i '{{playbook_dir}}/skydive/inventory.yml' --extra-vars '@{{playbook_dir}}/skydive/global_defaults.yml' --extra-vars '@{{playbook_dir}}/skydive/global_vars.yml' @@ -170,6 +173,7 @@ outputs: mode: 0700 - name: run skydive-deploy.sh (immediate log at {{playbook_dir}}/skydive/playbook.log) + become: true shell: | {{playbook_dir}}/skydive/skydive-deploy.sh 2>&1 | tee {{playbook_dir}}/skydive/playbook.log exit ${PIPESTATUS[0]}