Commit graph

39 commits

Author SHA1 Message Date
Imran Iqbal
a81c9ffd3a
feat(yamllint): include for this repo and apply rules throughout
* Semi-automated using `ssf-formula` (v0.5.0)
* Fix (or ignore) errors shown below:

```bash
bind-formula$ $(grep "\- yamllint" .travis.yml | sed -e "s:^\s\+-\s\(.*\):\1:")
pillar.example
  1:1       warning  comment not indented like content  (comments-indentation)
  1:89      error    line too long (95 > 88 characters)  (line-length)
  2:1       warning  missing document start "---"  (document-start)
  2:10      error    wrong indentation: expected 0 but found 9  (indentation)
  2:89      error    line too long (103 > 88 characters)  (line-length)
  8:1       error    syntax error: expected '<document start>', but found '<block mapping start>'
  14:89     error    line too long (94 > 88 characters)  (line-length)
  15:51     warning  comment not indented like content  (comments-indentation)
  19:1      error    duplication of key "bind" in mapping  (key-duplicates)
  21:89     error    line too long (93 > 88 characters)  (line-length)
  23:89     error    line too long (102 > 88 characters)  (line-length)
  27:89     error    line too long (96 > 88 characters)  (line-length)
  32:89     error    line too long (143 > 88 characters)  (line-length)
  33:89     error    line too long (134 > 88 characters)  (line-length)
  35:24     error    trailing spaces  (trailing-spaces)
  36:89     error    line too long (91 > 88 characters)  (line-length)
  37:89     error    line too long (93 > 88 characters)  (line-length)
  38:23     warning  truthy value should be one of [false, true]  (truthy)
  39:27     warning  truthy value should be one of [false, true]  (truthy)
  40:27     warning  truthy value should be one of [false, true]  (truthy)
  44:23     warning  truthy value should be one of [false, true]  (truthy)
  45:27     warning  truthy value should be one of [false, true]  (truthy)
  46:27     warning  truthy value should be one of [false, true]  (truthy)
  50:23     warning  truthy value should be one of [false, true]  (truthy)
  51:27     warning  truthy value should be one of [false, true]  (truthy)
  52:27     warning  truthy value should be one of [false, true]  (truthy)
  55:23     warning  truthy value should be one of [false, true]  (truthy)
  56:27     warning  truthy value should be one of [false, true]  (truthy)
  57:27     warning  truthy value should be one of [false, true]  (truthy)
  62:23     warning  truthy value should be one of [false, true]  (truthy)
  63:27     warning  truthy value should be one of [false, true]  (truthy)
  64:27     warning  truthy value should be one of [false, true]  (truthy)
  89:89     error    line too long (91 > 88 characters)  (line-length)
  90:1      warning  comment not indented like content  (comments-indentation)
  97:1      warning  comment not indented like content  (comments-indentation)
  98:89     error    line too long (92 > 88 characters)  (line-length)
  99:51     warning  comment not indented like content  (comments-indentation)
  99:89     error    line too long (96 > 88 characters)  (line-length)
  102:1     warning  comment not indented like content  (comments-indentation)
  102:35    error    trailing spaces  (trailing-spaces)
  103:20    warning  truthy value should be one of [false, true]  (truthy)
  103:89    error    line too long (99 > 88 characters)  (line-length)
  104:51    warning  comment not indented like content  (comments-indentation)
  106:89    error    line too long (99 > 88 characters)  (line-length)
  109:40    error    trailing spaces  (trailing-spaces)
  110:1     error    duplication of key "bind" in mapping  (key-duplicates)
  113:89    error    line too long (115 > 88 characters)  (line-length)
  115:89    error    line too long (110 > 88 characters)  (line-length)
  116:13    error    trailing spaces  (trailing-spaces)
  129:89    error    line too long (120 > 88 characters)  (line-length)
  130:11    error    trailing spaces  (trailing-spaces)
  150:81    error    trailing spaces  (trailing-spaces)
  167:89    error    line too long (118 > 88 characters)  (line-length)
  168:89    error    line too long (101 > 88 characters)  (line-length)
  169:89    error    line too long (103 > 88 characters)  (line-length)
  169:103   error    trailing spaces  (trailing-spaces)
  170:89    error    line too long (107 > 88 characters)  (line-length)
  170:107   error    trailing spaces  (trailing-spaces)
  171:54    warning  comment not indented like content  (comments-indentation)
  171:89    error    line too long (120 > 88 characters)  (line-length)
  172:15    warning  truthy value should be one of [false, true]  (truthy)
  172:89    error    line too long (104 > 88 characters)  (line-length)
  174:21    error    trailing spaces  (trailing-spaces)
  177:15    warning  truthy value should be one of [false, true]  (truthy)
  178:19    error    trailing spaces  (trailing-spaces)
  180:22    error    trailing spaces  (trailing-spaces)
  186:24    warning  truthy value should be one of [false, true]  (truthy)
  186:89    error    line too long (124 > 88 characters)  (line-length)
  191:15    warning  truthy value should be one of [false, true]  (truthy)
  193:89    error    line too long (93 > 88 characters)  (line-length)
  193:93    error    trailing spaces  (trailing-spaces)
  195:89    error    line too long (101 > 88 characters)  (line-length)
  196:89    error    line too long (104 > 88 characters)  (line-length)
  196:104   error    trailing spaces  (trailing-spaces)
  197:15    warning  truthy value should be one of [false, true]  (truthy)
  200:76    error    trailing spaces  (trailing-spaces)
  206:89    error    line too long (94 > 88 characters)  (line-length)
  208:89    error    line too long (94 > 88 characters)  (line-length)
  209:89    error    line too long (98 > 88 characters)  (line-length)
  213:36    error    trailing spaces  (trailing-spaces)
  216:1     error    duplication of key "bind" in mapping  (key-duplicates)
  218:25    warning  truthy value should be one of [false, true]  (truthy)
  221:1     error    too many blank lines (3 > 2)  (empty-lines)
  223:1     error    duplication of key "bind" in mapping  (key-duplicates)
  231:15    warning  truthy value should be one of [false, true]  (truthy)
  231:89    error    line too long (98 > 88 characters)  (line-length)
  232:89    error    line too long (94 > 88 characters)  (line-length)
  234:89    error    line too long (98 > 88 characters)  (line-length)
  235:51    warning  comment not indented like content  (comments-indentation)
  235:89    error    line too long (107 > 88 characters)  (line-length)
  240:15    warning  truthy value should be one of [false, true]  (truthy)
  240:89    error    line too long (98 > 88 characters)  (line-length)
  241:15    warning  truthy value should be one of [false, true]  (truthy)
  241:89    error    line too long (101 > 88 characters)  (line-length)
  242:51    warning  comment not indented like content  (comments-indentation)
  242:89    error    line too long (97 > 88 characters)  (line-length)
  247:15    warning  truthy value should be one of [false, true]  (truthy)
  247:89    error    line too long (98 > 88 characters)  (line-length)
  248:89    error    line too long (99 > 88 characters)  (line-length)
  249:51    warning  comment not indented like content  (comments-indentation)
  249:89    error    line too long (98 > 88 characters)  (line-length)
  253:15    warning  truthy value should be one of [false, true]  (truthy)
  260:89    error    line too long (99 > 88 characters)  (line-length)
  261:15    warning  truthy value should be one of [false, true]  (truthy)
  271:89    error    line too long (96 > 88 characters)  (line-length)
  284:89    error    line too long (109 > 88 characters)  (line-length)
  285:51    warning  comment not indented like content  (comments-indentation)
  285:89    error    line too long (128 > 88 characters)  (line-length)
  286:89    error    line too long (114 > 88 characters)  (line-length)
  287:89    error    line too long (127 > 88 characters)  (line-length)
  289:89    error    line too long (122 > 88 characters)  (line-length)
  290:89    error    line too long (89 > 88 characters)  (line-length)
  291:89    error    line too long (120 > 88 characters)  (line-length)
  292:89    error    line too long (93 > 88 characters)  (line-length)
  293:19    warning  truthy value should be one of [false, true]  (truthy)
  293:24    error    trailing spaces  (trailing-spaces)
  300:89    error    line too long (119 > 88 characters)  (line-length)
  301:51    warning  comment not indented like content  (comments-indentation)
  301:89    error    line too long (122 > 88 characters)  (line-length)
  302:89    error    line too long (93 > 88 characters)  (line-length)
  305:1     error    duplication of key "bind" in mapping  (key-duplicates)
  313:1     warning  comment not indented like content  (comments-indentation)
  313:89    error    line too long (99 > 88 characters)  (line-length)
  320:89    error    line too long (89 > 88 characters)  (line-length)
  337:89    error    line too long (95 > 88 characters)  (line-length)
  341:89    error    line too long (120 > 88 characters)  (line-length)
  345:1     error    too many blank lines (4 > 2)  (empty-lines)
  358:89    error    line too long (89 > 88 characters)  (line-length)
  362:89    error    line too long (117 > 88 characters)  (line-length)
  363:89    error    line too long (89 > 88 characters)  (line-length)
  365:89    error    line too long (102 > 88 characters)  (line-length)
  371:1     error    duplication of key "bind" in mapping  (key-duplicates)

test/salt/pillar/default.sls
  1:1       warning  missing document start "---"  (document-start)
  11:15     warning  truthy value should be one of [false, true]  (truthy)
  16:15     warning  truthy value should be one of [false, true]  (truthy)
  19:15     warning  truthy value should be one of [false, true]  (truthy)
  28:15     warning  truthy value should be one of [false, true]  (truthy)
  114:1     error    too many blank lines (1 > 0)  (empty-lines)
```
2019-08-07 18:34:18 +01:00
crux-capacitor
7e47c7658f Squash commits
Update named.conf.local.jinja

