From dd76341f474f0801824a22d20420475577066dca Mon Sep 17 00:00:00 2001
From: Paul Belanger <pabelanger@redhat.com>
Date: Mon, 22 May 2017 18:15:30 -0400
Subject: [PATCH] Update bindep.txt to make jobs pass again

Also, disable ssh host key checking until we can update JJB properly.

Change-Id: I10f6e7270df41ba4d1bd70d49427bf0f0464f688
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
---
 bindep.txt        | 8 +++++++-
 tests/ansible.cfg | 2 ++
 tests/test.yaml   | 1 +
 3 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/bindep.txt b/bindep.txt
index cac9e3d..cb8c48d 100644
--- a/bindep.txt
+++ b/bindep.txt
@@ -1,4 +1,10 @@
 # This is a cross-platform list tracking distribution packages needed by tests;
 # see http://docs.openstack.org/infra/bindep/ for additional information.
 
-python-pip
+git
+libffi-devel [platform:rpm]
+libffi-dev [platform:dpkg]
+libselinux-python [platform:rpm]
+libssl-dev [platform:dpkg]
+openssl-devel [platform:rpm]
+python2-dnf [platform:fedora]
diff --git a/tests/ansible.cfg b/tests/ansible.cfg
index 6c8a344..ba394c0 100644
--- a/tests/ansible.cfg
+++ b/tests/ansible.cfg
@@ -1,2 +1,4 @@
 [defaults]
+# TODO(pabelanger): Add keyscan to JJB jobs
+host_key_checking = False
 roles_path = ../..
diff --git a/tests/test.yaml b/tests/test.yaml
index 605a361..d06d5ea 100644
--- a/tests/test.yaml
+++ b/tests/test.yaml
@@ -18,6 +18,7 @@
   pre_tasks:
     # Make sure OS does not have a stale package cache.
     - name: Update apt cache.
+      become: yes
       apt:
         update_cache: yes
       when: ansible_os_family == 'Debian'