46 Commits
Author SHA1 Message Date
Dominik Pantůček 35d01a796e Apply whitespace check only on *.zone files. 2021-12-21 22:23:09 +01:00
Przemyslaw Sztoch f9c6a52357 New macro $zonerelfile in template file. 2020-05-17 11:18:06 +02:00
Rob Seastrom 7cb7c42d76 change named-compilezone to use /usr/bin/env rather than absolute path 2020-04-13 22:20:54 +02:00
Ondřej Caletka 4efef8be9e Do not template line breaks when header and footer are missing 2018-09-17 13:48:52 +02:00
Ondřej Caletka 94461383e8 Add pre-commit check for missing trailing dot in PTR records. 2018-08-28 12:43:51 +02:00
Ondřej Caletka 3e09833ec1 Better handling of empty commit objects 2018-08-28 10:58:47 +02:00
Ondřej Caletka 9ad1e74a88 Fix no reconfig command issued on zone file rename. 2018-08-27 23:13:29 +02:00
Ondřej Caletka 3777453d2f Better handling of replace serial failure. 2018-08-23 10:38:56 +02:00
Ondřej Caletka f07c84aa32 Fix no reload on very first push to the repository 2018-08-20 16:33:00 +02:00
Ondřej Caletka 806976ca6e Add smudge filter to replace $UNIXTIME directive on checkout 2018-08-20 15:30:45 +02:00
Ondřej Caletka 17f771bca6 Support custom $UNIXTIME directive in place of SOA serial 2018-08-20 15:30:45 +02:00
Ondřej Caletka 03cf26bbbe Add allowfancynames option 2018-08-20 15:30:40 +02:00
Ondřej Caletka 9923df14b7 Fix crash of post-receive when checkout directory does not exist 2018-08-16 10:35:07 +02:00
Ondřej Caletka 293bf930a1 Better multi-call support
Also supports calling by secondary argument (kind-of busybox
stylekind-of). Drop support for multicall setuptools wrapper – when
installed using setuptools, the user should call explicit function
instead.
2018-08-15 13:32:17 +02:00
Ondřej Caletka c9026ff21b Revert "Drop dzonegit multi-call executable"
This reverts commit 9a521350d3.
Since there is no Python dependency, it may be actually handy to call
the script as is.
2018-08-15 13:17:33 +02:00
Ondřej Caletka b608c25372 Revert "Add Experimental filters for smudging/cleaning the SOA serial"
This reverts commit 331df2a4ec.
Increasing serial during the cleaning phase does not work as expected.
Maybe the way is to smudge serial to current unix time during checkout
on the server.
2018-08-15 13:08:08 +02:00
Ondřej Caletka 331df2a4ec Add Experimental filters for smudging/cleaning the SOA serial 2018-08-10 15:48:02 +02:00
Ondřej Caletka 1f79f52b1a Allow wildcards in zone blacklists and whitelists 2018-08-10 12:51:21 +02:00
Ondřej Caletka 9a521350d3 Drop dzonegit multi-call executable 2018-08-10 12:30:51 +02:00
Ondřej Caletka 7e6376ffb2 Add template wildcard matches 2018-07-23 14:04:46 +02:00
Ondřej Caletka cb06a26e9e Add deamon reload support 2018-07-18 14:59:04 +02:00
Ondřej Caletka 190a12eb62 Run updates zones check also on rename and copy of a zonefile 2018-07-18 13:59:02 +02:00
Ondřej Caletka 23b661b1c7 Support zone black and whitelists 2018-07-18 13:45:39 +02:00
Ondřej Caletka 37101104ed Issue a warning when duplicate zone file is found 2018-07-16 16:05:32 +02:00
Ondřej Caletka 74b256168d Sorted zone files for config templating 2018-07-16 15:49:36 +02:00
Ondřej Caletka dfae21f1ff Add config template generator 2018-07-16 15:31:55 +02:00
Ondřej Caletka e3abe11448 Stub pre-receive hook 2018-07-16 13:13:15 +02:00
Ondřej Caletka d26d5a8ebb Refactor commit checks add pre-receive hook
The pre receive hook has exactly same function as update hook,
one can deploy one or another, preferrably not both.
2018-07-16 12:27:41 +02:00
Ondřej Caletka c0b1f088b0 Make whitespace errors check optional 2018-07-13 14:33:11 +02:00
Ondřej Caletka d383fbbfc8 Replace 000000 by empty commit 2018-07-13 12:35:31 +02:00
Ondřej Caletka ca433838db Support auto-update of the serial number 2018-07-12 17:43:02 +02:00
Ondřej Caletka 235db00d4e Add get_config function 2018-07-12 16:38:25 +02:00
Ondřej Caletka 93f8a475d4 Remove forgotten useless function 2018-07-12 16:19:28 +02:00
Ondřej Caletka 4d065accbb Implement update hook 2018-07-12 15:55:33 +02:00
Ondřej Caletka 4f4c301152 Report details about serial number difference 2018-07-12 15:54:01 +02:00
Ondřej Caletka 6a63d7fdd0 Python 3.5 compatibility
Handling file contents as bytestrings instead of strings.
2018-07-12 14:24:44 +02:00
Ondřej Caletka 415f6d745e Support comparsion between revisions as well (test pending) 2018-07-12 13:48:44 +02:00
Ondřej Caletka e3dc0dd0fa Add note to my future self 2018-07-09 13:31:29 +02:00
Ondřej Caletka 1309e9275d Add get_increased_serial function 2018-07-09 10:59:50 +02:00
Ondřej Caletka c30b1d72cd Add pre-commit and fix coding style 2018-07-07 22:36:54 +02:00
Ondřej Caletka b04985c12a Fix whitespace check 2018-07-07 22:07:03 +02:00
Ondřej Caletka 3614beba9e Add setup.py 2018-07-07 22:04:07 +02:00
Ondřej Caletka ef26082735 Refactor tests, get rid of hand-crafted test repositories 2018-07-06 23:51:15 +02:00
Ondřej Caletka 241b888215 Refactor get_zone_origin() 2018-07-06 22:35:08 +02:00
Ondřej Caletka 96f06ac1a1 Use custom exception class 2018-07-06 22:19:16 +02:00
Ondřej Caletka 31556f7b13 initial 2018-07-06 21:53:03 +02:00