Commit Graph

67 Commits

Author SHA1 Message Date
Daniel Akulenok
7388e4eaaf Merge branch 'main' of ssh://git.valid.dk:2222/daniel/ansible-bind9-role 2026-01-31 21:29:19 +01:00
Daniel Akulenok
f6eee76e05 fix: ensure no change detection for bind9 configuration files
All checks were successful
Test / Lint (push) Successful in 12s
Test / Test (push) Has been skipped
2026-01-28 23:37:37 +01:00
0fede04e19 Merge pull request 'feature/forwarders-port-tls-support' (#3) from feature/forwarders-port-tls-support into main
All checks were successful
Test / Lint (push) Successful in 13s
Test / Test (push) Has been skipped
Reviewed-on: #3
2026-01-28 22:29:11 +00:00
Daniel Akulenok
5f4bb3ccda feat: add podman installation step in CI workflow
Some checks failed
Test / Lint (pull_request) Successful in 12s
Test / Test (push) Has been skipped
Test / Test (pull_request) Failing after 21s
Test / Lint (push) Successful in 13s
2026-01-28 23:27:46 +01:00
Daniel Akulenok
4cb9cb3e3f fix: add noqa comments for linting in workflow and role inclusion
Some checks failed
Test / Lint (push) Successful in 13s
Test / Lint (pull_request) Successful in 13s
Test / Test (push) Has been skipped
Test / Test (pull_request) Failing after 37s
2026-01-28 23:25:35 +01:00
Daniel Akulenok
45d9861960 refactor: remove unnecessary tags from backup removal task
Some checks failed
Test / Lint (push) Failing after 12s
Test / Lint (pull_request) Failing after 12s
Test / Test (push) Has been skipped
Test / Test (pull_request) Has been skipped
2026-01-28 23:22:05 +01:00
Daniel Akulenok
28f8ca5c12 fix: resolve ansible-lint errors
Some checks failed
Test / Lint (push) Failing after 7s
Test / Lint (pull_request) Failing after 6s
Test / Test (push) Has been skipped
Test / Test (pull_request) Has been skipped
- Quote octal file mode values (0640, 0750 -> '0640', '0750')
- Add 'Prepare' name to prepare.yml play
- Fix truthy value in .gitea/workflows/test.yaml (on -> 'on')
- Use role name 'bind9' instead of path in converge.yml
- Move tags to top-level for Deploy and Validate Configuration block
- Remove unnecessary comments to clean up code
- Ensure all YAML and Ansible files pass ansible-lint production profile
2026-01-28 23:20:56 +01:00
Daniel Akulenok
17a9918685 fix: resolve yamllint errors
Some checks failed
Test / Lint (push) Failing after 16s
Test / Lint (pull_request) Failing after 12s
Test / Test (push) Has been skipped
Test / Test (pull_request) Has been skipped
- Fix line length in meta/argument_specs.yml (wrap long description)
- Remove extra blank lines in molecule/default/collections.yml
- Fix line lengths in tasks/main.yml (wrap long messages)
- Remove trailing spaces from tasks/main.yml
- Ensure all YAML files pass yamllint with relaxed profile
2026-01-28 23:15:23 +01:00
Daniel Akulenok
ca70afbd51 ci: add simplified Gitea Actions workflow for testing
Some checks failed
Test / Lint (pull_request) Failing after 42s
Test / Test (pull_request) Has been skipped
- Add yamllint for YAML style validation (relaxed profile)
- Add ansible-lint for Ansible best practices (production profile)
- Add Molecule test job that runs only on pull requests
- Lint job runs on all push events to main and feature branches
- Test job depends on lint job passing
- Clean, maintainable pipeline configuration
2026-01-28 23:11:04 +01:00
Daniel Akulenok
68a7b62305 chore: update molecule configuration
- Update prepare.yml with test setup
- Update molecule.yml with test infrastructure configuration
2026-01-28 23:03:41 +01:00
Daniel Akulenok
dae9cb60f5 test: add bind9 forwarding DNS server test case
- Create converge.yml with forwarding DNS configuration
- Configure global forwarders with Google and Cloudflare DNS
- Configure forward-only zone for internal.example with TLS
- Create verify.yml with comprehensive test validation
- Test BIND9 installation, service status, and configuration files
- Verify forwarders and forward zones are properly configured
- Test actual DNS resolution via forwarders
2026-01-28 23:03:30 +01:00
Daniel Akulenok
d075e3ec17 docs: update README.md with port/tls parameter patterns
- Add clarification on different parameter combinations (port/dscp vs port/tls)
- Replace generic 'IP_PORT_DSCP_OPTION' with 'ADDRESS_PORT_TLS_OPTION' example
- Update all configuration examples to show port/tls parameters
- Document usage of forwarders with TLS support
- Improve documentation of flexible configuration formats
2026-01-28 23:03:25 +01:00
Daniel Akulenok
e8f84fce0b docs: update CONFIGURATION_GRAMMAR.md for forwarders port/tls support
- Add tls parameter to forwarders grammar in options section
- Add tls parameter to forwarders grammar in zone section
- Update options and zone examples to demonstrate tls usage
- Rename 'Address with Port/DSCP' section to 'Address with Port/TLS'
- Update all data type examples to show port/tls patterns instead of port/dscp
- Document global and per-address port/tls configuration options
2026-01-28 23:03:19 +01:00
Daniel Akulenok
3d2919721b feat: use parent_address_port_tls macro for forwarders
- Update named.conf.options.j2 to use parent_address_port_tls for forwarders
- Update named.conf.zone.j2 to use parent_address_port_tls for forwarders
- Enables support for per-address and global port/tls parameters
2026-01-28 23:03:07 +01:00
Daniel Akulenok
112ba5f7ca feat: implement list_address_port_tls and parent_address_port_tls macros
- Add list_address_port_tls macro for rendering address lists with port and tls parameters
- Add parent_address_port_tls macro for parent statements with global port/tls
- Follow existing naming pattern with separate list_ and parent_ macros
- Supports forwarders, primaries, and similar blocks with port/tls grammar
2026-01-28 23:02:59 +01:00
Daniel Akulenok
fa35922646 AGENTS 2026-01-28 22:03:18 +01:00
Daniel Akulenok
3d7a403409 fix: Update issue tracker URL in metadata 2026-01-27 23:42:07 +01:00
Daniel Akulenok
30098d48d8 fix: Update issue tracker URL in metadata 2026-01-27 23:40:56 +01:00
Daniel Akulenok
8cbf5279ae docs: Update author and company contact information 2026-01-27 23:30:01 +01:00
Daniel Akulenok
8c0961dd13 test: Configure Molecule testing framework
- Add Ansible collections configuration
- Update converge and prepare playbooks
- Restructure molecule.yml for improved testing
2026-01-27 23:30:01 +01:00
Daniel Akulenok
7fc4c26217 fix: Add explicit boolean comparison for Ansible 2.12+ compatibility 2026-01-27 23:30:01 +01:00
Daniel Akulenok
ebdddc37e2 refactor: Rename leaf config to site config
feat: Add argument specs and atomic validation
2026-01-27 23:30:01 +01:00
Daniel Akulenok
400d13457c style: Fix formatting and spacing 2026-01-27 23:18:56 +01:00
Daniel Akulenok
651df7c29a style: Fix formatting and spacing 2026-01-27 23:18:56 +01:00
Daniel Akulenok
32755369b4 refactor: Remove unnecessary comments 2026-01-27 23:18:56 +01:00
Daniel Akulenok
f3d4db5f72 refactor: Replace Jinja2 macros with direct logic in zone and view templates 2026-01-27 23:18:56 +01:00
Daniel Akulenok
95033ef863 refactor: Simplify trust-anchors template implementation 2026-01-27 23:18:56 +01:00
Daniel Akulenok
4da4a6ef7d refactor: Remove macro usage from TLS configuration template 2026-01-27 23:18:56 +01:00
Daniel Akulenok
08fb247110 refactor: Simplify statistics-channels template 2026-01-27 23:18:56 +01:00
Daniel Akulenok
98f33fb989 refactor: Remove Jinja2 macro dependencies from templates 2026-01-27 23:18:56 +01:00
Daniel Akulenok
3ab22fc5f2 refactor: Remove Jinja2 macro dependencies from templates 2026-01-27 23:18:56 +01:00
Daniel Akulenok
5c5f3d1687 test: Add Podman support for testing 2026-01-27 23:18:56 +01:00
Daniel Akulenok
f495ab55b8 refactor: Simplify key configuration template by removing macros 2026-01-27 23:18:56 +01:00
Daniel Akulenok
212861a3ac refactor: Remove macro usage from HTTP configuration template 2026-01-27 23:18:56 +01:00
Daniel Akulenok
fbe5eaaddd refactor: Remove macro usage from HTTP configuration template 2026-01-27 23:18:56 +01:00
Daniel Akulenok
91c2c611db refactor: Simplify DNSSEC policy template by removing macros 2026-01-27 23:18:56 +01:00
Daniel Akulenok
530c0a2bd5 refactor: Remove macro dependencies from DLZ template 2026-01-27 23:18:56 +01:00
Daniel Akulenok
b67ae1184f refactor: Simplify include template by removing macro usage 2026-01-27 23:18:56 +01:00
Daniel Akulenok
3c6e8befb4 refactor: Remove Jinja2 macros from controls template 2026-01-27 23:18:56 +01:00
Daniel Akulenok
a327b0a19a fix: Correct typo in template 2026-01-27 23:18:56 +01:00
Daniel Akulenok
ac99d7b5c8 fix: Correct typo in template 2026-01-27 23:18:56 +01:00
Daniel Akulenok
18b5c5a20f refactor: Continue removing macro dependencies from templates 2026-01-27 23:18:56 +01:00
Daniel Akulenok
fdf150c640 fix: Replace incorrectly used macro with proper Jinja2 filter 2026-01-27 23:18:56 +01:00
Daniel Akulenok
9bed66418f refactor: Remove macro usage from options template 2026-01-27 23:18:56 +01:00
Daniel Akulenok
d488bbafaa chore: Synchronize with local development changes
- Update handler implementation
- Adjust Molecule configuration
- Remove obsolete verification tasks
2026-01-27 23:18:56 +01:00
Daniel Akulenok
e3249912d7 fix: Correct backup file path string in handlers 2026-01-27 23:18:56 +01:00
Daniel Akulenok
7e8d3eb6f5 fix: Make zone name parameter optional in template 2026-01-27 23:18:56 +01:00
Daniel Akulenok
986a6843e9 feat: Support address lists with shared keys in configuration
- Extend function template to iterate over address lists
- Enable multiple addresses to use the same key
2026-01-27 23:18:56 +01:00
Daniel Akulenok
96bf462521 fix: Support both boolean and 'auto' values for dnssec_validation
- Update options template to handle multiple value types
- Improve DNSSEC configuration flexibility
2026-01-27 23:18:56 +01:00
Daniel Akulenok
ad09e0081d style: Remove excessive blank lines from GitLab CI configuration 2026-01-27 23:18:56 +01:00