test: use personal docker registry
This commit is contained in:
parent
fa1527e99d
commit
6d2f3b5395
3 changed files with 28 additions and 27 deletions
|
@ -17,6 +17,7 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
|
||||||
|
|
||||||
- test: replace kitchen to molecule
|
- test: replace kitchen to molecule
|
||||||
- feat: use label in loop_control
|
- feat: use label in loop_control
|
||||||
|
- test: use personal docker registry
|
||||||
|
|
||||||
## v1.3.0 (2020-02-12)
|
## 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)
|
## 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)
|
||||||
|
|
46
README.md
46
README.md
|
@ -1,30 +1,30 @@
|
||||||
# Ansible role: Bind
|
# 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)
|
[![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://git.yaegashi.fr/nishiki/ansible-role-bind/src/branch/master/LICENSE)
|
[![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
|
Install and configure bind with dnssec
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
* Ansible >= 2.9
|
- Ansible >= 2.9
|
||||||
* bind version >= 9.8
|
- bind version >= 9.8
|
||||||
* Debian
|
- Debian
|
||||||
* Bullseye
|
- Bullseye
|
||||||
* Bookworm
|
- Bookworm
|
||||||
|
|
||||||
## Role variables
|
## Role variables
|
||||||
|
|
||||||
* `bind_options` - hash general bind options
|
- `bind_options` - hash general bind options
|
||||||
* `bind_zones` - the dns zones
|
- `bind_zones` - the dns zones
|
||||||
* `bind_dnssec` - hash with dnssec configuration
|
- `bind_dnssec` - hash with dnssec configuration
|
||||||
* `bind_zones_subset` array to use in `extra-vars` with the list zones to update
|
- `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_ipv4` - enable or disable ip v4 support (default: true)
|
||||||
* `bind_listen_ipv6` - enable or disable ip v6 support (default: true)
|
- `bind_listen_ipv6` - enable or disable ip v6 support (default: true)
|
||||||
|
|
||||||
## How to use
|
## How to use
|
||||||
|
|
||||||
* `group_vars/dns-server/bind`
|
- `group_vars/dns-server/bind`
|
||||||
|
|
||||||
```
|
```
|
||||||
bind_options:
|
bind_options:
|
||||||
|
@ -54,11 +54,11 @@ bind_zones:
|
||||||
- { name: hello, type: a, value: 4.3.2.1 }
|
- { name: hello, type: a, value: 4.3.2.1 }
|
||||||
```
|
```
|
||||||
|
|
||||||
* `group_vars/dns-server/dnssec`
|
- `group_vars/dns-server/dnssec`
|
||||||
|
|
||||||
```
|
```
|
||||||
bind_dnssec:
|
bind_dnssec:
|
||||||
test.local:
|
test.local:
|
||||||
ksk:
|
ksk:
|
||||||
algorithm: 8
|
algorithm: 8
|
||||||
digest: 3
|
digest: 3
|
||||||
|
@ -84,22 +84,22 @@ bind_dnssec:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
* playbook
|
- playbook
|
||||||
|
|
||||||
```
|
```
|
||||||
- hosts: dns-server
|
- hosts: dns-server
|
||||||
roles:
|
roles:
|
||||||
- bind
|
- bind
|
||||||
```
|
```
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
### Test with molecule and docker
|
### Test with molecule and docker
|
||||||
|
|
||||||
* install [docker](https://docs.docker.com/engine/installation/)
|
- install [docker](https://docs.docker.com/engine/installation/)
|
||||||
* install `python3` and `python3-pip`
|
- install `python3` and `python3-pip`
|
||||||
* install molecule and dependencies `pip3 install molecule 'molecule[docker]' docker ansible-lint testinfra yamllint`
|
- install molecule and dependencies `pip3 install molecule 'molecule[docker]' docker ansible-lint testinfra yamllint`
|
||||||
* run `molecule test`
|
- run `molecule test`
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ driver:
|
||||||
name: docker
|
name: docker
|
||||||
platforms:
|
platforms:
|
||||||
- name: debian12
|
- name: debian12
|
||||||
image: nishiki/debian12:molecule
|
image: code.waks.be/nishiki/molecule:debian12
|
||||||
privileged: true
|
privileged: true
|
||||||
volumes:
|
volumes:
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:rw
|
- /sys/fs/cgroup:/sys/fs/cgroup:rw
|
||||||
|
@ -12,7 +12,7 @@ platforms:
|
||||||
capabilities:
|
capabilities:
|
||||||
- SYS_ADMIN
|
- SYS_ADMIN
|
||||||
- name: debian11
|
- name: debian11
|
||||||
image: nishiki/debian11:molecule
|
image: code.waks.be/nishiki/molecule:debian11
|
||||||
privileged: true
|
privileged: true
|
||||||
volumes:
|
volumes:
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:rw
|
- /sys/fs/cgroup:/sys/fs/cgroup:rw
|
||||||
|
@ -28,4 +28,4 @@ verifier:
|
||||||
name: testinfra
|
name: testinfra
|
||||||
provisioner:
|
provisioner:
|
||||||
options:
|
options:
|
||||||
vault-password-file: molecule/default/vault
|
vault-password-file: vault
|
||||||
|
|
Loading…
Reference in a new issue