test: use personal docker registry

This commit is contained in:
Adrien Waksberg 2024-05-07 09:23:55 +02:00
parent fa1527e99d
commit 6d2f3b5395
3 changed files with 28 additions and 27 deletions

View file

@ -17,6 +17,7 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
- test: replace kitchen to molecule
- feat: use label in loop_control
- test: use personal docker registry
## v1.3.0 (2020-02-12)
@ -36,7 +37,7 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
## 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
## v1.1.0 (2018-03-31)

View file

@ -1,30 +1,30 @@
# Ansible role: Bind
[![Version](https://img.shields.io/badge/latest_version-1.3.0-green.svg)](https://git.yaegashi.fr/nishiki/ansible-role-bind/releases)
[![Build Status](https://travis-ci.org/nishiki/ansible-role-bind.svg?branch=master)](https://travis-ci.org/nishiki/ansible-role-bind)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://git.yaegashi.fr/nishiki/ansible-role-bind/src/branch/master/LICENSE)
[![Version](https://img.shields.io/badge/latest_version-1.3.0-green.svg)](https://code.waks.be/nishiki/ansible-role-bind/releases)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://code.waks.be/nishiki/ansible-role-bind/src/branch/main/LICENSE)
Install and configure bind with dnssec
## Requirements
* Ansible >= 2.9
* bind version >= 9.8
* Debian
* Bullseye
* Bookworm
- Ansible >= 2.9
- bind version >= 9.8
- Debian
- Bullseye
- Bookworm
## Role variables
* `bind_options` - hash general bind options
* `bind_zones` - the dns zones
* `bind_dnssec` - hash with dnssec configuration
* `bind_zones_subset` array to use in `extra-vars` with the list zones to update
* `bind_listen_ipv4` - enable or disable ip v4 support (default: true)
* `bind_listen_ipv6` - enable or disable ip v6 support (default: true)
- `bind_options` - hash general bind options
- `bind_zones` - the dns zones
- `bind_dnssec` - hash with dnssec configuration
- `bind_zones_subset` array to use in `extra-vars` with the list zones to update
- `bind_listen_ipv4` - enable or disable ip v4 support (default: true)
- `bind_listen_ipv6` - enable or disable ip v6 support (default: true)
## How to use
* `group_vars/dns-server/bind`
- `group_vars/dns-server/bind`
```
bind_options:
@ -54,11 +54,11 @@ bind_zones:
- { name: hello, type: a, value: 4.3.2.1 }
```
* `group_vars/dns-server/dnssec`
- `group_vars/dns-server/dnssec`
```
bind_dnssec:
test.local:
test.local:
ksk:
algorithm: 8
digest: 3
@ -84,22 +84,22 @@ bind_dnssec:
```
* playbook
- playbook
```
- hosts: dns-server
roles:
- bind
- bind
```
## Development
### Test with molecule and docker
* install [docker](https://docs.docker.com/engine/installation/)
* install `python3` and `python3-pip`
* install molecule and dependencies `pip3 install molecule 'molecule[docker]' docker ansible-lint testinfra yamllint`
* run `molecule test`
- install [docker](https://docs.docker.com/engine/installation/)
- install `python3` and `python3-pip`
- install molecule and dependencies `pip3 install molecule 'molecule[docker]' docker ansible-lint testinfra yamllint`
- run `molecule test`
## License

View file

@ -3,7 +3,7 @@ driver:
name: docker
platforms:
- name: debian12
image: nishiki/debian12:molecule
image: code.waks.be/nishiki/molecule:debian12
privileged: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
@ -12,7 +12,7 @@ platforms:
capabilities:
- SYS_ADMIN
- name: debian11
image: nishiki/debian11:molecule
image: code.waks.be/nishiki/molecule:debian11
privileged: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
@ -28,4 +28,4 @@ verifier:
name: testinfra
provisioner:
options:
vault-password-file: molecule/default/vault
vault-password-file: vault