Добавлены специализированные пресеты для каждой версии ОС
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
- ubuntu-all.yml: все версии Ubuntu (20.04, 22.04, 24.04) - ubuntu20.yml, ubuntu22.yml, ubuntu24.yml: отдельные пресеты для Ubuntu - debian-all.yml: все версии Debian (9, 10, 11, 12) - debian9.yml, debian10.yml, debian11.yml, debian12.yml: отдельные пресеты для Debian - centos-all.yml: все версии CentOS (7, 8, 9) - centos7.yml, centos8.yml, centos9.yml: отдельные пресеты для CentOS - docs/presets-by-os.md: документация по новым пресетам Каждый пресет использует уникальные порты и группы хостов для изолированного тестирования.
This commit is contained in:
52
molecule/presets/centos-all.yml
Normal file
52
molecule/presets/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/centos7.yml
Normal file
34
molecule/presets/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: ["7007:80"]
|
||||
- name: centos7-db
|
||||
family: centos7
|
||||
groups: [centos, test, db]
|
||||
publish: ["7008:80"]
|
||||
- name: centos7-app
|
||||
family: centos7
|
||||
groups: [centos, test, app]
|
||||
publish: ["7009:80"]
|
||||
34
molecule/presets/centos8.yml
Normal file
34
molecule/presets/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: ["7010:80"]
|
||||
- name: centos8-db
|
||||
family: centos8
|
||||
groups: [centos, test, db]
|
||||
publish: ["7011:80"]
|
||||
- name: centos8-app
|
||||
family: centos8
|
||||
groups: [centos, test, app]
|
||||
publish: ["7012:80"]
|
||||
34
molecule/presets/centos9.yml
Normal file
34
molecule/presets/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: ["7013:80"]
|
||||
- name: centos9-db
|
||||
family: centos9
|
||||
groups: [centos, test, db]
|
||||
publish: ["7014:80"]
|
||||
- name: centos9-app
|
||||
family: centos9
|
||||
groups: [centos, test, app]
|
||||
publish: ["7015:80"]
|
||||
63
molecule/presets/debian-all.yml
Normal file
63
molecule/presets/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/debian10.yml
Normal file
34
molecule/presets/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: ["9012:80"]
|
||||
- name: debian10-db
|
||||
family: debian10
|
||||
groups: [debian, test, db]
|
||||
publish: ["9013:80"]
|
||||
- name: debian10-app
|
||||
family: debian10
|
||||
groups: [debian, test, app]
|
||||
publish: ["9014:80"]
|
||||
34
molecule/presets/debian11.yml
Normal file
34
molecule/presets/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: ["9015:80"]
|
||||
- name: debian11-db
|
||||
family: debian11
|
||||
groups: [debian, test, db]
|
||||
publish: ["9016:80"]
|
||||
- name: debian11-app
|
||||
family: debian11
|
||||
groups: [debian, test, app]
|
||||
publish: ["9017:80"]
|
||||
34
molecule/presets/debian12.yml
Normal file
34
molecule/presets/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: ["9018:80"]
|
||||
- name: debian12-db
|
||||
family: debian12
|
||||
groups: [debian, test, db]
|
||||
publish: ["9019:80"]
|
||||
- name: debian12-app
|
||||
family: debian12
|
||||
groups: [debian, test, app]
|
||||
publish: ["9020:80"]
|
||||
34
molecule/presets/debian9.yml
Normal file
34
molecule/presets/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: ["9009:80"]
|
||||
- name: debian9-db
|
||||
family: debian9
|
||||
groups: [debian, test, db]
|
||||
publish: ["9010:80"]
|
||||
- name: debian9-app
|
||||
family: debian9
|
||||
groups: [debian, test, app]
|
||||
publish: ["9011:80"]
|
||||
52
molecule/presets/ubuntu-all.yml
Normal file
52
molecule/presets/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: ["8021: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/ubuntu20.yml
Normal file
34
molecule/presets/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/ubuntu22.yml
Normal file
34
molecule/presets/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: ["8022:80"]
|
||||
- name: ubuntu22-db
|
||||
family: ubuntu22
|
||||
groups: [ubuntu, test, db]
|
||||
publish: ["8023:80"]
|
||||
- name: ubuntu22-app
|
||||
family: ubuntu22
|
||||
groups: [ubuntu, test, app]
|
||||
publish: ["8024:80"]
|
||||
34
molecule/presets/ubuntu24.yml
Normal file
34
molecule/presets/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: ["8024:80"]
|
||||
- name: ubuntu24-db
|
||||
family: ubuntu24
|
||||
groups: [ubuntu, test, db]
|
||||
publish: ["8025:80"]
|
||||
- name: ubuntu24-app
|
||||
family: ubuntu24
|
||||
groups: [ubuntu, test, app]
|
||||
publish: ["8026:80"]
|
||||
Reference in New Issue
Block a user