77 lines
2.2 KiB
YAML
77 lines
2.2 KiB
YAML
---
|
|
driver:
|
|
name: docker
|
|
|
|
provisioner:
|
|
name: ansible_playbook
|
|
hosts: localhost
|
|
roles_path: ../
|
|
require_ansible_repo: true
|
|
ansible_verbose: true
|
|
|
|
platforms:
|
|
- name: ubuntu-14.04
|
|
driver_config:
|
|
image: electrical/ubuntu:14.04
|
|
privileged: true
|
|
provision_command:
|
|
- apt-get update && apt-get install -y software-properties-common && add-apt-repository -y ppa:ansible/ansible
|
|
- apt-get update && apt-get -y -q install ansible python-apt python-pycurl
|
|
use_sudo: false
|
|
- name: debian-7
|
|
driver_config:
|
|
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
|
|
use_sudo: false
|
|
- name: debian-8
|
|
driver_config:
|
|
image: electrical/debian:8
|
|
privileged: true
|
|
provision_command: apt-get -y -q install ansible
|
|
use_sudo: false
|
|
- name: centos-6
|
|
driver_config:
|
|
image: electrical/centos:6.4-1
|
|
privileged: true
|
|
use_sudo: false
|
|
- name: centos-7
|
|
driver_config:
|
|
image: electrical/centos:7
|
|
provision_command:
|
|
- 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
|
|
- yum -y install initscripts
|
|
# - BUSSER_ROOT="/tmp/verifier" GEM_HOME="/tmp/verifier/gems" GEM_PATH="/tmp/verifier/gems" GEM_CACHE="/tmp/verifier/gems/cache" gem install --no-rdoc --no-ri rake
|
|
# - chown kitchen:kitchen /tmp/verifier -R
|
|
- yum clean all
|
|
run_command: "/usr/sbin/init"
|
|
privileged: true
|
|
use_sudo: false
|
|
|
|
suites:
|
|
- name: standard
|
|
provisioner:
|
|
playbook: test/integration/standard.yml
|
|
run_list:
|
|
attributes:
|
|
- name: package
|
|
run_list:
|
|
attributes:
|
|
provisioner:
|
|
playbook: test/integration/package.yml
|
|
- name: config
|
|
run_list:
|
|
attributes:
|
|
provisioner:
|
|
playbook: test/integration/config.yml
|
|
- name: multi
|
|
run_list:
|
|
attributes:
|
|
provisioner:
|
|
playbook: test/integration/multi.yml
|
|
|