From b8a077e8bd8280ce6702e95a2156267f2b735aab Mon Sep 17 00:00:00 2001 From: Dale McDiarmid Date: Mon, 21 Mar 2016 12:28:07 +0000 Subject: [PATCH] Fixes for ansible version not consistent across images --- .kitchen.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.kitchen.yml b/.kitchen.yml index 4874b31..0348eaf 100644 --- a/.kitchen.yml +++ b/.kitchen.yml @@ -26,9 +26,8 @@ platforms: image: electrical/debian:7.3 privileged: true provision_command: - - echo 'deb http://http.debian.net/debian/ wheezy-backports main' >> /etc/apt/sources.list - - apt-get update - - apt-get install -y -q ansible + - apt-get update && apt-get -y install python python-dev python-pip build-essential libyaml-dev python-yaml + - pip install ansible - apt-get install -y -q net-tools use_sudo: false - name: debian-8 @@ -36,8 +35,8 @@ platforms: image: electrical/debian:8 privileged: true provision_command: - - apt-get update - - apt-get install -y -q ansible + - apt-get update && apt-get -y install python python-dev python-pip build-essential libyaml-dev python-yaml + - pip install ansible - apt-get install -y -q net-tools - sed -ri 's/^#?PermitRootLogin .*/PermitRootLogin yes/' /etc/ssh/sshd_config - sed -ri 's/^#?PasswordAuthentication .*/PasswordAuthentication yes/' /etc/ssh/sshd_config @@ -48,11 +47,17 @@ platforms: driver_config: image: electrical/centos:6.4-1 privileged: true + provision_command: + - yum -y install gmp-devel python-devel python-pip + - pip install ansible use_sudo: false - name: centos-7 driver_config: image: electrical/centos:7 provision_command: + - yum -y install gmp-devel python-devel python-pip + - yum -y groupinstall "Development Tools" + - pip install ansible - sed -ri 's/^#?PermitRootLogin .*/PermitRootLogin yes/' /etc/ssh/sshd_config - sed -ri 's/^#?PasswordAuthentication .*/PasswordAuthentication yes/' /etc/ssh/sshd_config - sed -ri 's/^#?UsePAM .*/UsePAM no/' /etc/ssh/sshd_config