mirror of
https://github.com/dev-sec/ansible-collection-hardening
synced 2024-11-14 02:47:06 +00:00
1d20f0b007
WIP Make kitchen work for os familiy redhat Signed-off-by: szEvEz <szivos.john@gmail.com>
93 lines
2.5 KiB
YAML
93 lines
2.5 KiB
YAML
---
|
|
driver:
|
|
name: docker
|
|
use_sudo: false
|
|
privileged: true
|
|
http_proxy: <%= ENV['http_proxy'] || nil %>
|
|
https_proxy: <%= ENV['https_proxy'] || nil %>
|
|
|
|
transport:
|
|
max_ssh_sessions: 5
|
|
|
|
provisioner:
|
|
name: ansible_playbook
|
|
hosts: all
|
|
require_ansible_repo: false
|
|
require_chef_for_busser: false
|
|
require_ruby_for_busser: false
|
|
ansible_verbose: true
|
|
ansible_diff: true
|
|
|
|
roles_path: ../ansible-mysql-hardening/
|
|
http_proxy: <%= ENV['http_proxy'] || nil %>
|
|
https_proxy: <%= ENV['https_proxy'] || nil %>
|
|
requirements_path: requirements.yml
|
|
requirements_collection_path: requirements.yml
|
|
# ansible_cfg_path: ansible.cfg
|
|
# ansible_cfg_overwrite: true
|
|
sudo_command: 'sudo -E -H'
|
|
playbook: tests/test.yml
|
|
galaxy_ignore_certs: true
|
|
|
|
platforms:
|
|
- name: centos6-ansible-latest
|
|
driver:
|
|
image: rndmh3ro/docker-centos6-ansible:latest
|
|
platform: centos
|
|
- name: centos7-ansible-latest
|
|
driver:
|
|
image: rndmh3ro/docker-centos7-ansible:latest
|
|
platform: centos
|
|
run_command: /sbin/init
|
|
provision_command:
|
|
- sed -i 's/UsePAM yes/UsePAM no/g' /etc/ssh/sshd_config
|
|
- systemctl enable sshd.service
|
|
- name: oracle6-ansible-latest
|
|
driver:
|
|
image: rndmh3ro/docker-oracle6-ansible:latest
|
|
platform: centos
|
|
- name: oracle7-ansible-latest
|
|
driver:
|
|
image: rndmh3ro/docker-oracle7-ansible:latest
|
|
run_command: /sbin/init
|
|
platform: centos
|
|
provision_command:
|
|
- systemctl enable ssh.service
|
|
- name: ubuntu1804-ansible-latest
|
|
driver:
|
|
image: rndmh3ro/docker-ubuntu1804-ansible:latest
|
|
platform: ubuntu
|
|
provision_command:
|
|
- systemctl enable ssh.service
|
|
- name: debian9-ansible-latest
|
|
driver:
|
|
image: rndmh3ro/docker-debian9-ansible:latest
|
|
platform: debian
|
|
run_command: /sbin/init
|
|
provision_command:
|
|
- apt install -y systemd-sysv
|
|
- systemctl enable ssh.service
|
|
- name: debian10-ansible-latest
|
|
driver:
|
|
image: rndmh3ro/docker-debian10-ansible:latest
|
|
platform: debian
|
|
run_command: /sbin/init
|
|
provision_command:
|
|
- apt install -y systemd-sysv
|
|
- systemctl enable ssh.service
|
|
- name: amazon-ansible-latest
|
|
driver:
|
|
image: rndmh3ro/docker-amazon-ansible:latest
|
|
platform: centos
|
|
run_command: /sbin/init
|
|
provision_command:
|
|
- sed -i 's/UsePAM yes/UsePAM no/g' /etc/ssh/sshd_config
|
|
- systemctl enable sshd.service
|
|
verifier:
|
|
name: inspec
|
|
sudo: true
|
|
inspec_tests:
|
|
- https://github.com/dev-sec/mysql-baseline
|
|
|
|
suites:
|
|
- name: mysql
|