Commit Graph

53 Commits

Author SHA1 Message Date
Jérémy Lecour 0fe0244116 Update Galaxy metadata (company, platforms and galaxy_tags) 2021-06-28 15:26:28 +02:00
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
Jérémy Lecour 5138065059 Use 'loop' syntax instead of 'with_items' 2021-05-04 14:19:18 +02:00
Patrick Marchand e5511eafc6 Revert changes to bind log path from apparmor fix
continuous-integration/drone/push Build is passing Details
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
continuous-integration/drone/push Build is passing Details
2020-03-10 13:48:52 -04:00
Patrick Marchand 131004136e Fix mistake in bind logrotate template name
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is failing Details
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
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is failing Details
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 5008b79ef5 Remove remaining hardcoded log paths from bind role
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is failing Details
We had variables for the log paths, but these were not being used
by all templates.
2019-11-26 14:04:20 -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
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is failing Details
2019-11-26 11:58:42 -05:00
Patrick Marchand 3ede484242 Standardization of booleans for bind role
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is failing Details
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
continuous-integration/drone/push Build encountered an error Details
continuous-integration/drone/pr Build encountered an error Details
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 aa28e9c1b8 change repositories URL 2019-03-21 15:31:58 +01: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
Jérémy Lecour 215d83f0b4 bind: keep 52 weeks of logs 2017-12-28 11:27:36 +01: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 20c575ee1e named.conf.options is managed by ansible 2017-07-18 19:42:54 +02:00
Jérémy Lecour 0c2170cf5c Remove some backups, again 2017-07-18 19:38:03 +02:00
Jérémy Lecour 639a4baf75 Bind: use the chroot variable for Munin 2017-07-17 14:45:36 +02:00
Gabriel Periard-Tremblay 87ebadcadd Kitchen: Change base image to evolix/ansible 2017-06-02 08:38:08 -04:00
Jérémy Lecour 2413539529 bind: fix rights for named.conf.options 2017-04-20 13:54:35 +02:00
Jérémy Lecour 33314828b1 Change Ansible version used by ansible-kitchen 2017-04-19 17:48:02 +02:00
Tristan PILAT e864718c1e Add bind's munin plugin configuration option file 2017-04-13 17:26:51 +02:00
Tristan PILAT ec1e036465 New template bind configuration file 2017-04-13 17:26:50 +02:00
Tristan PILAT be3ad0c844 Add munin configuration part 2017-04-13 17:26:49 +02:00
Tristan PILAT c12e85cf4b Add bind configuration 2017-04-13 17:26:49 +02:00
Tristan PILAT 350cf87eb6 Add munin-node handler 2017-04-13 17:26:47 +02:00
Jérémy Lecour 07d8a815c2 bind: simpler spec for now 2017-04-10 18:16:25 +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 9c3e73c494 Revert "bind: service is completely reloaded"
This reverts commit a798bf0ebc.
2017-04-06 14:27:19 +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 a798bf0ebc bind: service is completely reloaded 2017-04-06 14:20:34 +02:00
Jérémy Lecour 21ac7cd738 bind: check for chroot 2017-04-06 11:53:03 +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 c4cd869218 bind: add specs for service check 2017-04-06 11:46:01 +02:00
Jérémy Lecour 406657455e bind: quote variables 2017-04-06 11:45:49 +02:00
Jérémy Lecour 947f617f7d bind: fix test context 2017-04-06 11:45:37 +02:00
Jérémy Lecour b6d2c023cf bind: add tests 2017-04-06 11:37:50 +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