Commit Graph

27 Commits

Author SHA1 Message Date
547928426b Add my changes 2021-01-04 22:34:08 +01:00
Baptiste Jonglez
215507e048 Refresh doc for buster 2020-07-25 11:23:16 +02:00
Baptiste Jonglez
3f225e7ec7 Remove deprecated dict.iteritems method
It caused ansible to fail with:

  fatal: [XXX]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'iteritems'"}

This method has been removed in Python3: https://docs.ansible.com/ansible/2.5/dev_guide/testing/sanity/no-dict-iteritems.html
2018-05-25 15:57:35 +02:00
Baptiste Jonglez
86abb1857e Add metadata for Ansible Galaxy 2017-09-01 22:41:30 +02:00
Baptiste Jonglez
4b6015abfc Use defaults/main.yml to avoid checking for empty lists everywhere
This fixes one task that was failing when no primary zone was defined (the
task copying zone files)
2017-09-01 22:39:51 +02:00
Baptiste Jonglez
e8211c720d Improve README
Fix some typos, add type of role variables for clarity.
2017-09-01 21:56:04 +02:00
Baptiste Jonglez
6d1d0ae4a8 Restart NSD when zone configuration has changed
This is necessary when a zone is added or removed: simply reloading NSD is
apparently not enough for it to take notice.
2017-09-01 21:42:24 +02:00
Baptiste Jonglez
f607fff0f8 We now have real documentation! 2017-09-01 15:32:20 +02:00
Baptiste Jonglez
3dfe3fef0d Rename nsd_common_config to nsd_server_config and nsd_local_config to nsd_local_server_config 2017-09-01 15:24:13 +02:00
Baptiste Jonglez
9e4f5822d0 Make nsd_version an integer 2017-09-01 12:35:44 +02:00
Baptiste Jonglez
09f720f999 Add LICENSE 2017-09-01 11:17:04 +02:00
Baptiste Jonglez
ae91f3d339 Rename README 2017-09-01 11:16:00 +02:00
Baptiste Jonglez
cdf6821679 nsd: adapt for new version of NSD and allow to configure most parameters related to version (nsd3/nsd4) 2017-09-01 10:58:48 +02:00
Baptiste Jonglez
2ae5fd8b38 NSD: Validate configuration syntax using nsd-checkconf before applying 2017-09-01 10:20:48 +02:00
Baptiste Jonglez
93dd3810a0 NSD: Quote all paths 2017-09-01 10:20:48 +02:00
Baptiste Jonglez
b4dd5c9066 NSD: Avoid duplicating the 'list expansion' code in template 2017-09-01 10:20:48 +02:00
Baptiste Jonglez
a5d94f234a NSD: Allow global or local configuration to be missing 2017-09-01 10:20:48 +02:00
Baptiste Jonglez
6538ccda29 NSD: Reload database after having rebuilt it
Also don't restart nsd when changing zone configuration, rebuild + reload
is enough.
2017-09-01 10:20:48 +02:00
Baptiste Jonglez
eef721d276 NSD: Simplify configuration to use only one file for all zones, instead of many includes
This also allows the playbook to be idempotent.
2017-09-01 10:20:48 +02:00
Baptiste Jonglez
99a1b418f1 NSD: Add a comment to the handlers 2016-03-27 15:55:39 +02:00
Baptiste Jonglez
ab880c9622 NSD: Fix handlers order (rebuild before restart) 2016-03-26 20:08:41 +01:00
Baptiste Jonglez
df14c7881f NSD: notify slaves when a primary zone is updated 2016-03-26 19:36:41 +01:00
Baptiste Jonglez
34f12ba81c NSD: Allow to configure the name of the TSIG keys
Of course, I forgot that the name of TSIG keys is relevant, since it needs
to be the same on both the master and the slave...

While we're at it, allow to define keys separately and refer them by name
in zone config, which avoids duplication.
2016-03-26 19:14:59 +01:00
Baptiste Jonglez
0e6f8b9ad2 Fix templates if there is no slave or master defined 2016-03-26 18:51:42 +01:00
Baptiste Jonglez
3bfcbc9d91 NSD: Implement TSIG keys 2016-03-26 18:20:38 +01:00
Baptiste Jonglez
328018fe7b NSD: Update README 2016-03-26 17:56:52 +01:00
Baptiste Jonglez
adc9f0b18e NSD: first playbook, still rough around the edges (no TSIG support) 2016-03-26 17:56:52 +01:00