1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_ntp.git synced 2024-08-16 12:59:49 +02:00
ansible_role_ntp/.kitchen.yml

138 lines
3.5 KiB
YAML
Raw Permalink Normal View History

2018-12-28 11:10:17 +01:00
---
# we use docker as plateform
driver:
name: docker
privileged: true
volume: /sys/fs/cgroup:/sys/fs/cgroup
# Ansible will be our provisioner
provisioner:
name: ansible_playbook
hosts: localhost
require_chef_for_busser: false
require_ruby_for_busser: false
require_ansible_omnibus: false
idempotency_test: true
verifier:
name: inspec
inspec_tests:
- path: tests/inspec
platforms:
# Centos
- name: centos-7
driver:
image: diodonfrost/centos-7-ansible
run_command: /sbin/init
platform: centos
provision_command:
- sed -i 's/UsePAM yes/UsePAM no/g' /etc/ssh/sshd_config
- name: centos-6
driver:
image: diodonfrost/centos-6-ansible
platform: centos
run_command: /sbin/init
provision_command:
- sed -i 's/UsePAM yes/UsePAM no/g' /etc/ssh/sshd_config
# Fedora
- name: fedora-27
driver:
image: diodonfrost/fedora-27-ansible
run_command: /usr/sbin/init
platform: centos
provision_command:
- sed -i 's/UsePAM yes/UsePAM no/g' /etc/ssh/sshd_config
- name: fedora-26
driver:
image: diodonfrost/fedora-26-ansible
run_command: /usr/sbin/init
platform: centos
provision_command:
- sed -i 's/UsePAM yes/UsePAM no/g' /etc/ssh/sshd_config
# Ubuntu
- name: ubuntu-18.04
driver:
image: diodonfrost/ubuntu-18.04-ansible
provision_command: apt-get install -y init
run_command: /sbin/init
platform: ubuntu
- name: ubuntu-16.04
driver:
image: diodonfrost/ubuntu-16.04-ansible
provision_command: apt-get install -y init
run_command: /sbin/init
platform: ubuntu
- name: ubuntu-14.04
driver:
image: diodonfrost/ubuntu-14.04-ansible
platform: ubuntu
2019-01-22 11:47:43 +01:00
run_command: /sbin/init
provision_command:
- apt-get install -y init
2019-01-22 11:47:43 +01:00
- sed -i 's/UsePAM yes/UsePAM no/g' /etc/ssh/sshd_config
2018-12-28 11:10:17 +01:00
# Debian
- name: debian-9
driver:
image: diodonfrost/debian-9-ansible
provision_command: apt-get install -y systemd
run_command: /bin/systemd
platform: debian
- name: debian-8
driver:
image: diodonfrost/debian-8-ansible
run_command: /sbin/init
platform: debian
- name: debian-7
driver:
image: diodonfrost/debian-7-ansible
platform: debian
# Oraclelinux
- name: oraclelinux-7
driver:
image: diodonfrost/oraclelinux-7-ansible
run_command: /usr/sbin/init
platform: centos
provision_command:
- sed -i 's/UsePAM yes/UsePAM no/g' /etc/ssh/sshd_config
- systemctl enable sshd
- name: oraclelinux-6
driver:
image: diodonfrost/oraclelinux-6-ansible
run_command: /sbin/init
platform: centos
# Amazonlinux
- name: amazonlinux-2
driver:
image: diodonfrost/amazonlinux-2-ansible
run_command: /usr/sbin/init
platform: centos
provision_command:
- sed -i 's/UsePAM yes/UsePAM no/g' /etc/ssh/sshd_config
- name: amazonlinux-1
driver:
image: diodonfrost/amazonlinux-1-ansible
run_command: /sbin/init
platform: centos
# Archlinux
- name: archlinux-rolling
driver:
2018-12-28 11:54:06 +01:00
image: diodonfrost/archlinux-rolling-ansible
2018-12-28 11:10:17 +01:00
run_command: /usr/lib/systemd/systemd
provision_command:
- sed -i 's/UsePAM yes/UsePAM no/g' /etc/ssh/sshd_config
- systemctl enable sshd
suites:
# Test openjdk-latest
- name: default
provisioner:
name: ansible_playbook
playbook: tests/test.yml