feat: add debian 12 support

This commit is contained in:
Adrien Waksberg 2023-06-30 11:03:50 +02:00
parent 5bdf234863
commit 02016bdaac
6 changed files with 50 additions and 16 deletions

View file

@ -5,12 +5,21 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
## [Unreleased] ## [Unreleased]
### Added
- support debian 11 and 12
### Removed
- support debian 10
### Changed ### Changed
- test: replace kitchen to molecule - test: replace kitchen to molecule
- feat: use label in loop_control - feat: use label in loop_control
## v1.3.0 (2020-02-12) ## v1.3.0 (2020-02-12)
- feat: add support debian 10 - feat: add support debian 10
- break: change with_items to loop - break: change with_items to loop
- break: remove support ansible < 2.7 - break: remove support ansible < 2.7
@ -18,18 +27,23 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
- test: add ansible-lint - test: add ansible-lint
## v1.2.2 (2018-09-07) ## v1.2.2 (2018-09-07)
- fix: remove a bug in dnssec cron - fix: remove a bug in dnssec cron
## v1.2.1 (2018-08-08) ## v1.2.1 (2018-08-08)
- fix: add dnssec cron - fix: add dnssec cron
## v1.2.0 (2018-07-09) ## v1.2.0 (2018-07-09)
- feat: add bind_zones_subnet for extra-vars - feat: add bind_zones_subnet for extra-vars
- fix: disable allow transfer if isn't set - fix: disable allow transfer if isn't set
## v1.1.0 (2018-03-31) ## v1.1.0 (2018-03-31)
- feat: remove old zone files - feat: remove old zone files
- feat: test the playbook with ansible 2.5 - feat: test the playbook with ansible 2.5
## v1.0.0 (2018-03-21) ## v1.0.0 (2018-03-21)
- first version - first version

View file

@ -7,9 +7,11 @@ Install and configure bind with dnssec
## Requirements ## Requirements
* Ansible >= 2.7 * Ansible >= 2.9
* bind version >= 9.8 * bind version >= 9.8
* Debian Stretch and Buster * Debian
* Bullseye
* Bookworm
## Role variables ## Role variables

View file

@ -1,16 +1,18 @@
--- ---
galaxy_info: galaxy_info:
role_name: bind
namespace: nishiki
author: Adrien Waksberg author: Adrien Waksberg
company: Adrien Waksberg company: Adrien Waksberg
description: Install and configure bind9 with dnssec description: Install and configure bind9 with dnssec
license: Apache2 license: Apache2
min_ansible_version: 2.7 min_ansible_version: "2.9"
platforms: platforms:
- name: Debian - name: Debian
versions: versions:
- stretch - bullseye
- buster - bookworm
galaxy_tags: galaxy_tags:
- bind - bind

View file

@ -179,6 +179,12 @@
priority: 20 priority: 20
value: mail.test.local. value: mail.test.local.
tasks: pre_tasks:
- apt: - name: Update apt cache
name: dnsutils ansible.builtin.apt:
update_cache: true
- name: Install dnsutils for the tests
ansible.builtin.package:
name:
- dnsutils

View file

@ -2,16 +2,30 @@
driver: driver:
name: docker name: docker
platforms: platforms:
- name: debian10 - name: debian12
image: nishiki/debian10:molecule image: nishiki/debian12:molecule
privileged: true privileged: true
volumes: volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro - /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
command: /bin/systemd command: /bin/systemd
capabilities: capabilities:
- SYS_ADMIN - SYS_ADMIN
- name: debian11
image: nishiki/debian11:molecule
privileged: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
command: /bin/systemd
capabilities:
- SYS_ADMIN
lint: |
set -e
yamllint .
ansible-lint .
verifier: verifier:
name: testinfra name: testinfra
provisioner: provisioner:
options: options:
vault-password-file: vault vault-password-file: molecule/default/vault

View file

@ -3,10 +3,6 @@
options { options {
directory "/var/cache/bind"; directory "/var/cache/bind";
dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;
auth-nxdomain no; # conform to RFC1035 auth-nxdomain no; # conform to RFC1035
listen-on { {% if bind_listen_ipv4 %}any{% else %}none{% endif %}; }; listen-on { {% if bind_listen_ipv4 %}any{% else %}none{% endif %}; };
listen-on-v6 { {% if bind_listen_ipv6 %}any{% else %}none{% endif %}; }; listen-on-v6 { {% if bind_listen_ipv6 %}any{% else %}none{% endif %}; };