Обновление конфигурации Ansible: добавлены новые пресеты, улучшен Makefile, добавлена документация
This commit is contained in:
32
molecule/presets/security.yml
Normal file
32
molecule/presets/security.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
# Пресет для тестирования безопасности
|
||||
# Автор: Сергей Антропов
|
||||
# Сайт: https://devops.org.ru
|
||||
|
||||
docker_network: labnet
|
||||
generated_inventory: "{{ molecule_ephemeral_directory }}/inventory/hosts.ini"
|
||||
|
||||
# systemd-ready образы
|
||||
images:
|
||||
debian: "ghcr.io/ansible-community/molecule-ubuntu-systemd:jammy"
|
||||
rhel: "quay.io/centos/centos:stream9-systemd"
|
||||
|
||||
systemd_defaults:
|
||||
privileged: true
|
||||
command: "/sbin/init"
|
||||
volumes:
|
||||
- "/sys/fs/cgroup:/sys/fs/cgroup:ro"
|
||||
tmpfs: ["/run", "/run/lock"]
|
||||
capabilities: ["SYS_ADMIN"]
|
||||
|
||||
hosts:
|
||||
# Тестирование безопасности - 3 хоста с разными ОС
|
||||
- name: sec1
|
||||
family: debian
|
||||
groups: [test, security, web]
|
||||
- name: sec2
|
||||
family: rhel
|
||||
groups: [test, security, db]
|
||||
- name: sec3
|
||||
family: debian
|
||||
groups: [test, security, api]
|
||||
Reference in New Issue
Block a user