Fixes for ansible version not consistent across images
This commit is contained in:
parent
abf422e0e3
commit
b8a077e8bd
1 changed files with 10 additions and 5 deletions
15
.kitchen.yml
15
.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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue