Disable Ansible host key checking in BMRA container 81/71081/4
authorRihab Banday <rihab.banday@ericsson.com>
Fri, 11 Sep 2020 12:49:54 +0000 (14:49 +0200)
committerRihab Banday <rihab.banday@ericsson.com>
Mon, 14 Sep 2020 13:25:30 +0000 (13:25 +0000)
This change avoids the need to copy SSH keys to the
provisioned hosts during BMRA provisioning by loading
the respective env variable inside the BMRA container.

Change-Id: I30cef25f65492da26435259b7f028f79c3b8cb01
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71081
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Michael Pedersen <michael.soelvkaer@gmail.com>
Reviewed-by: Georg Kunz <georg.kunz@est.tech>
functions.sh

index a4753e1..e64bf91 100755 (executable)
@@ -174,6 +174,7 @@ cp ${PROJECT_ROOT}/${INSTALLER}/inventory.ini \
 cp ${PROJECT_ROOT}/${INSTALLER}/{all.yml,kube-node.yml} \
     ${PROJECT_ROOT}/container-experience-kits/group_vars/
 sudo docker run --rm \
+-e ANSIBLE_CONFIG=/bmra/ansible.cfg \
 -v ${PROJECT_ROOT}/container-experience-kits:/bmra \
 -v ~/.ssh/:/root/.ssh/ rihabbanday/bmra-install:centos \
 ansible-playbook -i /bmra/inventory.ini /bmra/playbooks/cluster.yml