Обновление проекта
Some checks failed
Ansible Testing / lint (push) Has been cancelled
Ansible Testing / test (default) (push) Has been cancelled
Ansible Testing / test (minimal) (push) Has been cancelled
Ansible Testing / test (performance) (push) Has been cancelled
Ansible Testing / deploy-check (push) Has been cancelled
Some checks failed
Ansible Testing / lint (push) Has been cancelled
Ansible Testing / test (default) (push) Has been cancelled
Ansible Testing / test (minimal) (push) Has been cancelled
Ansible Testing / test (performance) (push) Has been cancelled
Ansible Testing / deploy-check (push) Has been cancelled
This commit is contained in:
184
molecule/presets/examples/all-images.yml
Normal file
184
molecule/presets/examples/all-images.yml
Normal file
@@ -0,0 +1,184 @@
|
||||
---
|
||||
#description: Пресет для тестирования всех доступных образов (9 хостов)
|
||||
# Автор: Сергей Антропов
|
||||
# Сайт: https://devops.org.ru
|
||||
# Примечание: Astra Linux и RedOS поддерживают только linux/amd64
|
||||
|
||||
docker_network: labnet
|
||||
generated_inventory: "{{ molecule_ephemeral_directory }}/inventory/hosts.ini"
|
||||
|
||||
# systemd-ready образы
|
||||
images:
|
||||
alt: "inecs/ansible-lab:alt-linux-latest"
|
||||
astra: "inecs/ansible-lab:astra-linux-latest"
|
||||
rhel: "inecs/ansible-lab:rhel-latest"
|
||||
centos7: "inecs/ansible-lab:centos7-latest"
|
||||
centos8: "inecs/ansible-lab:centos8-latest"
|
||||
centos9: "inecs/ansible-lab:centos9-latest"
|
||||
alma: "inecs/ansible-lab:alma-latest"
|
||||
rocky: "inecs/ansible-lab:rocky-latest"
|
||||
redos: "inecs/ansible-lab:redos-latest"
|
||||
ubuntu20: "inecs/ansible-lab:ubuntu20-latest"
|
||||
ubuntu22: "inecs/ansible-lab:ubuntu22-latest"
|
||||
ubuntu24: "inecs/ansible-lab:ubuntu24-latest"
|
||||
debian9: "inecs/ansible-lab:debian9-latest"
|
||||
debian10: "inecs/ansible-lab:debian10-latest"
|
||||
debian11: "inecs/ansible-lab:debian11-latest"
|
||||
debian12: "inecs/ansible-lab:debian12-latest"
|
||||
|
||||
systemd_defaults:
|
||||
privileged: true
|
||||
command: "/sbin/init"
|
||||
volumes:
|
||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||
tmpfs: ["/run", "/run/lock"]
|
||||
capabilities: ["SYS_ADMIN"]
|
||||
|
||||
hosts:
|
||||
# Debian-based системы
|
||||
- name: ubuntu20-test
|
||||
family: ubuntu2220
|
||||
groups: [test, debian, ubuntu]
|
||||
publish:
|
||||
- "8080:80"
|
||||
env:
|
||||
TEST_OS: "Ubuntu 20.04"
|
||||
TEST_FAMILY: "Debian"
|
||||
|
||||
- name: ubuntu22-test
|
||||
family: ubuntu22
|
||||
groups: [test, debian, ubuntu]
|
||||
publish:
|
||||
- "8081:80"
|
||||
env:
|
||||
TEST_OS: "Ubuntu 22.04"
|
||||
TEST_FAMILY: "Debian"
|
||||
|
||||
- name: ubuntu24-test
|
||||
family: ubuntu2224
|
||||
groups: [test, debian, ubuntu]
|
||||
publish:
|
||||
- "8082:80"
|
||||
env:
|
||||
TEST_OS: "Ubuntu 24.04"
|
||||
TEST_FAMILY: "Debian"
|
||||
|
||||
- name: debian9-test
|
||||
family: debian129
|
||||
groups: [test, debian]
|
||||
publish:
|
||||
- "8083:80"
|
||||
env:
|
||||
TEST_OS: "Debian 9"
|
||||
TEST_FAMILY: "Debian"
|
||||
|
||||
- name: debian10-test
|
||||
family: debian1210
|
||||
groups: [test, debian]
|
||||
publish:
|
||||
- "8084:80"
|
||||
env:
|
||||
TEST_OS: "Debian 10"
|
||||
TEST_FAMILY: "Debian"
|
||||
|
||||
- name: debian11-test
|
||||
family: debian1211
|
||||
groups: [test, debian]
|
||||
publish:
|
||||
- "8085:80"
|
||||
env:
|
||||
TEST_OS: "Debian 11"
|
||||
TEST_FAMILY: "Debian"
|
||||
|
||||
- name: debian12-test
|
||||
family: debian12
|
||||
groups: [test, debian]
|
||||
publish:
|
||||
- "8086:80"
|
||||
env:
|
||||
TEST_OS: "Debian 12"
|
||||
TEST_FAMILY: "Debian"
|
||||
|
||||
- name: alt-test
|
||||
family: alt
|
||||
groups: [test, altlinux]
|
||||
publish:
|
||||
- "8082:80"
|
||||
env:
|
||||
TEST_OS: "Alt Linux"
|
||||
TEST_FAMILY: "Altlinux"
|
||||
|
||||
- name: astra-test
|
||||
family: astra
|
||||
groups: [test, astra]
|
||||
supported_platforms: ["linux/amd64"] # Только amd64
|
||||
publish:
|
||||
- "8083:80"
|
||||
env:
|
||||
TEST_OS: "Astra Linux"
|
||||
TEST_FAMILY: "Astra Linux"
|
||||
|
||||
# RHEL-based системы
|
||||
- name: centos7-test
|
||||
family: centos97
|
||||
groups: [test, rhel, centos]
|
||||
publish:
|
||||
- "8090:80"
|
||||
env:
|
||||
TEST_OS: "CentOS 7"
|
||||
TEST_FAMILY: "RedHat"
|
||||
|
||||
- name: centos8-test
|
||||
family: centos98
|
||||
groups: [test, rhel, centos]
|
||||
publish:
|
||||
- "8091:80"
|
||||
env:
|
||||
TEST_OS: "CentOS 8"
|
||||
TEST_FAMILY: "RedHat"
|
||||
|
||||
- name: centos9-test
|
||||
family: centos99
|
||||
groups: [test, rhel, centos]
|
||||
publish:
|
||||
- "8092:80"
|
||||
env:
|
||||
TEST_OS: "CentOS 9"
|
||||
TEST_FAMILY: "RedHat"
|
||||
|
||||
- name: rhel-test
|
||||
family: rhel
|
||||
groups: [test, rhel]
|
||||
publish:
|
||||
- "8085:80"
|
||||
env:
|
||||
TEST_OS: "RHEL"
|
||||
TEST_FAMILY: "RedHat"
|
||||
|
||||
- name: alma-test
|
||||
family: alma
|
||||
groups: [test, rhel]
|
||||
publish:
|
||||
- "8086:80"
|
||||
env:
|
||||
TEST_OS: "AlmaLinux"
|
||||
TEST_FAMILY: "RedHat"
|
||||
|
||||
- name: rocky-test
|
||||
family: rocky
|
||||
groups: [test, rhel]
|
||||
publish:
|
||||
- "8087:80"
|
||||
env:
|
||||
TEST_OS: "Rocky Linux"
|
||||
TEST_FAMILY: "RedHat"
|
||||
|
||||
- name: redos-test
|
||||
family: redos
|
||||
groups: [test, rhel]
|
||||
supported_platforms: ["linux/amd64"] # Только amd64
|
||||
publish:
|
||||
- "8088:80"
|
||||
env:
|
||||
TEST_OS: "RedOS"
|
||||
TEST_FAMILY: "RedHat"
|
||||
52
molecule/presets/examples/centos-all.yml
Normal file
52
molecule/presets/examples/centos-all.yml
Normal file
@@ -0,0 +1,52 @@
|
||||
---
|
||||
#description: Пресет со всеми версиями CentOS (7, 8, 9)
|
||||
# Автор: Сергей Антропов
|
||||
# Сайт: https://devops.org.ru
|
||||
|
||||
docker_network: labnet
|
||||
generated_inventory: "{{ molecule_ephemeral_directory }}/inventory/hosts.ini"
|
||||
|
||||
# systemd-ready образы CentOS
|
||||
images:
|
||||
centos7: "inecs/ansible-lab:centos7-latest"
|
||||
centos8: "inecs/ansible-lab:centos8-latest"
|
||||
centos9: "inecs/ansible-lab:centos9-latest"
|
||||
|
||||
systemd_defaults:
|
||||
privileged: true
|
||||
command: "/sbin/init"
|
||||
volumes:
|
||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||
tmpfs: ["/run", "/run/lock"]
|
||||
capabilities: ["SYS_ADMIN"]
|
||||
|
||||
hosts:
|
||||
# CentOS 7
|
||||
- name: centos7-1
|
||||
family: centos7
|
||||
groups: [centos, test, web]
|
||||
publish: ["7007:80"]
|
||||
- name: centos7-2
|
||||
family: centos7
|
||||
groups: [centos, test, db]
|
||||
publish: ["7008:80"]
|
||||
|
||||
# CentOS 8
|
||||
- name: centos8-1
|
||||
family: centos8
|
||||
groups: [centos, test, web]
|
||||
publish: ["7009:80"]
|
||||
- name: centos8-2
|
||||
family: centos8
|
||||
groups: [centos, test, db]
|
||||
publish: ["7010:80"]
|
||||
|
||||
# CentOS 9 Stream
|
||||
- name: centos9-1
|
||||
family: centos9
|
||||
groups: [centos, test, web]
|
||||
publish: ["7011:80"]
|
||||
- name: centos9-2
|
||||
family: centos9
|
||||
groups: [centos, test, db]
|
||||
publish: ["7012:80"]
|
||||
34
molecule/presets/examples/centos7.yml
Normal file
34
molecule/presets/examples/centos7.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
#description: Пресет для CentOS 7
|
||||
# Автор: Сергей Антропов
|
||||
# Сайт: https://devops.org.ru
|
||||
|
||||
docker_network: labnet
|
||||
generated_inventory: "{{ molecule_ephemeral_directory }}/inventory/hosts.ini"
|
||||
|
||||
# systemd-ready образ CentOS 7
|
||||
images:
|
||||
centos7: "inecs/ansible-lab:centos7-latest"
|
||||
|
||||
systemd_defaults:
|
||||
privileged: true
|
||||
command: "/sbin/init"
|
||||
volumes:
|
||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||
tmpfs: ["/run", "/run/lock"]
|
||||
capabilities: ["SYS_ADMIN"]
|
||||
|
||||
hosts:
|
||||
# CentOS 7 хосты
|
||||
- name: centos7-web
|
||||
family: centos7
|
||||
groups: [centos, test, web]
|
||||
publish: ["7070:80"]
|
||||
- name: centos7-db
|
||||
family: centos7
|
||||
groups: [centos, test, db]
|
||||
publish: ["7071:80"]
|
||||
- name: centos7-app
|
||||
family: centos7
|
||||
groups: [centos, test, app]
|
||||
publish: ["7072:80"]
|
||||
34
molecule/presets/examples/centos8.yml
Normal file
34
molecule/presets/examples/centos8.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
#description: Пресет для CentOS 8
|
||||
# Автор: Сергей Антропов
|
||||
# Сайт: https://devops.org.ru
|
||||
|
||||
docker_network: labnet
|
||||
generated_inventory: "{{ molecule_ephemeral_directory }}/inventory/hosts.ini"
|
||||
|
||||
# systemd-ready образ CentOS 8
|
||||
images:
|
||||
centos8: "inecs/ansible-lab:centos8-latest"
|
||||
|
||||
systemd_defaults:
|
||||
privileged: true
|
||||
command: "/sbin/init"
|
||||
volumes:
|
||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||
tmpfs: ["/run", "/run/lock"]
|
||||
capabilities: ["SYS_ADMIN"]
|
||||
|
||||
hosts:
|
||||
# CentOS 8 хосты
|
||||
- name: centos8-web
|
||||
family: centos8
|
||||
groups: [centos, test, web]
|
||||
publish: ["7080:80"]
|
||||
- name: centos8-db
|
||||
family: centos8
|
||||
groups: [centos, test, db]
|
||||
publish: ["7081:80"]
|
||||
- name: centos8-app
|
||||
family: centos8
|
||||
groups: [centos, test, app]
|
||||
publish: ["7082:80"]
|
||||
34
molecule/presets/examples/centos9.yml
Normal file
34
molecule/presets/examples/centos9.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
#description: Пресет для CentOS 9 Stream
|
||||
# Автор: Сергей Антропов
|
||||
# Сайт: https://devops.org.ru
|
||||
|
||||
docker_network: labnet
|
||||
generated_inventory: "{{ molecule_ephemeral_directory }}/inventory/hosts.ini"
|
||||
|
||||
# systemd-ready образ CentOS 9
|
||||
images:
|
||||
centos9: "inecs/ansible-lab:centos9-latest"
|
||||
|
||||
systemd_defaults:
|
||||
privileged: true
|
||||
command: "/sbin/init"
|
||||
volumes:
|
||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||
tmpfs: ["/run", "/run/lock"]
|
||||
capabilities: ["SYS_ADMIN"]
|
||||
|
||||
hosts:
|
||||
# CentOS 9 Stream хосты
|
||||
- name: centos9-web
|
||||
family: centos9
|
||||
groups: [centos, test, web]
|
||||
publish: ["7090:80"]
|
||||
- name: centos9-db
|
||||
family: centos9
|
||||
groups: [centos, test, db]
|
||||
publish: ["7091:80"]
|
||||
- name: centos9-app
|
||||
family: centos9
|
||||
groups: [centos, test, app]
|
||||
publish: ["7092:80"]
|
||||
63
molecule/presets/examples/debian-all.yml
Normal file
63
molecule/presets/examples/debian-all.yml
Normal file
@@ -0,0 +1,63 @@
|
||||
---
|
||||
#description: Пресет со всеми версиями Debian (9, 10, 11, 12)
|
||||
# Автор: Сергей Антропов
|
||||
# Сайт: https://devops.org.ru
|
||||
|
||||
docker_network: labnet
|
||||
generated_inventory: "{{ molecule_ephemeral_directory }}/inventory/hosts.ini"
|
||||
|
||||
# systemd-ready образы Debian
|
||||
images:
|
||||
debian9: "inecs/ansible-lab:debian9-latest"
|
||||
debian10: "inecs/ansible-lab:debian10-latest"
|
||||
debian11: "inecs/ansible-lab:debian11-latest"
|
||||
debian12: "inecs/ansible-lab:debian12-latest"
|
||||
|
||||
systemd_defaults:
|
||||
privileged: true
|
||||
command: "/sbin/init"
|
||||
volumes:
|
||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||
tmpfs: ["/run", "/run/lock"]
|
||||
capabilities: ["SYS_ADMIN"]
|
||||
|
||||
hosts:
|
||||
# Debian 9 Stretch
|
||||
- name: debian9-1
|
||||
family: debian9
|
||||
groups: [debian, test, web]
|
||||
publish: ["9009:80"]
|
||||
- name: debian9-2
|
||||
family: debian9
|
||||
groups: [debian, test, db]
|
||||
publish: ["9010:80"]
|
||||
|
||||
# Debian 10 Buster
|
||||
- name: debian10-1
|
||||
family: debian10
|
||||
groups: [debian, test, web]
|
||||
publish: ["9011:80"]
|
||||
- name: debian10-2
|
||||
family: debian10
|
||||
groups: [debian, test, db]
|
||||
publish: ["9012:80"]
|
||||
|
||||
# Debian 11 Bullseye
|
||||
- name: debian11-1
|
||||
family: debian11
|
||||
groups: [debian, test, web]
|
||||
publish: ["9013:80"]
|
||||
- name: debian11-2
|
||||
family: debian11
|
||||
groups: [debian, test, db]
|
||||
publish: ["9014:80"]
|
||||
|
||||
# Debian 12 Bookworm
|
||||
- name: debian12-1
|
||||
family: debian12
|
||||
groups: [debian, test, web]
|
||||
publish: ["9015:80"]
|
||||
- name: debian12-2
|
||||
family: debian12
|
||||
groups: [debian, test, db]
|
||||
publish: ["9016:80"]
|
||||
34
molecule/presets/examples/debian10.yml
Normal file
34
molecule/presets/examples/debian10.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
#description: Пресет для Debian 10 Buster
|
||||
# Автор: Сергей Антропов
|
||||
# Сайт: https://devops.org.ru
|
||||
|
||||
docker_network: labnet
|
||||
generated_inventory: "{{ molecule_ephemeral_directory }}/inventory/hosts.ini"
|
||||
|
||||
# systemd-ready образ Debian 10
|
||||
images:
|
||||
debian10: "inecs/ansible-lab:debian10-latest"
|
||||
|
||||
systemd_defaults:
|
||||
privileged: true
|
||||
command: "/sbin/init"
|
||||
volumes:
|
||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||
tmpfs: ["/run", "/run/lock"]
|
||||
capabilities: ["SYS_ADMIN"]
|
||||
|
||||
hosts:
|
||||
# Debian 10 Buster хосты
|
||||
- name: debian10-web
|
||||
family: debian10
|
||||
groups: [debian, test, web]
|
||||
publish: ["9100:80"]
|
||||
- name: debian10-db
|
||||
family: debian10
|
||||
groups: [debian, test, db]
|
||||
publish: ["9101:80"]
|
||||
- name: debian10-app
|
||||
family: debian10
|
||||
groups: [debian, test, app]
|
||||
publish: ["9102:80"]
|
||||
34
molecule/presets/examples/debian11.yml
Normal file
34
molecule/presets/examples/debian11.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
#description: Пресет для Debian 11 Bullseye
|
||||
# Автор: Сергей Антропов
|
||||
# Сайт: https://devops.org.ru
|
||||
|
||||
docker_network: labnet
|
||||
generated_inventory: "{{ molecule_ephemeral_directory }}/inventory/hosts.ini"
|
||||
|
||||
# systemd-ready образ Debian 11
|
||||
images:
|
||||
debian11: "inecs/ansible-lab:debian11-latest"
|
||||
|
||||
systemd_defaults:
|
||||
privileged: true
|
||||
command: "/sbin/init"
|
||||
volumes:
|
||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||
tmpfs: ["/run", "/run/lock"]
|
||||
capabilities: ["SYS_ADMIN"]
|
||||
|
||||
hosts:
|
||||
# Debian 11 Bullseye хосты
|
||||
- name: debian11-web
|
||||
family: debian11
|
||||
groups: [debian, test, web]
|
||||
publish: ["9110:80"]
|
||||
- name: debian11-db
|
||||
family: debian11
|
||||
groups: [debian, test, db]
|
||||
publish: ["9111:80"]
|
||||
- name: debian11-app
|
||||
family: debian11
|
||||
groups: [debian, test, app]
|
||||
publish: ["9112:80"]
|
||||
34
molecule/presets/examples/debian12.yml
Normal file
34
molecule/presets/examples/debian12.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
#description: Пресет для Debian 12 Bookworm
|
||||
# Автор: Сергей Антропов
|
||||
# Сайт: https://devops.org.ru
|
||||
|
||||
docker_network: labnet
|
||||
generated_inventory: "{{ molecule_ephemeral_directory }}/inventory/hosts.ini"
|
||||
|
||||
# systemd-ready образ Debian 12
|
||||
images:
|
||||
debian12: "inecs/ansible-lab:debian12-latest"
|
||||
|
||||
systemd_defaults:
|
||||
privileged: true
|
||||
command: "/sbin/init"
|
||||
volumes:
|
||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||
tmpfs: ["/run", "/run/lock"]
|
||||
capabilities: ["SYS_ADMIN"]
|
||||
|
||||
hosts:
|
||||
# Debian 12 Bookworm хосты
|
||||
- name: debian12-web
|
||||
family: debian12
|
||||
groups: [debian, test, web]
|
||||
publish: ["9120:80"]
|
||||
- name: debian12-db
|
||||
family: debian12
|
||||
groups: [debian, test, db]
|
||||
publish: ["9121:80"]
|
||||
- name: debian12-app
|
||||
family: debian12
|
||||
groups: [debian, test, app]
|
||||
publish: ["9122:80"]
|
||||
34
molecule/presets/examples/debian9.yml
Normal file
34
molecule/presets/examples/debian9.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
#description: Пресет для Debian 9 Stretch
|
||||
# Автор: Сергей Антропов
|
||||
# Сайт: https://devops.org.ru
|
||||
|
||||
docker_network: labnet
|
||||
generated_inventory: "{{ molecule_ephemeral_directory }}/inventory/hosts.ini"
|
||||
|
||||
# systemd-ready образ Debian 9
|
||||
images:
|
||||
debian9: "inecs/ansible-lab:debian9-latest"
|
||||
|
||||
systemd_defaults:
|
||||
privileged: true
|
||||
command: "/sbin/init"
|
||||
volumes:
|
||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||
tmpfs: ["/run", "/run/lock"]
|
||||
capabilities: ["SYS_ADMIN"]
|
||||
|
||||
hosts:
|
||||
# Debian 9 Stretch хосты
|
||||
- name: debian9-web
|
||||
family: debian9
|
||||
groups: [debian, test, web]
|
||||
publish: ["9090:80"]
|
||||
- name: debian9-db
|
||||
family: debian9
|
||||
groups: [debian, test, db]
|
||||
publish: ["9091:80"]
|
||||
- name: debian9-app
|
||||
family: debian9
|
||||
groups: [debian, test, app]
|
||||
publish: ["9092:80"]
|
||||
58
molecule/presets/examples/docker-full.yml
Normal file
58
molecule/presets/examples/docker-full.yml
Normal file
@@ -0,0 +1,58 @@
|
||||
---
|
||||
#description: Полный пресет с Docker функциональностью (DinD + DOoD)
|
||||
# Автор: Сергей Антропов
|
||||
# Сайт: https://devops.org.ru
|
||||
|
||||
docker_network: labnet
|
||||
generated_inventory: "{{ molecule_ephemeral_directory }}/inventory/hosts.ini"
|
||||
|
||||
# systemd-ready образы
|
||||
images:
|
||||
alt: "inecs/ansible-lab:alt-linux-latest"
|
||||
astra: "inecs/ansible-lab:astra-linux-latest"
|
||||
rhel: "inecs/ansible-lab:rhel-latest"
|
||||
centos7: "inecs/ansible-lab:centos7-latest"
|
||||
centos8: "inecs/ansible-lab:centos8-latest"
|
||||
centos9: "inecs/ansible-lab:centos9-latest"
|
||||
alma: "inecs/ansible-lab:alma-latest"
|
||||
rocky: "inecs/ansible-lab:rocky-latest"
|
||||
redos: "inecs/ansible-lab:redos-latest"
|
||||
ubuntu20: "inecs/ansible-lab:ubuntu20-latest"
|
||||
ubuntu22: "inecs/ansible-lab:ubuntu22-latest"
|
||||
ubuntu24: "inecs/ansible-lab:ubuntu24-latest"
|
||||
debian9: "inecs/ansible-lab:debian9-latest"
|
||||
debian10: "inecs/ansible-lab:debian10-latest"
|
||||
debian11: "inecs/ansible-lab:debian11-latest"
|
||||
debian12: "inecs/ansible-lab:debian12-latest"
|
||||
|
||||
systemd_defaults:
|
||||
privileged: true
|
||||
command: "/sbin/init"
|
||||
volumes:
|
||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||
tmpfs: ["/run", "/run/lock"]
|
||||
capabilities: ["SYS_ADMIN"]
|
||||
|
||||
hosts:
|
||||
# Базовые хосты (стабильные ОС)
|
||||
- name: u1
|
||||
family: ubuntu22
|
||||
groups: [test, web]
|
||||
- name: u2
|
||||
family: debian12
|
||||
groups: [test, web]
|
||||
|
||||
# DinD узел (Docker-in-Docker)
|
||||
- name: docker1
|
||||
type: dind
|
||||
groups: [docker]
|
||||
publish: ["8080:8080"]
|
||||
|
||||
# DOoD узел (Docker-out-of-Docker)
|
||||
- name: dood1
|
||||
type: dood
|
||||
family: ubuntu22
|
||||
groups: [dood]
|
||||
publish: ["8081:8081"]
|
||||
env:
|
||||
DOCKER_HOST: unix:///var/run/docker.sock
|
||||
58
molecule/presets/examples/docker-test.yml
Normal file
58
molecule/presets/examples/docker-test.yml
Normal file
@@ -0,0 +1,58 @@
|
||||
---
|
||||
#description: Пресет с Docker контейнерами (DinD + DOoD) для тестирования Docker-задач
|
||||
# Автор: Сергей Антропов
|
||||
# Сайт: https://devops.org.ru
|
||||
|
||||
docker_network: labnet
|
||||
generated_inventory: "{{ molecule_ephemeral_directory }}/inventory/hosts.ini"
|
||||
|
||||
# systemd-ready образы
|
||||
images:
|
||||
alt: "inecs/ansible-lab:alt-linux-latest"
|
||||
astra: "inecs/ansible-lab:astra-linux-latest"
|
||||
rhel: "inecs/ansible-lab:rhel-latest"
|
||||
centos7: "inecs/ansible-lab:centos7-latest"
|
||||
centos8: "inecs/ansible-lab:centos8-latest"
|
||||
centos9: "inecs/ansible-lab:centos9-latest"
|
||||
alma: "inecs/ansible-lab:alma-latest"
|
||||
rocky: "inecs/ansible-lab:rocky-latest"
|
||||
redos: "inecs/ansible-lab:redos-latest"
|
||||
ubuntu20: "inecs/ansible-lab:ubuntu20-latest"
|
||||
ubuntu22: "inecs/ansible-lab:ubuntu22-latest"
|
||||
ubuntu24: "inecs/ansible-lab:ubuntu24-latest"
|
||||
debian9: "inecs/ansible-lab:debian9-latest"
|
||||
debian10: "inecs/ansible-lab:debian10-latest"
|
||||
debian11: "inecs/ansible-lab:debian11-latest"
|
||||
debian12: "inecs/ansible-lab:debian12-latest"
|
||||
|
||||
systemd_defaults:
|
||||
privileged: true
|
||||
command: "/sbin/init"
|
||||
volumes:
|
||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||
tmpfs: ["/run", "/run/lock"]
|
||||
capabilities: ["SYS_ADMIN"]
|
||||
|
||||
hosts:
|
||||
# Тестовые хосты
|
||||
- name: test1
|
||||
family: debian12
|
||||
groups: [test]
|
||||
- name: test2
|
||||
family: rhel
|
||||
groups: [test]
|
||||
|
||||
# DinD узел (Docker-in-Docker)
|
||||
- name: docker1
|
||||
type: dind
|
||||
groups: [docker]
|
||||
publish: ["8080:8080"]
|
||||
|
||||
# DOoD узел (Docker-out-of-Docker)
|
||||
- name: dood1
|
||||
type: dood
|
||||
family: debian12
|
||||
groups: [dood]
|
||||
publish: ["8081:8081"]
|
||||
env:
|
||||
DOCKER_HOST: unix:///var/run/docker.sock
|
||||
76
molecule/presets/examples/etcd-patroni.yml
Normal file
76
molecule/presets/examples/etcd-patroni.yml
Normal file
@@ -0,0 +1,76 @@
|
||||
---
|
||||
#description: Пресет для тестирования кластера etcd + PostgreSQL + Patroni (9 хостов)
|
||||
# Автор: Сергей Антропов
|
||||
# Сайт: https://devops.org.ru
|
||||
|
||||
docker_network: labnet
|
||||
generated_inventory: "{{ molecule_ephemeral_directory }}/inventory/hosts.ini"
|
||||
|
||||
# systemd-ready образы
|
||||
images:
|
||||
alt: "inecs/ansible-lab:alt-linux-latest"
|
||||
astra: "inecs/ansible-lab:astra-linux-latest"
|
||||
rhel: "inecs/ansible-lab:rhel-latest"
|
||||
centos7: "inecs/ansible-lab:centos7-latest"
|
||||
centos8: "inecs/ansible-lab:centos8-latest"
|
||||
centos9: "inecs/ansible-lab:centos9-latest"
|
||||
alma: "inecs/ansible-lab:alma-latest"
|
||||
rocky: "inecs/ansible-lab:rocky-latest"
|
||||
redos: "inecs/ansible-lab:redos-latest"
|
||||
ubuntu20: "inecs/ansible-lab:ubuntu20-latest"
|
||||
ubuntu22: "inecs/ansible-lab:ubuntu22-latest"
|
||||
ubuntu24: "inecs/ansible-lab:ubuntu24-latest"
|
||||
debian9: "inecs/ansible-lab:debian9-latest"
|
||||
debian10: "inecs/ansible-lab:debian10-latest"
|
||||
debian11: "inecs/ansible-lab:debian11-latest"
|
||||
debian12: "inecs/ansible-lab:debian12-latest"
|
||||
|
||||
systemd_defaults:
|
||||
privileged: true
|
||||
command: "/sbin/init"
|
||||
volumes:
|
||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||
tmpfs: ["/run", "/run/lock"]
|
||||
capabilities: ["SYS_ADMIN"]
|
||||
|
||||
# Описание кластера etcd + Patroni + HAProxy
|
||||
hosts:
|
||||
# ETCD кластер (5 узлов для высокой доступности)
|
||||
- name: etcd1
|
||||
family: debian12
|
||||
groups: [etcd, cluster]
|
||||
- name: etcd2
|
||||
family: rhel
|
||||
groups: [etcd, cluster]
|
||||
- name: etcd3
|
||||
family: debian12
|
||||
groups: [etcd, cluster]
|
||||
- name: etcd4
|
||||
family: rhel
|
||||
groups: [etcd, cluster]
|
||||
- name: etcd5
|
||||
family: debian12
|
||||
groups: [etcd, cluster]
|
||||
|
||||
# Patroni кластер (3 узла PostgreSQL)
|
||||
- name: patroni1
|
||||
family: rhel
|
||||
groups: [patroni, database, cluster]
|
||||
- name: patroni2
|
||||
family: debian12
|
||||
groups: [patroni, database, cluster]
|
||||
- name: patroni3
|
||||
family: rhel
|
||||
groups: [patroni, database, cluster]
|
||||
|
||||
# HAProxy для балансировки
|
||||
- name: haproxy
|
||||
family: debian12
|
||||
groups: [haproxy, loadbalancer]
|
||||
publish: ["5000:5000", "5001:5001"] # RW и RO порты
|
||||
|
||||
# DinD узел для тестирования Docker Compose внутри
|
||||
- name: app-dind
|
||||
type: dind
|
||||
groups: [apps, docker]
|
||||
publish: ["8080:8080"]
|
||||
44
molecule/presets/examples/minimal.yml
Normal file
44
molecule/presets/examples/minimal.yml
Normal file
@@ -0,0 +1,44 @@
|
||||
---
|
||||
#description: Минимальный пресет для быстрого тестирования с 1 хостом (Debian)
|
||||
# Автор: Сергей Антропов
|
||||
# Сайт: https://devops.org.ru
|
||||
|
||||
docker_network: labnet
|
||||
generated_inventory: "{{ molecule_ephemeral_directory }}/inventory/hosts.ini"
|
||||
|
||||
# systemd-ready образы
|
||||
images:
|
||||
alt: "inecs/ansible-lab:alt-linux-latest"
|
||||
astra: "inecs/ansible-lab:astra-linux-latest"
|
||||
rhel: "inecs/ansible-lab:rhel-latest"
|
||||
centos7: "inecs/ansible-lab:centos7-latest"
|
||||
centos8: "inecs/ansible-lab:centos8-latest"
|
||||
centos9: "inecs/ansible-lab:centos9-latest"
|
||||
alma: "inecs/ansible-lab:alma-latest"
|
||||
rocky: "inecs/ansible-lab:rocky-latest"
|
||||
redos: "inecs/ansible-lab:redos-latest"
|
||||
ubuntu20: "inecs/ansible-lab:ubuntu20-latest"
|
||||
ubuntu22: "inecs/ansible-lab:ubuntu22-latest"
|
||||
ubuntu24: "inecs/ansible-lab:ubuntu24-latest"
|
||||
debian9: "inecs/ansible-lab:debian9-latest"
|
||||
debian10: "inecs/ansible-lab:debian10-latest"
|
||||
debian11: "inecs/ansible-lab:debian11-latest"
|
||||
debian12: "inecs/ansible-lab:debian12-latest"
|
||||
|
||||
systemd_defaults:
|
||||
privileged: true
|
||||
command: "/sbin/init"
|
||||
volumes:
|
||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||
tmpfs: ["/run", "/run/lock"]
|
||||
capabilities: ["SYS_ADMIN"]
|
||||
|
||||
hosts:
|
||||
# Минимальный набор - один хост
|
||||
- name: u1
|
||||
family: astra
|
||||
groups: [test]
|
||||
supported_platforms: ["linux/amd64"] # Только amd64
|
||||
- name: u2
|
||||
family: alt
|
||||
groups: [test]
|
||||
84
molecule/presets/examples/multi-os.yml
Normal file
84
molecule/presets/examples/multi-os.yml
Normal file
@@ -0,0 +1,84 @@
|
||||
---
|
||||
#description: Пресет для тестирования на разных ОС с 12 хостами (Debian + RHEL)
|
||||
# Автор: Сергей Антропов
|
||||
# Сайт: https://devops.org.ru
|
||||
|
||||
docker_network: labnet
|
||||
generated_inventory: "{{ molecule_ephemeral_directory }}/inventory/hosts.ini"
|
||||
|
||||
# systemd-ready образы для разных ОС
|
||||
images:
|
||||
alt: "inecs/ansible-lab:alt-linux-latest"
|
||||
astra: "inecs/ansible-lab:astra-linux-latest"
|
||||
rhel: "inecs/ansible-lab:rhel-latest"
|
||||
centos7: "inecs/ansible-lab:centos7-latest"
|
||||
centos8: "inecs/ansible-lab:centos8-latest"
|
||||
centos9: "inecs/ansible-lab:centos9-latest"
|
||||
alma: "inecs/ansible-lab:alma-latest"
|
||||
rocky: "inecs/ansible-lab:rocky-latest"
|
||||
redos: "inecs/ansible-lab:redos-latest"
|
||||
ubuntu20: "inecs/ansible-lab:ubuntu20-latest"
|
||||
ubuntu22: "inecs/ansible-lab:ubuntu22-latest"
|
||||
ubuntu24: "inecs/ansible-lab:ubuntu24-latest"
|
||||
debian9: "inecs/ansible-lab:debian9-latest"
|
||||
debian10: "inecs/ansible-lab:debian10-latest"
|
||||
debian11: "inecs/ansible-lab:debian11-latest"
|
||||
debian12: "inecs/ansible-lab:debian12-latest"
|
||||
|
||||
systemd_defaults:
|
||||
privileged: true
|
||||
command: "/sbin/init"
|
||||
volumes:
|
||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||
tmpfs: ["/run", "/run/lock"]
|
||||
capabilities: ["SYS_ADMIN"]
|
||||
|
||||
# Описание кластера с разными ОС
|
||||
hosts:
|
||||
# Debian серверы
|
||||
- name: debian1
|
||||
family: debian12
|
||||
groups: [debian, servers, web]
|
||||
- name: debian2
|
||||
family: debian12
|
||||
groups: [debian, servers, web]
|
||||
- name: debian3
|
||||
family: debian12
|
||||
groups: [debian, servers, app]
|
||||
- name: debian4
|
||||
family: debian12
|
||||
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: debian12
|
||||
groups: [database, debian, db]
|
||||
- name: db-rhel
|
||||
family: rhel
|
||||
groups: [database, rhel, db]
|
||||
|
||||
# Load balancer
|
||||
- name: lb-mixed
|
||||
family: debian12
|
||||
groups: [loadbalancer, haproxy]
|
||||
publish: ["80:80", "443:443"]
|
||||
|
||||
# DinD узел для тестирования Docker
|
||||
- name: docker-mixed
|
||||
type: dind
|
||||
groups: [docker, apps]
|
||||
publish: ["8080:8080"]
|
||||
87
molecule/presets/examples/performance.yml
Normal file
87
molecule/presets/examples/performance.yml
Normal file
@@ -0,0 +1,87 @@
|
||||
---
|
||||
#description: Пресет для нагрузочного тестирования с 12 хостами (серверы + БД + кэш)
|
||||
# Автор: Сергей Антропов
|
||||
# Сайт: https://devops.org.ru
|
||||
|
||||
docker_network: labnet
|
||||
generated_inventory: "{{ molecule_ephemeral_directory }}/inventory/hosts.ini"
|
||||
|
||||
# systemd-ready образы
|
||||
images:
|
||||
alt: "inecs/ansible-lab:alt-linux-latest"
|
||||
astra: "inecs/ansible-lab:astra-linux-latest"
|
||||
rhel: "inecs/ansible-lab:rhel-latest"
|
||||
centos7: "inecs/ansible-lab:centos7-latest"
|
||||
centos8: "inecs/ansible-lab:centos8-latest"
|
||||
centos9: "inecs/ansible-lab:centos9-latest"
|
||||
alma: "inecs/ansible-lab:alma-latest"
|
||||
rocky: "inecs/ansible-lab:rocky-latest"
|
||||
redos: "inecs/ansible-lab:redos-latest"
|
||||
ubuntu20: "inecs/ansible-lab:ubuntu20-latest"
|
||||
ubuntu22: "inecs/ansible-lab:ubuntu22-latest"
|
||||
ubuntu24: "inecs/ansible-lab:ubuntu24-latest"
|
||||
debian9: "inecs/ansible-lab:debian9-latest"
|
||||
debian10: "inecs/ansible-lab:debian10-latest"
|
||||
debian11: "inecs/ansible-lab:debian11-latest"
|
||||
debian12: "inecs/ansible-lab:debian12-latest"
|
||||
|
||||
systemd_defaults:
|
||||
privileged: true
|
||||
command: "/sbin/init"
|
||||
volumes:
|
||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||
tmpfs: ["/run", "/run/lock"]
|
||||
capabilities: ["SYS_ADMIN"]
|
||||
|
||||
# Описание кластера для нагрузочного тестирования
|
||||
hosts:
|
||||
# Основные серверы (5 узлов)
|
||||
- name: server1
|
||||
family: debian12
|
||||
groups: [servers, web, app]
|
||||
- name: server2
|
||||
family: rhel
|
||||
groups: [servers, web, app]
|
||||
- name: server3
|
||||
family: debian12
|
||||
groups: [servers, web, app]
|
||||
- name: server4
|
||||
family: rhel
|
||||
groups: [servers, web, app]
|
||||
- name: server5
|
||||
family: debian12
|
||||
groups: [servers, web, app]
|
||||
|
||||
# База данных (3 узла)
|
||||
- name: db1
|
||||
family: rhel
|
||||
groups: [database, db]
|
||||
- name: db2
|
||||
family: debian12
|
||||
groups: [database, db]
|
||||
- name: db3
|
||||
family: rhel
|
||||
groups: [database, db]
|
||||
|
||||
# Кэш (3 узла Redis)
|
||||
- name: cache1
|
||||
family: debian12
|
||||
groups: [cache, redis]
|
||||
- name: cache2
|
||||
family: rhel
|
||||
groups: [cache, redis]
|
||||
- name: cache3
|
||||
family: debian12
|
||||
groups: [cache, redis]
|
||||
|
||||
# Load balancer
|
||||
- name: lb1
|
||||
family: rhel
|
||||
groups: [loadbalancer, haproxy]
|
||||
publish: ["80:80", "443:443"]
|
||||
|
||||
# DinD узел для тестирования Docker Compose
|
||||
- name: compose-dind
|
||||
type: dind
|
||||
groups: [apps, docker]
|
||||
publish: ["8080:8080", "8081:8081"]
|
||||
90
molecule/presets/examples/security.yml
Normal file
90
molecule/presets/examples/security.yml
Normal file
@@ -0,0 +1,90 @@
|
||||
---
|
||||
#description: Пресет для тестирования безопасности с 10 хостами (bastion + internal + monitoring)
|
||||
# Автор: Сергей Антропов
|
||||
# Сайт: https://devops.org.ru
|
||||
|
||||
docker_network: labnet
|
||||
generated_inventory: "{{ molecule_ephemeral_directory }}/inventory/hosts.ini"
|
||||
|
||||
# systemd-ready образы
|
||||
images:
|
||||
alt: "inecs/ansible-lab:alt-linux-latest"
|
||||
astra: "inecs/ansible-lab:astra-linux-latest"
|
||||
rhel: "inecs/ansible-lab:rhel-latest"
|
||||
centos7: "inecs/ansible-lab:centos7-latest"
|
||||
centos8: "inecs/ansible-lab:centos8-latest"
|
||||
centos9: "inecs/ansible-lab:centos9-latest"
|
||||
alma: "inecs/ansible-lab:alma-latest"
|
||||
rocky: "inecs/ansible-lab:rocky-latest"
|
||||
redos: "inecs/ansible-lab:redos-latest"
|
||||
ubuntu20: "inecs/ansible-lab:ubuntu20-latest"
|
||||
ubuntu22: "inecs/ansible-lab:ubuntu22-latest"
|
||||
ubuntu24: "inecs/ansible-lab:ubuntu24-latest"
|
||||
debian9: "inecs/ansible-lab:debian9-latest"
|
||||
debian10: "inecs/ansible-lab:debian10-latest"
|
||||
debian11: "inecs/ansible-lab:debian11-latest"
|
||||
debian12: "inecs/ansible-lab:debian12-latest"
|
||||
|
||||
systemd_defaults:
|
||||
privileged: true
|
||||
command: "/sbin/init"
|
||||
volumes:
|
||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||
tmpfs: ["/run", "/run/lock"]
|
||||
capabilities: ["SYS_ADMIN"]
|
||||
|
||||
# Описание кластера для тестирования безопасности
|
||||
hosts:
|
||||
# Bastion хосты (точки входа)
|
||||
- name: bastion1
|
||||
family: rhel
|
||||
groups: [bastion, security, jump]
|
||||
publish: ["2222:22"]
|
||||
- name: bastion2
|
||||
family: debian12
|
||||
groups: [bastion, security, jump]
|
||||
publish: ["2223:22"]
|
||||
|
||||
# Внутренние серверы (без внешнего доступа)
|
||||
- name: internal1
|
||||
family: rhel
|
||||
groups: [internal, servers, app]
|
||||
- name: internal2
|
||||
family: debian12
|
||||
groups: [internal, servers, app]
|
||||
- name: internal3
|
||||
family: rhel
|
||||
groups: [internal, servers, app]
|
||||
|
||||
# База данных (изолированная сеть)
|
||||
- name: db-secure1
|
||||
family: rhel
|
||||
groups: [database, secure, internal]
|
||||
- name: db-secure2
|
||||
family: debian12
|
||||
groups: [database, secure, internal]
|
||||
|
||||
# Мониторинг и логирование
|
||||
- name: monitor1
|
||||
family: debian12
|
||||
groups: [monitoring, security, logs]
|
||||
- name: monitor2
|
||||
family: rhel
|
||||
groups: [monitoring, security, logs]
|
||||
|
||||
# Firewall и сетевые компоненты
|
||||
- name: fw1
|
||||
family: rhel
|
||||
groups: [firewall, network, security]
|
||||
- name: fw2
|
||||
family: debian12
|
||||
groups: [firewall, network, security]
|
||||
|
||||
# DOoD узел для тестирования Docker безопасности
|
||||
- name: docker-secure
|
||||
type: dood
|
||||
family: debian12
|
||||
groups: [docker, security, apps]
|
||||
publish: ["8080:8080"]
|
||||
env:
|
||||
DOCKER_HOST: "unix:///var/run/docker.sock"
|
||||
43
molecule/presets/examples/stable.yml
Normal file
43
molecule/presets/examples/stable.yml
Normal file
@@ -0,0 +1,43 @@
|
||||
---
|
||||
#description: Стабильный пресет для тестирования с Ubuntu и Debian (проверенные ОС)
|
||||
# Автор: Сергей Антропов
|
||||
# Сайт: https://devops.org.ru
|
||||
|
||||
docker_network: labnet
|
||||
generated_inventory: "{{ molecule_ephemeral_directory }}/inventory/hosts.ini"
|
||||
|
||||
# systemd-ready образы
|
||||
images:
|
||||
alt: "inecs/ansible-lab:alt-linux-latest"
|
||||
astra: "inecs/ansible-lab:astra-linux-latest"
|
||||
rhel: "inecs/ansible-lab:rhel-latest"
|
||||
centos7: "inecs/ansible-lab:centos7-latest"
|
||||
centos8: "inecs/ansible-lab:centos8-latest"
|
||||
centos9: "inecs/ansible-lab:centos9-latest"
|
||||
alma: "inecs/ansible-lab:alma-latest"
|
||||
rocky: "inecs/ansible-lab:rocky-latest"
|
||||
redos: "inecs/ansible-lab:redos-latest"
|
||||
ubuntu20: "inecs/ansible-lab:ubuntu20-latest"
|
||||
ubuntu22: "inecs/ansible-lab:ubuntu22-latest"
|
||||
ubuntu24: "inecs/ansible-lab:ubuntu24-latest"
|
||||
debian9: "inecs/ansible-lab:debian9-latest"
|
||||
debian10: "inecs/ansible-lab:debian10-latest"
|
||||
debian11: "inecs/ansible-lab:debian11-latest"
|
||||
debian12: "inecs/ansible-lab:debian12-latest"
|
||||
|
||||
systemd_defaults:
|
||||
privileged: true
|
||||
command: "/sbin/init"
|
||||
volumes:
|
||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||
tmpfs: ["/run", "/run/lock"]
|
||||
capabilities: ["SYS_ADMIN"]
|
||||
|
||||
hosts:
|
||||
# Стабильные ОС для надежного тестирования
|
||||
- name: u1
|
||||
family: ubuntu22
|
||||
groups: [test, web]
|
||||
- name: u2
|
||||
family: debian12
|
||||
groups: [test, web]
|
||||
46
molecule/presets/examples/standart.yml
Normal file
46
molecule/presets/examples/standart.yml
Normal file
@@ -0,0 +1,46 @@
|
||||
---
|
||||
#description: Стандартный пресет для тестирования с 3 хостами (Debian + RHEL)
|
||||
# Автор: Сергей Антропов
|
||||
# Сайт: https://devops.org.ru
|
||||
|
||||
docker_network: labnet
|
||||
generated_inventory: "{{ molecule_ephemeral_directory }}/inventory/hosts.ini"
|
||||
|
||||
# systemd-ready образы
|
||||
images:
|
||||
alt: "inecs/ansible-lab:alt-linux-latest"
|
||||
astra: "inecs/ansible-lab:astra-linux-latest"
|
||||
rhel: "inecs/ansible-lab:rhel-latest"
|
||||
centos7: "inecs/ansible-lab:centos7-latest"
|
||||
centos8: "inecs/ansible-lab:centos8-latest"
|
||||
centos9: "inecs/ansible-lab:centos9-latest"
|
||||
alma: "inecs/ansible-lab:alma-latest"
|
||||
rocky: "inecs/ansible-lab:rocky-latest"
|
||||
redos: "inecs/ansible-lab:redos-latest"
|
||||
ubuntu20: "inecs/ansible-lab:ubuntu20-latest"
|
||||
ubuntu22: "inecs/ansible-lab:ubuntu22-latest"
|
||||
ubuntu24: "inecs/ansible-lab:ubuntu24-latest"
|
||||
debian9: "inecs/ansible-lab:debian9-latest"
|
||||
debian10: "inecs/ansible-lab:debian10-latest"
|
||||
debian11: "inecs/ansible-lab:debian11-latest"
|
||||
debian12: "inecs/ansible-lab:debian12-latest"
|
||||
|
||||
systemd_defaults:
|
||||
privileged: true
|
||||
command: "/sbin/init"
|
||||
volumes:
|
||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||
tmpfs: ["/run", "/run/lock"]
|
||||
capabilities: ["SYS_ADMIN"]
|
||||
|
||||
hosts:
|
||||
# Стандартный набор - 3 хоста
|
||||
- name: u1
|
||||
family: debian12
|
||||
groups: [test]
|
||||
- name: u2
|
||||
family: rhel
|
||||
groups: [test]
|
||||
- name: u3
|
||||
family: debian12
|
||||
groups: [test]
|
||||
40
molecule/presets/examples/test.yml
Normal file
40
molecule/presets/examples/test.yml
Normal file
@@ -0,0 +1,40 @@
|
||||
---
|
||||
#description: Минимальный пресет для быстрого тестирования с 1 хостом (Debian)
|
||||
# Автор: Сергей Антропов
|
||||
# Сайт: https://devops.org.ru
|
||||
|
||||
docker_network: labnet
|
||||
generated_inventory: "{{ molecule_ephemeral_directory }}/inventory/hosts.ini"
|
||||
|
||||
# systemd-ready образы
|
||||
images:
|
||||
alt: "inecs/ansible-lab:alt-linux-latest"
|
||||
astra: "inecs/ansible-lab:astra-linux-latest"
|
||||
rhel: "inecs/ansible-lab:rhel-latest"
|
||||
centos7: "inecs/ansible-lab:centos7-latest"
|
||||
centos8: "inecs/ansible-lab:centos8-latest"
|
||||
centos9: "inecs/ansible-lab:centos9-latest"
|
||||
alma: "inecs/ansible-lab:alma-latest"
|
||||
rocky: "inecs/ansible-lab:rocky-latest"
|
||||
redos: "inecs/ansible-lab:redos-latest"
|
||||
ubuntu20: "inecs/ansible-lab:ubuntu20-latest"
|
||||
ubuntu22: "inecs/ansible-lab:ubuntu22-latest"
|
||||
ubuntu24: "inecs/ansible-lab:ubuntu24-latest"
|
||||
debian9: "inecs/ansible-lab:debian9-latest"
|
||||
debian10: "inecs/ansible-lab:debian10-latest"
|
||||
debian11: "inecs/ansible-lab:debian11-latest"
|
||||
debian12: "inecs/ansible-lab:debian12-latest"
|
||||
|
||||
systemd_defaults:
|
||||
privileged: true
|
||||
command: "/sbin/init"
|
||||
volumes:
|
||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||
tmpfs: ["/run", "/run/lock"]
|
||||
capabilities: ["SYS_ADMIN"]
|
||||
|
||||
hosts:
|
||||
# Минимальный набор - один хост
|
||||
- name: u1
|
||||
family: debian12
|
||||
groups: [test]
|
||||
52
molecule/presets/examples/ubuntu-all.yml
Normal file
52
molecule/presets/examples/ubuntu-all.yml
Normal file
@@ -0,0 +1,52 @@
|
||||
---
|
||||
#description: Пресет со всеми версиями Ubuntu (20.04, 22.04, 24.04)
|
||||
# Автор: Сергей Антропов
|
||||
# Сайт: https://devops.org.ru
|
||||
|
||||
docker_network: labnet
|
||||
generated_inventory: "{{ molecule_ephemeral_directory }}/inventory/hosts.ini"
|
||||
|
||||
# systemd-ready образы Ubuntu
|
||||
images:
|
||||
ubuntu20: "inecs/ansible-lab:ubuntu20-latest"
|
||||
ubuntu22: "inecs/ansible-lab:ubuntu22-latest"
|
||||
ubuntu24: "inecs/ansible-lab:ubuntu24-latest"
|
||||
|
||||
systemd_defaults:
|
||||
privileged: true
|
||||
command: "/sbin/init"
|
||||
volumes:
|
||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||
tmpfs: ["/run", "/run/lock"]
|
||||
capabilities: ["SYS_ADMIN"]
|
||||
|
||||
hosts:
|
||||
# Ubuntu 20.04 LTS
|
||||
- name: ubuntu20-1
|
||||
family: ubuntu20
|
||||
groups: [ubuntu, test, web]
|
||||
publish: ["8020:80"]
|
||||
- name: ubuntu20-2
|
||||
family: ubuntu20
|
||||
groups: [ubuntu, test, db]
|
||||
publish: ["8026:80"]
|
||||
|
||||
# Ubuntu 22.04 LTS
|
||||
- name: ubuntu22-1
|
||||
family: ubuntu22
|
||||
groups: [ubuntu, test, web]
|
||||
publish: ["8022:80"]
|
||||
- name: ubuntu22-2
|
||||
family: ubuntu22
|
||||
groups: [ubuntu, test, db]
|
||||
publish: ["8023:80"]
|
||||
|
||||
# Ubuntu 24.04 LTS
|
||||
- name: ubuntu24-1
|
||||
family: ubuntu24
|
||||
groups: [ubuntu, test, web]
|
||||
publish: ["8024:80"]
|
||||
- name: ubuntu24-2
|
||||
family: ubuntu24
|
||||
groups: [ubuntu, test, db]
|
||||
publish: ["8025:80"]
|
||||
34
molecule/presets/examples/ubuntu20.yml
Normal file
34
molecule/presets/examples/ubuntu20.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
#description: Пресет для Ubuntu 20.04 LTS
|
||||
# Автор: Сергей Антропов
|
||||
# Сайт: https://devops.org.ru
|
||||
|
||||
docker_network: labnet
|
||||
generated_inventory: "{{ molecule_ephemeral_directory }}/inventory/hosts.ini"
|
||||
|
||||
# systemd-ready образ Ubuntu 20.04
|
||||
images:
|
||||
ubuntu20: "inecs/ansible-lab:ubuntu20-latest"
|
||||
|
||||
systemd_defaults:
|
||||
privileged: true
|
||||
command: "/sbin/init"
|
||||
volumes:
|
||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||
tmpfs: ["/run", "/run/lock"]
|
||||
capabilities: ["SYS_ADMIN"]
|
||||
|
||||
hosts:
|
||||
# Ubuntu 20.04 LTS хосты
|
||||
- name: ubuntu20-web
|
||||
family: ubuntu20
|
||||
groups: [ubuntu, test, web]
|
||||
publish: ["8020:80"]
|
||||
- name: ubuntu20-db
|
||||
family: ubuntu20
|
||||
groups: [ubuntu, test, db]
|
||||
publish: ["8021:80"]
|
||||
- name: ubuntu20-app
|
||||
family: ubuntu20
|
||||
groups: [ubuntu, test, app]
|
||||
publish: ["8022:80"]
|
||||
34
molecule/presets/examples/ubuntu22.yml
Normal file
34
molecule/presets/examples/ubuntu22.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
#description: Пресет для Ubuntu 22.04 LTS
|
||||
# Автор: Сергей Антропов
|
||||
# Сайт: https://devops.org.ru
|
||||
|
||||
docker_network: labnet
|
||||
generated_inventory: "{{ molecule_ephemeral_directory }}/inventory/hosts.ini"
|
||||
|
||||
# systemd-ready образ Ubuntu 22.04
|
||||
images:
|
||||
ubuntu22: "inecs/ansible-lab:ubuntu22-latest"
|
||||
|
||||
systemd_defaults:
|
||||
privileged: true
|
||||
command: "/sbin/init"
|
||||
volumes:
|
||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||
tmpfs: ["/run", "/run/lock"]
|
||||
capabilities: ["SYS_ADMIN"]
|
||||
|
||||
hosts:
|
||||
# Ubuntu 22.04 LTS хосты
|
||||
- name: ubuntu22-web
|
||||
family: ubuntu22
|
||||
groups: [ubuntu, test, web]
|
||||
publish: ["8220:80"]
|
||||
- name: ubuntu22-db
|
||||
family: ubuntu22
|
||||
groups: [ubuntu, test, db]
|
||||
publish: ["8221:80"]
|
||||
- name: ubuntu22-app
|
||||
family: ubuntu22
|
||||
groups: [ubuntu, test, app]
|
||||
publish: ["8222:80"]
|
||||
34
molecule/presets/examples/ubuntu24.yml
Normal file
34
molecule/presets/examples/ubuntu24.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
#description: Пресет для Ubuntu 24.04 LTS
|
||||
# Автор: Сергей Антропов
|
||||
# Сайт: https://devops.org.ru
|
||||
|
||||
docker_network: labnet
|
||||
generated_inventory: "{{ molecule_ephemeral_directory }}/inventory/hosts.ini"
|
||||
|
||||
# systemd-ready образ Ubuntu 24.04
|
||||
images:
|
||||
ubuntu24: "inecs/ansible-lab:ubuntu24-latest"
|
||||
|
||||
systemd_defaults:
|
||||
privileged: true
|
||||
command: "/sbin/init"
|
||||
volumes:
|
||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||
tmpfs: ["/run", "/run/lock"]
|
||||
capabilities: ["SYS_ADMIN"]
|
||||
|
||||
hosts:
|
||||
# Ubuntu 24.04 LTS хосты
|
||||
- name: ubuntu24-web
|
||||
family: ubuntu24
|
||||
groups: [ubuntu, test, web]
|
||||
publish: ["8240:80"]
|
||||
- name: ubuntu24-db
|
||||
family: ubuntu24
|
||||
groups: [ubuntu, test, db]
|
||||
publish: ["8241:80"]
|
||||
- name: ubuntu24-app
|
||||
family: ubuntu24
|
||||
groups: [ubuntu, test, app]
|
||||
publish: ["8242:80"]
|
||||
Reference in New Issue
Block a user