Some reorganization of the format.

In the for-loop that handles configured_views:
  - Add if-block on lines 124-128 to allow specifying a file for your view, rather than defaulting to the name of the specified zone. This allows multiple views to serve the same zone, but use a different file.

Update pillar.example

Add documentation and an example on specifying the file to be used for a view, as well as documented that you should not define the top-level 'configured_zones' key when using views.

Small comment update.

Add comment about using ACLs and views.

Create pillar-with-views.example

An example of the bind pillar that defines multiple views for internal and external record sets.

This doesn't include the other portion of the pillar the defines the bind config - this is zones, views and ACLs only. The config portion is not affected by this.

Add more comment clarification.

Add comment explaining file name requirements.

The filename must match the corresponding zone name (without the .txt extension) because the config.sls jinja logic uses the filename to match to the zone when setting zone_records. It also is hardcoded to replace ".txt" with "" in order to make this match work, and so .txt extension is required for the logic to work.

Update config.sls

Add logic to detect a file specified in a view, and match it to a zone under available_zones to enable creating that zone file.

Revert back

Made a bad commit.

Update with the required logic.

Added an if-block to test for the file argument in the zone_data, and if found, use that view and update the zone variable to match the zone defined under available_zones.

Fix variable set.

Set zone based on file with the .txt extension removed.

