Compare commits
2 commits
62e24a1659
...
70a4d4a0e4
| Author | SHA1 | Date | |
|---|---|---|---|
|
70a4d4a0e4 |
|||
|
facd770f10 |
8 changed files with 37 additions and 12 deletions
|
|
@ -1,8 +1,2 @@
|
||||||
---
|
---
|
||||||
deploy_systemd_resolved_config__enable: false
|
deploy_systemd_resolved_config__enable: false
|
||||||
|
|
||||||
docker_compose__compose_file_content: "{{ lookup('ansible.builtin.template', 'resources/chaosknoten/auth-dns/docker_compose/compose.yaml.j2') }}"
|
|
||||||
|
|
||||||
docker_compose__configuration_files:
|
|
||||||
- name: "knot.conf"
|
|
||||||
content: "{{ lookup('ansible.builtin.template', 'resources/chaosknoten/auth-dns/docker_compose/knot.conf.j2') }}"
|
|
||||||
|
|
|
||||||
|
|
@ -155,7 +155,6 @@ docker_compose_hosts:
|
||||||
sunders:
|
sunders:
|
||||||
spaceapiccc:
|
spaceapiccc:
|
||||||
mjolnir:
|
mjolnir:
|
||||||
auth-dns:
|
|
||||||
nextcloud_hosts:
|
nextcloud_hosts:
|
||||||
hosts:
|
hosts:
|
||||||
cloud:
|
cloud:
|
||||||
|
|
|
||||||
|
|
@ -101,3 +101,8 @@
|
||||||
|
|
||||||
- name: Run ensure_eh22_styleguide_dir Playbook
|
- name: Run ensure_eh22_styleguide_dir Playbook
|
||||||
ansible.builtin.import_playbook: ensure_eh22_styleguide_dir.yaml
|
ansible.builtin.import_playbook: ensure_eh22_styleguide_dir.yaml
|
||||||
|
|
||||||
|
- name: Setup authoritative dns servers
|
||||||
|
hosts: auth-dns
|
||||||
|
roles:
|
||||||
|
- auth-dns
|
||||||
|
|
|
||||||
8
roles/auth-dns/handlers/main.yaml
Normal file
8
roles/auth-dns/handlers/main.yaml
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
- tags: [ 02-auth-dns ]
|
||||||
|
name: restart knot
|
||||||
|
become: true
|
||||||
|
notify: restart knot
|
||||||
|
ansible.builtin.systemd:
|
||||||
|
name: knot.service
|
||||||
|
state: restarted
|
||||||
|
|
||||||
6
roles/auth-dns/tasks/01-install.yaml
Normal file
6
roles/auth-dns/tasks/01-install.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
- tags: [ auth-dns ]
|
||||||
|
name: Install knot
|
||||||
|
become: true
|
||||||
|
package:
|
||||||
|
name: [ knot, knot-exporter ]
|
||||||
|
|
||||||
11
roles/auth-dns/tasks/02-configure.yaml
Normal file
11
roles/auth-dns/tasks/02-configure.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
- tags: [ auth-dns ]
|
||||||
|
name: Deploy knot configuration file
|
||||||
|
become: true
|
||||||
|
notify: restart knot
|
||||||
|
template:
|
||||||
|
src: knot.conf.j2
|
||||||
|
dest: /etc/knot/knot.conf
|
||||||
|
owner: knot
|
||||||
|
group: knot
|
||||||
|
mode: u=rw,g=r,o=
|
||||||
|
|
||||||
2
roles/auth-dns/tasks/main.yaml
Normal file
2
roles/auth-dns/tasks/main.yaml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
- import_tasks: 01-install.yaml
|
||||||
|
- import_tasks: 02-configure.yaml
|
||||||
|
|
@ -2,17 +2,17 @@
|
||||||
# See knot.conf(5) or refer to the server documentation.
|
# See knot.conf(5) or refer to the server documentation.
|
||||||
|
|
||||||
server:
|
server:
|
||||||
rundir: "/rundir"
|
rundir: "/run/knot"
|
||||||
user: knot:knot
|
user: knot:knot
|
||||||
automatic-acl: on
|
automatic-acl: on
|
||||||
listen: [ "212.12.48.124", "2a00:14b0:4200:3000:124::1" ]
|
listen: [ "0.0.0.0@53", "::@53" ]
|
||||||
|
|
||||||
log:
|
log:
|
||||||
- target: stderr
|
- target: syslog
|
||||||
any: info
|
any: info
|
||||||
|
|
||||||
database:
|
database:
|
||||||
storage: "/storage"
|
storage: "/var/lib/knot"
|
||||||
|
|
||||||
key:
|
key:
|
||||||
- id: auth-dns.hamburg.ccc.de
|
- id: auth-dns.hamburg.ccc.de
|
||||||
|
|
@ -41,7 +41,7 @@ policy:
|
||||||
# define default settings that apply to all zones
|
# define default settings that apply to all zones
|
||||||
template:
|
template:
|
||||||
- id: default
|
- id: default
|
||||||
storage: "/config/zones"
|
storage: "/etc/knot/zones"
|
||||||
file: "%s.zone"
|
file: "%s.zone"
|
||||||
semantic-checks: on
|
semantic-checks: on
|
||||||
zonefile-sync: -1
|
zonefile-sync: -1
|
||||||
Loading…
Add table
Add a link
Reference in a new issue