summaryrefslogtreecommitdiffstats
path: root/functions.sh
diff options
context:
space:
mode:
authorRihab Banday <rihab.banday@ericsson.com>2020-09-11 14:49:54 +0200
committerRihab Banday <rihab.banday@ericsson.com>2020-09-14 13:25:30 +0000
commitf184a05416490e3ad7a7e9c58b982c0e1b3678d7 (patch)
tree8a76b8e52bbf70e6497b81ece6b96dec94bed013 /functions.sh
parentfa8a8f4779bbfe58c0588b4fe19a887767737f78 (diff)
Disable Ansible host key checking in BMRA container
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>
Diffstat (limited to 'functions.sh')
-rwxr-xr-xfunctions.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/functions.sh b/functions.sh
index a4753e1..e64bf91 100755
--- a/functions.sh
+++ b/functions.sh
@@ -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