Commit graph

320 commits

Author SHA1 Message Date
fthenard
c814779774
fix(default.sls): fix subnet declaration
* https://travis-ci.com/saltstack-formulas/bind-formula/jobs/269539556
* Modified commit from #144
2020-01-27 19:01:26 +00:00
Imran Iqbal
75810c07a7
revert(config_spec.rb): do partial revert of rubocop -a --safe
* Partial revert of 9d2966fd32
* To fix the problem that got introduced:

```
test/integration/default/controls/config_spec.rb:158:35: F: Lint/Syntax: unterminated string meets end of file
```
2020-01-27 18:58:06 +00:00
Imran Iqbal
9d2966fd32
fix(rubocop): add fixes using rubocop -a --safe [skip ci] 2019-12-21 17:43:20 +00:00
semantic-release-bot
0dd9bd3b6a chore(release): 0.19.0 [skip ci]
# [0.19.0](https://github.com/saltstack-formulas/bind-formula/compare/v0.18.4...v0.19.0) (2019-12-21)

### Bug Fixes

* **release.config.js:** use full commit hash in commit link [skip ci] ([adcdbb1](adcdbb12b8))

### Continuous Integration

* **gemfile:** restrict `train` gem version until upstream fix [skip ci] ([b7b0d65](b7b0d655e1))
* **kitchen:** use `debian-10-master-py3` instead of `develop` [skip ci] ([c91fe2a](c91fe2a96b))
* **kitchen:** use `develop` image until `master` is ready (`amazonlinux`) [skip ci] ([5afc27e](5afc27ec26))
* **kitchen+travis:** upgrade matrix after `2019.2.2` release [skip ci] ([6ba1dd5](6ba1dd5262))
* **travis:** apply changes from build config validation [skip ci] ([1838174](18381748c7))
* **travis:** opt-in to `dpl v2` to complete build config validation [skip ci] ([577ad6d](577ad6db1e))
* **travis:** quote pathspecs used with `git ls-files` [skip ci] ([88f9ff1](88f9ff128f))
* **travis:** restrict `semantic-release` version until upstream fix ([5989bb9](5989bb9a0b))
* **travis:** run `shellcheck` during lint job [skip ci] ([37c65de](37c65de548))
* **travis:** update `salt-lint` config for `v0.0.10` [skip ci] ([4c6a882](4c6a88243e))
* **travis:** use `major.minor` for `semantic-release` version ([66c4d9f](66c4d9fe7d)), closes [/github.com/saltstack-formulas/bind-formula/issues/143#issuecomment-568197176](https://github.com//github.com/saltstack-formulas/bind-formula/issues/143/issues/issuecomment-568197176)
* **travis:** use build config validation (beta) [skip ci] ([681c345](681c345e8b))
* merge travis matrix, add `salt-lint` & `rubocop` to `lint` job ([7b23dbb](7b23dbbae0))

### Documentation

* **contributing:** remove to use org-level file instead [skip ci] ([9c11845](9c11845a09))
* **readme:** update link to `CONTRIBUTING` [skip ci] ([ab6ea39](ab6ea391d8))

### Features

* **map.jinja:** add Gentoo support ([7415a9b](7415a9b0ce))

### Performance Improvements

* **travis:** improve `salt-lint` invocation [skip ci] ([b63490c](b63490c23d))
2019-12-21 17:33:11 +00:00
Imran Iqbal
66c4d9fe7d
ci(travis): use major.minor for semantic-release version
* https://github.com/saltstack-formulas/bind-formula/issues/143#issuecomment-568197176
* Automated using https://github.com/myii/ssf-formula/pull/112
2019-12-21 17:22:55 +00:00
Imran Iqbal
5989bb9a0b
ci(travis): restrict semantic-release version until upstream fix
* Automated using https://github.com/myii/ssf-formula/pull/112
2019-12-21 17:05:25 +00:00
Mark Gomersbach
7415a9b0ce feat(map.jinja): add Gentoo support 2019-12-21 11:37:59 +00:00
Imran Iqbal
b7b0d655e1 ci(gemfile): restrict train gem version until upstream fix [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/110
2019-12-16 13:37:14 +00:00
Imran Iqbal
88f9ff128f ci(travis): quote pathspecs used with git ls-files [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/107
2019-11-27 22:01:03 +00:00
Imran Iqbal
37c65de548 ci(travis): run shellcheck during lint job [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/106
2019-11-27 21:02:57 +00:00
Imran Iqbal
577ad6db1e ci(travis): opt-in to dpl v2 to complete build config validation [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/100
2019-11-20 16:36:15 +00:00
Imran Iqbal
18381748c7 ci(travis): apply changes from build config validation [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/98
2019-11-16 20:09:36 +00:00
Imran Iqbal
681c345e8b ci(travis): use build config validation (beta) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/97
2019-11-13 16:51:49 +00:00
Imran Iqbal
5afc27ec26 ci(kitchen): use develop image until master is ready (amazonlinux) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/93
2019-11-03 11:40:12 +00:00
Imran Iqbal
b63490c23d perf(travis): improve salt-lint invocation [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/90
2019-11-02 08:42:26 +00:00
Imran Iqbal
adcdbb12b8 fix(release.config.js): use full commit hash in commit link [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/89
2019-10-31 10:34:29 +00:00
Imran Iqbal
6ba1dd5262 ci(kitchen+travis): upgrade matrix after 2019.2.2 release [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/86
2019-10-30 04:50:57 +00:00
Imran Iqbal
c91fe2a96b ci(kitchen): use debian-10-master-py3 instead of develop [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/84
2019-10-24 18:14:18 +01:00
Imran Iqbal
4c6a88243e ci(travis): update salt-lint config for v0.0.10 [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/82
2019-10-23 17:37:10 +01:00
Imran Iqbal
9c11845a09 docs(contributing): remove to use org-level file instead [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/70
2019-10-14 12:31:39 +01:00
Imran Iqbal
ab6ea391d8
docs(readme): update link to CONTRIBUTING [skip ci] 2019-10-14 11:34:26 +01:00
Imran Iqbal
792b5ab0de chore(issues): remove issues templates to use org-level templates [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/61
2019-10-10 15:29:37 +01:00
semantic-release-bot
7621375349 chore(release): 0.18.4 [skip ci]
## [0.18.4](https://github.com/saltstack-formulas/bind-formula/compare/v0.18.3...v0.18.4) (2019-10-10)

### Bug Fixes

* **config.sls:** fix `salt-lint` errors ([](https://github.com/saltstack-formulas/bind-formula/commit/920615a))
* **named.conf.local.jinja:** fix `salt-lint` errors ([](https://github.com/saltstack-formulas/bind-formula/commit/67736a2))
* **named.conf.logging.jinja:** fix `salt-lint` errors ([](https://github.com/saltstack-formulas/bind-formula/commit/f220886))

### Continuous Integration

* merge travis matrix, add `salt-lint` & `rubocop` to `lint` job ([](https://github.com/saltstack-formulas/bind-formula/commit/5883c09))
2019-10-10 02:34:34 +00:00
Imran Iqbal
87fdba0e0d
Merge pull request #141 from myii/ci/merge-matrix-and-add-salt-lint-and-rubocop
ci: merge travis matrix, add `salt-lint` & `rubocop` to `lint` job
2019-10-09 23:47:23 +01:00
Imran Iqbal
5883c0969f ci: merge travis matrix, add salt-lint & rubocop to lint job
* Semi-automated using https://github.com/myii/ssf-formula/pull/60
2019-10-09 04:15:41 +01:00
Imran Iqbal
f220886584
fix(named.conf.logging.jinja): fix salt-lint errors
```bash
Examining bind/files/named.conf.logging.jinja of type state
[206] Jinja variables should have spaces before and after: {{ var_name }}
bind/files/named.conf.logging.jinja:6
        channel {{channel}} {

[201] Trailing whitespace
bind/files/named.conf.logging.jinja:8
                file "{{ map.log_dir }}/{{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':file')}}" versions {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':versions', '3')}} size {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':size', '20m')}};

[204] Lines should be no longer that 160 chars
bind/files/named.conf.logging.jinja:8
                file "{{ map.log_dir }}/{{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':file')}}" versions {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':versions', '3')}} size {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':size', '20m')}};

[206] Jinja variables should have spaces before and after: {{ var_name }}
bind/files/named.conf.logging.jinja:8
                file "{{ map.log_dir }}/{{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':file')}}" versions {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':versions', '3')}} size {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':size', '20m')}};

[206] Jinja variables should have spaces before and after: {{ var_name }}
bind/files/named.conf.logging.jinja:20
                severity {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':severity')}};

[206] Jinja variables should have spaces before and after: {{ var_name }}
bind/files/named.conf.logging.jinja:23
                syslog {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':syslog')}};

[206] Jinja variables should have spaces before and after: {{ var_name }}
bind/files/named.conf.logging.jinja:29
        category {{category}} { {{ salt['pillar.get']('bind:config:use_extensive_logging:category:'+category, []) | join('; ') }}; };
```
2019-10-09 04:14:00 +01:00
Imran Iqbal
67736a2fed
fix(named.conf.local.jinja): fix salt-lint errors
```bash
Examining bind/files/named.conf.local.jinja of type state
[206] Jinja variables should have spaces before and after: {{ var_name }}
bind/files/named.conf.local.jinja:49
  allow-update { {{args['allow-update']}}; };
```
2019-10-09 04:13:59 +01:00
Imran Iqbal
920615a067
fix(config.sls): fix salt-lint errors
```bash
Examining bind/config.sls of type state
[204] Lines should be no longer that 160 chars
bind/config.sls:217
{%-       do generate_reverse(zone_records, salt['pillar.get']('bind:available_zones:' + zone + ':generate_reverse:net'), salt['pillar.get']('bind:available_zones:' + zone + ':generate_reverse:for_zones'), salt['pillar.get']('bind:available_zones', {})) %}

[206] Jinja variables should have spaces before and after: {{ var_name }}
bind/config.sls:225
zones{{ dash_view }}-{{ zone }}{{ '.include' if serial_auto else ''}}:

[206] Jinja variables should have spaces before and after: {{ var_name }}
bind/config.sls:227
    - name: {{ zones_directory }}/{{ file }}{{ '.include' if serial_auto else ''}}

[206] Jinja variables should have spaces before and after: {{ var_name }}
bind/config.sls:295
    - unless: "grep {{ key_flags.zsk }} {{ key_directory }}/K{{zone}}.+{{ key_algorithm_field }}+*.key"

[206] Jinja variables should have spaces before and after: {{ var_name }}
bind/config.sls:304
    - unless: "grep {{ key_flags.ksk }} {{ key_directory }}/K{{zone}}.+{{ key_algorithm_field }}+*.key"
```
2019-10-09 04:13:59 +01:00
Imran Iqbal
7b23dbbae0 ci: merge travis matrix, add salt-lint & rubocop to lint job
* Automated using https://github.com/myii/ssf-formula/pull/60
2019-10-08 16:39:28 +01:00
semantic-release-bot
7a356e3db8 chore(release): 0.18.3 [skip ci]
## [0.18.3](https://github.com/saltstack-formulas/bind-formula/compare/v0.18.2...v0.18.3) (2019-10-07)

### Bug Fixes

* **pillar.example:** fix `yamllint` error ([eb29e00](https://github.com/saltstack-formulas/bind-formula/commit/eb29e00)), closes [/travis-ci.org/myii/bind-formula/builds/594704904#L211-L213](https://github.com//travis-ci.org/myii/bind-formula/builds/594704904/issues/L211-L213)

### Continuous Integration

* use `dist: bionic` & apply `opensuse-leap-15` SCP error workaround ([90abafa](https://github.com/saltstack-formulas/bind-formula/commit/90abafa))
* **kitchen:** change `log_level` to `debug` instead of `info` ([e0be98a](https://github.com/saltstack-formulas/bind-formula/commit/e0be98a))
* **kitchen:** install required packages to bootstrapped `opensuse` [skip ci] ([a5ad4c6](https://github.com/saltstack-formulas/bind-formula/commit/a5ad4c6))
* **kitchen:** use bootstrapped `opensuse` images until `2019.2.2` [skip ci] ([0d02016](https://github.com/saltstack-formulas/bind-formula/commit/0d02016))
* **platform:** add `arch-base-latest` (commented out for now) [skip ci] ([c091c74](https://github.com/saltstack-formulas/bind-formula/commit/c091c74))
* **yamllint:** add rule `empty-values` & use new `yaml-files` setting ([9163726](https://github.com/saltstack-formulas/bind-formula/commit/9163726))
2019-10-07 18:47:37 +00:00
Imran Iqbal
426e212b4d
Merge pull request #140 from myii/chore/update-yamllint-config
fix(pillar.example): fix `octal-values` violation
2019-10-07 19:25:15 +01:00
Imran Iqbal
eb29e00d25
fix(pillar.example): fix yamllint error
* https://travis-ci.org/myii/bind-formula/builds/594704904#L211-L213

```bash
$ yamllint -s .
./pillar.example
  26:29     error    forbidden implicit octal value "008"  (octal-values)
```
2019-10-07 19:10:13 +01:00
Imran Iqbal
004b1a86db
chore(yamllint): update ignored paths and add octal-values
* Automated using https://github.com/myii/ssf-formula/pull/59
2019-10-07 19:08:57 +01:00
Imran Iqbal
a26517b7c6 chore(issues): update Bug report & Feature request templates [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/58
2019-10-07 15:30:33 +01:00
Imran Iqbal
a5ad4c68ab ci(kitchen): install required packages to bootstrapped opensuse [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/53
2019-10-02 00:11:05 +01:00
Imran Iqbal
0d02016a38 ci(kitchen): use bootstrapped opensuse images until 2019.2.2 [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/52
2019-10-01 21:38:04 +01:00
Imran Iqbal
c091c74fd7 ci(platform): add arch-base-latest (commented out for now) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/50
2019-10-01 16:23:34 +01:00
Imran Iqbal
2ae4baa809 chore(issues): provide Bug report & Feature request templates [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/48
2019-09-30 16:03:34 +01:00
Imran Iqbal
e0be98a6e2 ci(kitchen): change log_level to debug instead of info
* Automated using https://github.com/myii/ssf-formula/pull/41
2019-09-23 17:03:52 +01:00
Éric Veiras Galisson
c7d5555a21
Merge pull request #139 from myii/chore/standardise-structure
ci(yamllint): add rule `empty-values` & use new `yaml-files` setting
2019-09-11 08:28:44 +02:00
Imran Iqbal
9163726873
ci(yamllint): add rule empty-values & use new yaml-files setting
* Semi-automated using https://github.com/myii/ssf-formula/pull/27
* Fix errors shown below:

```bash
bind-formula$ yamllint -s .
./pillar-with-views.example
  1:1       warning  missing document start "---"  (document-start)
  2:89      error    line too long (93 > 88 characters)  (line-length)
  4:89      error    line too long (98 > 88 characters)  (line-length)
  5:51      warning  comment not indented like content  (comments-indentation)
  5:89      error    line too long (90 > 88 characters)  (line-length)
  6:1       error    trailing spaces  (trailing-spaces)
  8:89      error    line too long (104 > 88 characters)  (line-length)
  10:89     error    line too long (104 > 88 characters)  (line-length)
  11:89     error    line too long (114 > 88 characters)  (line-length)
  12:89     error    line too long (116 > 88 characters)  (line-length)
  14:1      error    trailing spaces  (trailing-spaces)
  16:89     error    line too long (121 > 88 characters)  (line-length)
  18:89     error    line too long (108 > 88 characters)  (line-length)
  20:89     error    line too long (97 > 88 characters)  (line-length)
  22:89     error    line too long (106 > 88 characters)  (line-length)
  23:22     warning  truthy value should be one of [false, true]  (truthy)
  23:89     error    line too long (97 > 88 characters)  (line-length)
  24:51     warning  comment not indented like content  (comments-indentation)
  24:89     error    line too long (110 > 88 characters)  (line-length)
  24:110    error    trailing spaces  (trailing-spaces)
  25:89     error    line too long (122 > 88 characters)  (line-length)
  26:19     warning  truthy value should be one of [false, true]  (truthy)
  27:19     warning  truthy value should be one of [false, true]  (truthy)
  29:89     error    line too long (113 > 88 characters)  (line-length)
  31:89     error    line too long (98 > 88 characters)  (line-length)
  33:89     error    line too long (104 > 88 characters)  (line-length)
  35:89     error    line too long (101 > 88 characters)  (line-length)
  36:51     warning  comment not indented like content  (comments-indentation)
  36:89     error    line too long (112 > 88 characters)  (line-length)
  36:112    error    trailing spaces  (trailing-spaces)
  37:89     error    line too long (122 > 88 characters)  (line-length)
  38:22     warning  truthy value should be one of [false, true]  (truthy)
  39:19     warning  truthy value should be one of [false, true]  (truthy)
  40:19     warning  truthy value should be one of [false, true]  (truthy)
  43:89     error    line too long (96 > 88 characters)  (line-length)
  44:89     error    line too long (119 > 88 characters)  (line-length)
  45:51     warning  comment not indented like content  (comments-indentation)
  46:1      error    trailing spaces  (trailing-spaces)
  50:89     error    line too long (99 > 88 characters)  (line-length)
  57:89     error    line too long (89 > 88 characters)  (line-length)
  70:1      error    trailing spaces  (trailing-spaces)
  71:89     error    line too long (96 > 88 characters)  (line-length)
  72:89     error    line too long (119 > 88 characters)  (line-length)
  73:51     warning  comment not indented like content  (comments-indentation)
  74:1      error    trailing spaces  (trailing-spaces)
  78:89     error    line too long (99 > 88 characters)  (line-length)
  85:89     error    line too long (89 > 88 characters)  (line-length)
  87:89     error    line too long (110 > 88 characters)  (line-length)
```
2019-09-10 23:59:23 +01:00
Niels Abspoel
d498d1985e
Merge pull request #138 from myii/chore/standardise-structure
ci: use `dist: bionic` & apply `opensuse-leap-15` SCP error workaround
2019-09-08 21:46:54 +02:00
Imran Iqbal
90abafaa90
ci: use dist: bionic & apply opensuse-leap-15 SCP error workaround
* Automated using https://github.com/myii/ssf-formula/pull/22
2019-09-07 03:19:02 +01:00
semantic-release-bot
44e1521280 chore(release): 0.18.2 [skip ci]
## [0.18.2](https://github.com/saltstack-formulas/bind-formula/compare/v0.18.1...v0.18.2) (2019-09-05)

### Continuous Integration

* **kitchen+travis:** replace EOL pre-salted images ([3a4d4e8](https://github.com/saltstack-formulas/bind-formula/commit/3a4d4e8))

### Tests

* **inspec:** improve to work on `amazon` as well ([59684c6](https://github.com/saltstack-formulas/bind-formula/commit/59684c6))
2019-09-05 20:42:56 +00:00
Imran Iqbal
aaaa7904b2
Merge pull request #137 from myii/chore/standardise-structure
ci(kitchen+travis): replace EOL pre-salted images
2019-09-05 21:20:54 +01:00
Imran Iqbal
3a4d4e8d04 ci(kitchen+travis): replace EOL pre-salted images
* Automated using https://github.com/myii/ssf-formula/pull/16
2019-08-28 07:15:08 +01:00
Imran Iqbal
59684c6f8a test(inspec): improve to work on amazon as well 2019-08-28 07:14:51 +01:00
semantic-release-bot
1b0d03243b chore(release): 0.18.1 [skip ci]
## [0.18.1](https://github.com/saltstack-formulas/bind-formula/compare/v0.18.0...v0.18.1) (2019-08-18)

### Bug Fixes

* **tests:** move to controls sub-directory ([74bbc5b](https://github.com/saltstack-formulas/bind-formula/commit/74bbc5b))

### Continuous Integration

* **travis:** re-enable `fedora` ([4a6ac4e](https://github.com/saltstack-formulas/bind-formula/commit/4a6ac4e))
2019-08-18 23:10:49 +00:00
Imran Iqbal
c00b054ff1
Merge pull request #136 from myii/bug/fix-tests-not-running
fix(tests): move to controls sub-directory
2019-08-19 00:00:45 +01:00
Imran Iqbal
4a6ac4ebe1
ci(travis): re-enable fedora
* Automated using `ssf-formula` (v0.7.0)
2019-08-18 23:51:20 +01:00