Update README.rst

Add paragraph about using views.

Update pillar-with-views.example

Add some more comments for explanation.
2018-11-16 16:28:41 -05:00
Javier Bértoli
72ea4cf544
Merge pull request #98 from aanriot/master
Add support for inline-signing, see #64 for details
2018-06-21 08:37:51 -03:00
Javier Bértoli
aeeafc329a
Merge pull request #97 from nadvornik/reverse
Autogenerate reverse zones
2018-06-21 08:35:07 -03:00
Vladimir Nadvornik
5039e09dad Optionally include generated forwarders.conf 2018-06-18 16:23:05 +02:00
Vladimir Nadvornik
449597241c Generate reverse records for 'any' zone 2018-06-15 16:46:06 +02:00
Alexandre Anriot
82726fdb48 Add support for inline-signing, see #64 for details 2018-06-07 14:34:27 +02:00
Vladimir Nadvornik
4623fb5e60 Autogenerate reverse zones 2018-06-05 15:46:48 +02:00
Vladimir Nadvornik
30a42dbebd Auto-update zone file serial
use https://github.com/saltstack/salt/pull/15828
2018-06-01 15:25:19 +02:00
Javier Bértoli
45e8128487 Refactor named.conf.local & logging across platforms 2018-05-26 19:57:58 -03:00
Piotr Pieprzycki
692f1434ed Cosmetic changes in the pillar.example 2017-10-29 21:00:17 +00:00
Piotr Pieprzycki
978ce84b15 Added feature rndc clinet 2017-10-29 16:46:24 +00:00
Piotr Pieprzycki
99593ccc8c logging channel and category from pillar 2017-10-28 22:05:54 +00:00
Pieprzycki Piotr
2947dde649 New features and pillar.example 2017-10-18 22:35:21 +02:00
Javier Bértoli
b7dc95ddbf Allow to generate zone files from pillar data 2017-07-12 08:38:07 -03:00
K
c9f29af2b5 Support list of masters in named.conf.local template
Updates the archlinux, debian, freebsd templates to support passing a
list of values to `masters` instead of a string. This is already
supported by the redhat template, but lacking in the other 3.
2017-07-11 23:18:07 -04:00
Jerzy Drozdz
698382cd9c Added options for loop in redhat config 2017-03-24 23:22:23 +01:00
Alexander Weidinger
fdf20d5632 FreeBSD: disable default_zones when views are used 2017-01-12 14:56:27 +01:00
Alastair Knowles
afa5402cca Add documentation to pillar.example
As per issue 32, documentation has been added to better explain that each
section with a "bind:" heading is a seperate section with different
features described. Comments have also been added to describe what
different parts of the config actually do.
2016-09-16 19:52:14 +10:00
david
4ca5eca7ee support also-notify 2016-07-31 21:46:06 +02:00
Florian
264c296672 fix broken zones_source_dir on RedHat/Debian
Als add docs for how to overwrite the path.

