Files
DevOpsLab/molecule/presets/multi-os.yml
Сергей Антропов b8faaafd1f Добавлены собственные образы во все существующие пресеты
- Обновлены все пресеты для поддержки собственных образов AnsibleTemplate:
  - default.yml, docker-test.yml, etcd-patroni.yml
  - minimal.yml, multi-os.yml, performance.yml
  - security.yml, standart.yml, test.yml
- Добавлены образы:
  - alt: inecs/ansible-lab:alt-linux-latest
  - astra: inecs/ansible-lab:astra-linux-latest
  - rhel: inecs/ansible-lab:rhel-latest
  - centos: inecs/ansible-lab:centos-latest
  - alma: inecs/ansible-lab:alma-latest
  - rocky: inecs/ansible-lab:rocky-latest
  - redos: inecs/ansible-lab:redos-latest
- Теперь все пресеты поддерживают тестирование на собственных образах
- Сохранена обратная совместимость с существующими образами

Автор: Сергей Антропов
Сайт: https://devops.org.ru
2025-10-25 15:50:00 +03:00

79 lines
2.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
#description: Пресет для тестирования на разных ОС с 12 хостами (Debian + RHEL)
# Автор: Сергей Антропов
# Сайт: 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"
# Собственные образы AnsibleTemplate
alt: "inecs/ansible-lab:alt-linux-latest"
astra: "inecs/ansible-lab:astra-linux-latest"
rhel: "inecs/ansible-lab:rhel-latest"
centos: "inecs/ansible-lab:centos-latest"
alma: "inecs/ansible-lab:alma-latest"
rocky: "inecs/ansible-lab:rocky-latest"
redos: "inecs/ansible-lab:redos-latest"
systemd_defaults:
privileged: true
command: "/sbin/init"
volumes:
- "/sys/fs/cgroup:/sys/fs/cgroup:ro"
tmpfs: ["/run", "/run/lock"]
capabilities: ["SYS_ADMIN"]
# Описание кластера с разными ОС
hosts:
# Debian серверы
- name: debian1
family: debian
groups: [debian, servers, web]
- name: debian2
family: debian
groups: [debian, servers, web]
- name: debian3
family: debian
groups: [debian, servers, app]
- name: debian4
family: debian
groups: [debian, servers, app]
# RHEL серверы
- name: rhel1
family: rhel
groups: [rhel, servers, web]
- name: rhel2
family: rhel
groups: [rhel, servers, web]
- name: rhel3
family: rhel
groups: [rhel, servers, app]
- name: rhel4
family: rhel
groups: [rhel, servers, app]
# База данных на разных ОС
- name: db-debian
family: debian
groups: [database, debian, db]
- name: db-rhel
family: rhel
groups: [database, rhel, db]
# Load balancer
- name: lb-mixed
family: debian
groups: [loadbalancer, haproxy]
publish: ["80:80", "443:443"]
# DinD узел для тестирования Docker
- name: docker-mixed
type: dind
groups: [docker, apps]
publish: ["8080:8080"]