1
0
Fork 0
Commit Graph

179 Commits

Author SHA1 Message Date
Imran Iqbal ea66a0d2b8
ci(kitchen+gitlab-ci): use latest pre-salted images [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/293
2021-02-22 16:52:12 +00:00
Imran Iqbal 09d4f5a034
test(base): update from `template-formula` and Arch Linux exclusion 2021-02-22 16:30:57 +00:00
Dafydd Jones b2e67d64fa
chore(shellcheck): switch hook for `shellcheck` [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/295
2021-02-21 08:31:15 +00:00
Imran Iqbal 7368305919
ci(gemfile+lock): use `ssf` customised `kitchen-docker` repo [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/294
2021-02-17 13:50:49 +00:00
Imran Iqbal 178468e1f3
chore: standardise structure (`.gitignore` & `_mapdata.rb`) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/292
2021-02-11 11:50:36 +00:00
Imran Iqbal 2c964b09e4
ci(pre-commit): update hook for `rubocop` [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/290
2021-02-02 00:19:52 +00:00
Imran Iqbal ac5a57c76d
ci(commitlint): ensure `upstream/master` uses main repo URL [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/278
2020-12-20 18:46:52 +00:00
Imran Iqbal 1fc52cd233
ci(gitlab-ci): add `rubocop` linter (with `allow_failure`) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/277
2020-12-19 14:32:26 +00:00
Imran Iqbal 94c2cf7d2c
ci(gitlab-ci): use GitLab CI as Travis CI replacement
* Automated using https://github.com/myii/ssf-formula/pull/275
2020-12-16 06:35:12 +00:00
Imran Iqbal 07f08c2c6e
chore(gemfile+lock): update to latest gem versions (2020-W44) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/274
2020-10-26 22:50:41 +00:00
Imran Iqbal d6ddc5d8c1
chore(gemfile+lock): update to latest gem versions (2020-W43) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/273
2020-10-20 10:18:53 +01:00
Imran Iqbal bd1dc81dcb
ci(pre-commit): finalise `rstcheck` configuration [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/267
2020-10-10 06:49:01 +01:00
Dafydd Jones 1c407b8f16
chore(commitlint): add `{body,footer,header}-max(-line)-length` [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/265
2020-10-07 09:07:04 +01:00
Imran Iqbal 5e5cd64bbf
chore(gemfile+lock): update to latest gem versions (2020-W41) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/263
2020-10-07 00:05:24 +01:00
Imran Iqbal 267bb944a4
ci(pre-commit): enable/disable `rstcheck` as relevant [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/262
2020-10-05 00:21:33 +01:00
Dafydd Jones e506d6954d
ci(pre-commit): add to formula [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/259
2020-10-03 10:33:58 +01:00
Imran Iqbal 8f685e92ef chore(gemfile.lock): update to latest gem versions (2020-W27) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/235
2020-07-06 14:28:21 +01:00
semantic-release-bot a6f68861b1 chore(release): 0.11.5 [skip ci]
## [0.11.5](https://github.com/saltstack-formulas/logrotate-formula/compare/v0.11.4...v0.11.5) (2020-06-29)

### Bug Fixes

* **debian-10:** disable login_records, they're managed by the package ([335c9e6](335c9e6308))

### Continuous Integration

* **kitchen:** use `saltimages` Docker Hub where available [skip ci] ([8f32221](8f32221ba4))
* **kitchen+travis:** use latest pre-salted images [skip ci] ([e18246d](e18246d89b))
* **travis:** add notifications => zulip [skip ci] ([d1c1a81](d1c1a81aa2))
2020-06-29 16:57:46 +00:00
Imran Iqbal b6096f95a3
Merge pull request #55 from netmanagers/master
Fix duplicated entries for login jobs in Debian 10
2020-06-29 17:49:30 +01:00
Javier Bértoli 335c9e6308 fix(debian-10): disable login_records, they're managed by the package 2020-06-26 13:52:08 -03:00
Javier Bértoli aced96bbf7 chore(map.jinja): update map to match template's 2020-06-26 13:24:57 -03:00
Imran Iqbal 26a81d2690 chore(gemfile.lock): update to latest gem versions (2020-W26) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/233
2020-06-26 12:44:38 +01:00
Imran Iqbal 1d94fd246e chore(gemfile.lock): update to latest gem versions (2020-W25) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/229
2020-06-21 12:56:59 +01:00
Imran Iqbal 8f32221ba4 ci(kitchen): use `saltimages` Docker Hub where available [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/223
2020-06-15 16:55:46 +01:00
Imran Iqbal 673e9dc2b2 chore(gemfile.lock): update to latest gem versions [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/222
2020-06-15 15:06:46 +01:00
Imran Iqbal 8a5e5c5d67 chore(gemfile.lock): update to latest gem versions [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/221
2020-06-05 22:16:22 +01:00
Imran Iqbal e18246d89b ci(kitchen+travis): use latest pre-salted images [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/206
2020-05-28 21:44:11 +01:00
Imran Iqbal cac84593ae chore(gemfile.lock): update to latest gem versions [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/202
2020-05-28 00:19:44 +01:00
Imran Iqbal d1c1a81aa2 ci(travis): add notifications => zulip [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/191
2020-05-21 20:08:03 +01:00
semantic-release-bot 05591c8934 chore(release): 0.11.4 [skip ci]
## [0.11.4](https://github.com/saltstack-formulas/logrotate-formula/compare/v0.11.3...v0.11.4) (2020-05-07)

### Bug Fixes

* make necessary modifications to get working on `salt-ssh` ([57c88a8](57c88a8140)), closes [/freenode.logbot.info/saltstack-formulas/20200506#c3811885-c3812572](https://github.com//freenode.logbot.info/saltstack-formulas/20200506/issues/c3811885-c3812572)

### Continuous Integration

* **gemfile.lock:** add to repo with updated `Gemfile` [skip ci] ([a5cf505](a5cf505cc0))
* **kitchen+travis:** remove `master-py2-arch-base-latest` [skip ci] ([bf6f940](bf6f9406da))
* **workflows/commitlint:** add to repo [skip ci] ([4c2a90b](4c2a90bccd))
2020-05-07 07:48:57 +00:00
Imran Iqbal 589cd17578
Merge pull request #53 from myii/bug/fix-for-salt-ssh
fix: make necessary modifications to get working on `salt-ssh`
2020-05-07 08:45:36 +01:00
Imran Iqbal 57c88a8140
fix: make necessary modifications to get working on `salt-ssh`
* https://freenode.logbot.info/saltstack-formulas/20200506#c3811885-c3812572
* Avoid `defaults.merge`
* Send template values by `context`, to avoid:

```python
      ID: logrotate-config
Function: file.managed
    Name: /etc/logrotate.conf
  Result: False
 Comment: An exception occurred in this state: Traceback (most recent call last):
            File "/var/tmp/.root_08c4d3_salt/pyall/salt/utils/templates.py", line 394, in render_jinja_tmpl
              output = template.render(**decoded_context)
            File "/var/tmp/.root_08c4d3_salt/pyall/jinja2/environment.py", line 1008, in render
              return self.environment.handle_exception(exc_info, True)
            File "/var/tmp/.root_08c4d3_salt/pyall/jinja2/environment.py", line 780, in handle_exception
              reraise(exc_type, exc_value, tb)
            File "/var/tmp/.root_08c4d3_salt/pyall/jinja2/_compat.py", line 37, in reraise
              raise value.with_traceback(tb)
            File "<template>", line 1, in top-level template code
            File "/var/tmp/.root_08c4d3_salt/pyall/salt/utils/jinja.py", line 193, in get_source
              raise TemplateNotFound(template)
          jinja2.exceptions.TemplateNotFound: logrotate/map.jinja

          During handling of the above exception, another exception occurred:

          Traceback (most recent call last):
            File "/var/tmp/.root_08c4d3_salt/pyall/salt/state.py", line 1981, in call
              **cdata['kwargs'])
            File "/var/tmp/.root_08c4d3_salt/pyall/salt/loader.py", line 1977, in wrapper
              return f(*args, **kwargs)
            File "/var/tmp/.root_08c4d3_salt/pyall/salt/states/file.py", line 3037, in managed
              **kwargs
            File "/var/tmp/.root_08c4d3_salt/pyall/salt/modules/file.py", line 4846, in check_managed_changes
              **kwargs)
            File "/var/tmp/.root_08c4d3_salt/pyall/salt/modules/file.py", line 4287, in get_managed
              **kwargs)
            File "/var/tmp/.root_08c4d3_salt/pyall/salt/utils/templates.py", line 169, in render_tmpl
              output = render_str(tmplstr, context, tmplpath)
            File "/var/tmp/.root_08c4d3_salt/pyall/salt/utils/templates.py", line 443, in render_jinja_tmpl
              trace=tracestr)
          salt.exceptions.SaltRenderError: Jinja error: logrotate/map.jinja
          Traceback (most recent call last):
            File "/var/tmp/.root_08c4d3_salt/pyall/salt/utils/templates.py", line 394, in render_jinja_tmpl
              output = template.render(**decoded_context)
            File "/var/tmp/.root_08c4d3_salt/pyall/jinja2/environment.py", line 1008, in render
              return self.environment.handle_exception(exc_info, True)
            File "/var/tmp/.root_08c4d3_salt/pyall/jinja2/environment.py", line 780, in handle_exception
              reraise(exc_type, exc_value, tb)
            File "/var/tmp/.root_08c4d3_salt/pyall/jinja2/_compat.py", line 37, in reraise
              raise value.with_traceback(tb)
            File "<template>", line 1, in top-level template code
            File "/var/tmp/.root_08c4d3_salt/pyall/salt/utils/jinja.py", line 193, in get_source
              raise TemplateNotFound(template)
          jinja2.exceptions.TemplateNotFound: logrotate/map.jinja

          ; line 1

          ---
          {%- from "logrotate/map.jinja" import logrotate with context -%}    <======================
          {%- set config = salt['pillar.get']('logrotate:default_config', logrotate.default_config) -%}

          {%- set processed_parameters = [] -%}

          {%- macro set_parameter(parameter, default=None) -%}
          [...]
```
2020-05-06 15:42:57 +01:00
Imran Iqbal 483589d1a5 chore(codeowners): update `semantic-release` related files [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/174
2020-05-04 23:15:47 +01:00
Imran Iqbal f4fcc15c7b chore(codeowners): add to repo [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/173
2020-05-04 22:44:04 +01:00
Imran Iqbal 4c2a90bccd ci(workflows/commitlint): add to repo [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/172
2020-05-04 09:29:34 +01:00
Imran Iqbal bf6f9406da 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:28:07 +01:00
Imran Iqbal a5cf505cc0 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:07:56 +01:00
Imran Iqbal c8274b6549 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:43:57 +01:00
semantic-release-bot 67cad29a38 chore(release): 0.11.3 [skip ci]
## [0.11.3](https://github.com/saltstack-formulas/logrotate-formula/compare/v0.11.2...v0.11.3) (2020-03-22)

### Bug Fixes

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

### Continuous Integration

* **gemfile:** restrict `train` gem version until upstream fix [skip ci] ([e6a2d52](e6a2d52a4c))
* **kitchen:** avoid using bootstrap for `master` instances [skip ci] ([6200869](6200869f7a))
* **kitchen:** ensure `cron` installed on `Debian` ([4401a20](4401a20671))
* **kitchen:** use `debian-10-master-py3` instead of `develop` [skip ci] ([7ba188f](7ba188f535))
* **kitchen:** use `develop` image until `master` is ready (`amazonlinux`) [skip ci] ([c4a1fa9](c4a1fa9f6f))
* **kitchen+travis:** upgrade matrix after `2019.2.2` release [skip ci] ([74ab7a1](74ab7a144d))
* **travis:** apply changes from build config validation [skip ci] ([4e65a71](4e65a7197b))
* **travis:** opt-in to `dpl v2` to complete build config validation [skip ci] ([05f9738](05f973872e))
* **travis:** quote pathspecs used with `git ls-files` [skip ci] ([b7ff28d](b7ff28d630))
* **travis:** run `shellcheck` during lint job [skip ci] ([b60e2ab](b60e2abf73))
* **travis:** update `salt-lint` config for `v0.0.10` [skip ci] ([a75723c](a75723cbe5))
* **travis:** use `major.minor` for `semantic-release` version [skip ci] ([d08d9bf](d08d9bfa06))
* **travis:** use build config validation (beta) [skip ci] ([ef455ff](ef455fffae))

### Documentation

* **contributing:** remove to use org-level file instead [skip ci] ([01493e9](01493e95a9))
* **readme:** update link to `CONTRIBUTING` [skip ci] ([d2ee252](d2ee2524cd))

### Performance Improvements

* **travis:** improve `salt-lint` invocation [skip ci] ([ebd94f0](ebd94f078e))
2020-03-22 18:05:42 +00:00
Imran Iqbal 97a6932603
Merge pull request #52 from myii/ci/ensure-cron-installed-on-debian
ci(kitchen): ensure `cron` installed on `Debian`
2020-03-22 17:57:27 +00:00
Imran Iqbal 4401a20671
ci(kitchen): ensure `cron` installed on `Debian`
* Pre-salted image(s) no longer have it installed (checked `debian-10`)
2020-03-22 17:46:58 +00:00
Imran Iqbal 4cad22ccdc chore(gitignore): update from the `template-formula` [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/132
2020-02-14 22:29:17 +00:00
Imran Iqbal f768fb8a36 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:51:08 +00:00
Imran Iqbal 6200869f7a ci(kitchen): avoid using bootstrap for `master` instances [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/124
2020-02-05 14:05:48 +00:00
Imran Iqbal d08d9bfa06 ci(travis): use `major.minor` for `semantic-release` version [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/112
2019-12-22 00:58:52 +00:00
Imran Iqbal e6a2d52a4c 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:41:54 +00:00
Imran Iqbal b7ff28d630 ci(travis): quote pathspecs used with `git ls-files` [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/107
2019-11-27 21:53:34 +00:00
Imran Iqbal b60e2abf73 ci(travis): run `shellcheck` during lint job [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/106
2019-11-27 20:53:12 +00:00
Imran Iqbal 05f973872e 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:31:28 +00:00
Imran Iqbal 4e65a7197b ci(travis): apply changes from build config validation [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/98
2019-11-16 20:04:22 +00:00