From 45b76cb9f7424d8fc00eb7f42bd967505b544d46 Mon Sep 17 00:00:00 2001
From: Varac <varac@varac.net>
Date: Tue, 5 Mar 2019 17:10:21 +0100
Subject: [PATCH] Disable testinfra hostkey checking

---
 .gitlab-ci.yml       | 2 +-
 test/ci-bootstrap.py | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bc71b4069..6b63be1a8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -67,7 +67,7 @@ testinfra:
   image: docker.greenhost.net/openappstack/bootstrap/bootstrap-ci
   script:
     - cd test/
-    - py.test -v --ansible-inventory=./inventory.yml --connection=ssh --hosts='ansible://*'
+    - py.test -v --connection=ansible --ansible-inventory=./inventory.yml --hosts='ansible://*'
   cache:
     key: "$CI_PIPELINE_ID"
     paths:
diff --git a/test/ci-bootstrap.py b/test/ci-bootstrap.py
index cb36d1019..f58099421 100755
--- a/test/ci-bootstrap.py
+++ b/test/ci-bootstrap.py
@@ -170,6 +170,8 @@ if __name__ == "__main__":
     del inventory['all']['hosts']['oas-dev']
 
     inventory['all']['hosts'][name]['ansible_host'] = ip
+    inventory['all']['hosts'][name]['ansible_ssh_extra_args'] = \
+        '-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
     inventory['all']['children']['cluster']['hosts'] = name
     inventory['all']['children']['master']['hosts'] = name
     inventory['all']['children']['worker']['hosts'] = name
-- 
GitLab