Commit graph

32 commits

Author SHA1 Message Date
Jérémy Lecour 7dc6f0b849 remove trailing whitespaces 2021-05-13 15:23:39 +02:00
Jérémy Lecour 2ed77c60f0 Improve Ansible syntax
replace « x | changed » by « x is changed »
add explicit « bool » filter
use « length » filter instead of string comparison
2021-05-09 23:06:42 +02:00
Patrick Marchand e5511eafc6 Revert changes to bind log path from apparmor fix
All checks were successful
continuous-integration/drone/push Build is passing
I realised it wasnt the best idea to change the path we are used to using just for this, so I overwrite the apparmor configuration instead.
2021-03-09 16:58:14 -05:00
Patrick Marchand 7da22e243e Changed log directory for bind9
It is now /var/log/named, this is what debian 10 and apparmor expect by default. This fixes the bind9 service crashing at start.
2021-03-09 12:25:15 -05:00
Patrick Marchand d5731f90e0 Merge branch 'bind9_evocheck_fix' into unstable
All checks were successful
continuous-integration/drone/push Build is passing
2020-03-10 13:48:52 -04:00
Patrick Marchand 131004136e Fix mistake in bind logrotate template name
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
Just a minor typo, but stops it from running.
2020-01-14 15:15:58 +01:00
Jérémy Lecour e04d881988 replace "with_items" in apt modules 2019-12-31 16:18:56 +01:00
Patrick Marchand cf8cca745e hardcode chrooted bind variables
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
The current chroot-bind.sh is legacy code that cannot be migrated
without a proper understanding of it's historical context. This
context might still apply and this script is still used on a variety
of new and old machines. By hardcoding the paths when the user
requests a chroot, we limit possible breakage.
2019-11-26 17:17:48 -05:00
Patrick Marchand 7728f5f0c5 Made sure munin and logrotate use the proper path for bind logs
Not all code paths made sure that the chroot was taken into account.
2019-11-26 14:02:28 -05:00
Patrick Marchand b7a223dbdd use yes / no instead of True / False for certain flags in bind role
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
2019-11-26 11:58:42 -05:00
Patrick Marchand 3ede484242 Standardization of booleans for bind role
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
2019-11-26 11:53:05 -05:00
Patrick Marchand 839db42c81 Revert "yaml lint and quoting standardisation for bind role"
This reverts commit 6118dda7c9.
2019-11-26 11:48:21 -05:00
Patrick Marchand 6118dda7c9 yaml lint and quoting standardisation for bind role
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build encountered an error
2019-10-09 12:15:55 -04:00
Patrick Marchand 2bbebded9e Migrated bind role to python booleans 2019-10-09 12:07:14 -04:00
Patrick Marchand c6804e73e7 Adapted the bind role to respect the evocheck warnings
The required munin plugins and the logging necessary for them to work is
now activated depending on the type of resolver and the logrotate file is
changed from bind to bind9.
2019-10-09 11:54:30 -04:00
Jérémy Lecour 77aeb60544 bind: chroot-bind.sh must not be executed in check mode 2018-08-21 18:46:16 +02:00
Gregory Colpart 3b78613b2e Big review of role Bind, sync with https://wiki.evolix.org/HowtoBind 2017-07-22 18:40:00 +02:00
Jérémy Lecour 8505bb9d3c … so the backup is not needed anymore 2017-07-18 19:43:28 +02:00
Jérémy Lecour 0c2170cf5c Remove some backups, again 2017-07-18 19:38:03 +02:00
Jérémy Lecour 2413539529 bind: fix rights for named.conf.options 2017-04-20 13:54:35 +02:00
Tristan PILAT c12e85cf4b Add bind configuration 2017-04-13 17:26:49 +02:00
Jérémy Lecour c6e81bf4b7 bind: log file tasks are idempotent 2017-04-06 14:33:46 +02:00
Jérémy Lecour 77bad3eb13 bind: use less command/shell and more modules 2017-04-06 14:22:17 +02:00
Jérémy Lecour 2f7116f676 bind: extract systemd service file in a template 2017-04-06 14:21:29 +02:00
Jérémy Lecour 082f583c83 bind: stat actions are run in check mode too 2017-04-06 11:52:41 +02:00
Jérémy Lecour 406657455e bind: quote variables 2017-04-06 11:45:49 +02:00
Jérémy Lecour 6cf4de3da8 bind: variable chroot path 2017-04-06 11:18:35 +02:00
Jérémy Lecour 36b7efd5e4 bind: simplify conditions syntax
"when: X == False" => "when: not X"
"when: X == True" => "when: X"
2017-04-06 11:18:14 +02:00
Jérémy Lecour f3dedbc09e bind: permissions as String 2017-04-06 11:16:02 +02:00
Jérémy Lecour cb28ddd406 Bind: variable for systemd service file 2017-04-06 11:15:28 +02:00
Tristan PILAT 3fb04d177a Fix some mistakes 2017-02-23 15:25:03 +01:00
Tristan PILAT 87e3f8d2fb Add initial chrooted bind9 install role 2017-02-22 17:06:09 +01:00