Fixes saltstack-formulas/bind-formula#60?
2016-06-01 19:17:27 +02:00
root
b73f9e6897 added 'forward ( only | first );' support for named.conf.local 2016-04-18 13:46:31 +00:00
Uwe Kretschmer
2928041651 Inclusion of additional configuration files added (Debian based only). 2016-03-29 13:37:14 +02:00
Uwe Kretschmer
d44fb0934c Solved issue https://github.com/saltstack-formulas/bind-formula/issues/52. 2016-03-22 09:29:31 +01:00
Uwe Kretschmer
bf6a0625e7 Changed hard coded file path to dynamic value. Added possibility to set ACLs via pillar. 2016-03-03 10:01:56 +01:00
Uwe Kretschmer
48ba120d45 Fixed condition to include key_config. Added possibility to include default-zones on Debian systems. 2016-03-03 09:51:39 +01:00
Joe Bowman
4a9a128ba9 add support for forward zones 2016-01-09 08:12:21 +00:00
Rowcliffe Browne
dd54da9cf0 added ammended comments 2015-11-02 10:20:05 +08:00
Rowcliffe Browne
82f4b63aa9 - templatize default file
- fix config.sls to match
- add example to pillar.example
2015-11-02 09:40:51 +08:00
Michael Barroco
af0c753246 Fix pillar.example 2015-08-11 11:21:05 +02:00
Florian Bittner
47e0fc62d3 Add allow-transfer statement which disallows zone transfer by default. 2015-04-02 18:11:01 +02:00
root
3b6f48959e Add support for dynamic zone updates. 2015-03-22 23:26:35 +01:00
root
2cef37f747 Add support for views. 2015-03-22 22:07:22 +01:00
root
f3ca2c660b Move available_zones to bind key. 2015-02-19 23:17:11 +01:00
Skyler Berg
f3dce66398 Add an example of configuring an arbitrary option to pillar.example 2014-11-20 10:45:44 -08:00
root
4c5d5e8aee add key for support dynamic zones 2014-10-16 10:54:02 +00:00
Gareth J. Greenaway
74ef9d4928 Updating bind salt-formula to include support to manage Bind on Debian based systems. Also including the ability to manage what zones are configured on DNS servers. Changing defaults to be pulled from the map.jinja. Added values to map.jinja for group and user. 2014-01-03 15:57:10 -08:00
Seth House
f43b760240 Split bind formula into two states; added map; added pillar examples 2013-09-03 15:51:19 -06:00
Michael Grosser
f580a1455a Add pillar.example 2013-07-27 21:29:15 +02:00