Commit graph

431 commits

Author SHA1 Message Date
Imran Iqbal
b202791a7c ci(workflows/commitlint): add to repo [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/172
2020-05-04 09:26:29 +01:00
Imran Iqbal
f1b306dbef ci(kitchen+travis): remove master-py2-arch-base-latest [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/167
2020-05-02 04:25:06 +01:00
Imran Iqbal
c15db2bd0c ci(gemfile.lock): add to repo with updated Gemfile [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/163
2020-04-21 22:04:47 +01:00
Imran Iqbal
7515651a09 chore(rubocop): use org-wide standard settings for Metrics/BlockLength [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/158
2020-04-18 13:40:57 +01:00
semantic-release-bot
a16f0b373b chore(release): 0.19.2 [skip ci]
## [0.19.2](https://github.com/saltstack-formulas/bind-formula/compare/v0.19.1...v0.19.2) (2020-03-23)

### Bug Fixes

* **debian:** align Debian log directory with apparmor profile ([b5efc0b](b5efc0b9bd))

### Continuous Integration

* **kitchen:** avoid using bootstrap for `master` instances [skip ci] ([292e495](292e495d01))
2020-03-23 09:54:50 +00:00
Javier Bértoli
f9a1339efe
Merge pull request #145 from tedski/debian-logdir
Align Debian log directory with apparmor profile
2020-03-23 06:45:46 -03:00
Ted Strzalkowski
b5efc0b9bd fix(debian): align Debian log directory with apparmor profile
Debian ships with an apparmor profile that specifies /var/log/named as
the permissible log directory.
2020-03-22 18:14:27 -07:00
Imran Iqbal
7cad5ea5c2 chore(gitignore): update from the template-formula [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/132
2020-02-14 22:26:03 +00:00
Imran Iqbal
fa1374f072 chore(rubocop): move LineLength cop from Metrics to Layout [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/129
2020-02-14 12:48:14 +00:00
Imran Iqbal
292e495d01 ci(kitchen): avoid using bootstrap for master instances [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/124
2020-02-05 14:02:11 +00:00
semantic-release-bot
398691bb34 chore(release): 0.19.1 [skip ci]
## [0.19.1](https://github.com/saltstack-formulas/bind-formula/compare/v0.19.0...v0.19.1) (2020-01-27)

### Bug Fixes

* **default.sls:** fix subnet declaration ([c814779](c814779774)), closes [#144](https://github.com/saltstack-formulas/bind-formula/issues/144)
* **rubocop:** add fixes using `rubocop -a --safe` [skip ci] ([9d2966f](9d2966fd32))

### Reverts

* **config_spec.rb:** do partial revert of `rubocop -a --safe` ([75810c0](75810c07a7))
2020-01-27 19:12:02 +00:00
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