Commit Graph

220 Commits

Author SHA1 Message Date
Imran Iqbal
babe311306
chore(pre-commit): use info report level for rstcheck [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/325
2021-05-20 14:10:06 +01:00
Imran Iqbal
1b2c50ae37
docs: remove files which aren't formula-specific [skip ci]
Further reason is to avoid issues with `rst-lint`:

```
ERROR docs/index.rst:10 Unknown directive type "toctree".
```
2021-05-17 18:59:42 +01:00
N
7c69be2077
Merge pull request #55 from corey-hammerton/systemd-params-null
feat(archive): allow command line arguments without values in archive.install
2021-05-15 12:55:52 +01:00
Imran Iqbal
046b0ee239
ci: add arch-master to matrix and update .travis.yml [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/323
2021-05-09 22:33:17 +01:00
Imran Iqbal
bb7b816aac
docs(readme): fix headings and contributing link [skip ci] 2021-05-05 15:21:42 +01:00
chammerton
08ad2caf4c feat(archive): allow command line arguments without values
* If a service.args value is define as null, only render the param (key) in the systemd unit file
2021-05-03 11:17:32 -04:00
Imran Iqbal
a9e26a795d
ci(kitchen+gitlab): adjust matrix to add 3003 [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/318
2021-04-23 08:49:01 +01:00
Imran Iqbal
ed1ee70605
chore: update CODEOWNERS & .yamllint re: kitchen-vagrant [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/310
2021-04-05 18:21:18 +01:00
Imran Iqbal
2b38c9e402
test: standardise use of share suite & _mapdata state [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/302
2021-03-23 21:32:19 +00:00
Imran Iqbal
df0ec43f52
ci(kitchen+ci): use latest pre-salted images (after CVE) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/299
2021-03-07 22:04:44 +00:00
Imran Iqbal
c9cfdfd9e1
fix(pillar): fix OverflowError: Range too big -- MAX_RANGE (100000)
https://gitlab.com/myii/prometheus-formula/-/jobs/1077740890#L779

```
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/salt/utils/templates.py", line 501, in render_jinja_tmpl
    output = template.render(**decoded_context)
  File "/usr/local/lib/python3.8/dist-packages/jinja2/environment.py", line 1090, in render
    self.environment.handle_exception()
  File "/usr/local/lib/python3.8/dist-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/usr/local/lib/python3.8/dist-packages/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "<template>", line 212, in top-level template code
  File "/usr/local/lib/python3.8/dist-packages/jinja2/sandbox.py", line 462, in call
    return __context.call(__obj, *args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/jinja2/sandbox.py", line 173, in safe_range
    raise OverflowError(
OverflowError: Range too big. The sandbox blocks ranges larger than MAX_RANGE (100000).

; line 212

---
[...]
   skip_verify: true

  linux:
    # 'Alternatives system' priority: zero disables (default)
    # yamllint disable-line rule:braces
    altpriority: {{ range(1, 9100000) | random }}    <======================
```
2021-03-07 22:04:39 +00:00
Imran Iqbal
a7875aea8a
chore(yamllint): add .git/ to ignores [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/297
2021-03-05 18:34:45 +00:00
Imran Iqbal
e283bfb188
ci(kitchen+gitlab-ci): use latest pre-salted images [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/293
2021-02-27 22:23:38 +00:00
Imran Iqbal
d30b42ced0
fix(clientlibs/install): ensure tar is available for Oracle Linux 8 2021-02-27 22:03:10 +00:00
Imran Iqbal
83efb0b434
test(pillar/repo): avoid alertmanager config where newer than package
* `smtp_hello` (v0.8.0):
  - a566036015
* `http_config` (v0.15.0-rc.0):
  - d678022fea
2021-02-27 22:03:07 +00:00
Daniel Dehennin
35fad9bca6
chore(rubocop): allow use of YAML.load for _mapdata.rb [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/296
2021-02-23 21:50:50 +00:00
Dafydd Jones
fae14f2563
chore(shellcheck): switch hook for shellcheck [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/295
2021-02-21 08:33:16 +00:00
Imran Iqbal
05f66ac9bc
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:52:57 +00:00
Imran Iqbal
3e043294cc
chore: standardise structure (.gitignore & _mapdata.rb) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/292
2021-02-11 11:52:54 +00:00
semantic-release-bot
286eaafc93 chore(release): 5.4.0 [skip ci]
# [5.4.0](https://github.com/saltstack-formulas/prometheus-formula/compare/v5.3.0...v5.4.0) (2021-02-10)

### Bug Fixes

* **clean:** include repo clean too ([782dd45](782dd45452))

### Continuous Integration

* **commitlint:** ensure `upstream/master` uses main repo URL [skip ci] ([e0f6a8b](e0f6a8baeb))
* **gitlab-ci:** add `rubocop` linter (with `allow_failure`) [skip ci] ([7d80e4a](7d80e4afc1))
* **gitlab-ci:** use GitLab CI as Travis CI replacement ([4f290c2](4f290c2dde))
* **pre-commit:** update hook for `rubocop` [skip ci] ([60ec8e5](60ec8e514d))

### Documentation

* **archive:** update pillar.example with env var for mysqld_exporter ([1631137](1631137b1b))

### Features

* **archive:** managing env vars in systemd unit ([4e60b17](4e60b17741))

### Tests

* **archive:** add env vars tests ([018e759](018e759183))
2021-02-10 18:34:14 +00:00
Daniel
f51bee4da0
Merge pull request #54 from lagooj/feat/manage_env_vars_systemd
Manage env vars
2021-02-10 18:25:23 +00:00
Imran Iqbal
60ec8e514d
ci(pre-commit): update hook for rubocop [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/290
2021-02-02 00:22:23 +00:00
lagooj
018e759183 test(archive): add env vars tests 2021-01-06 22:40:14 +01:00
lagooj
1631137b1b docs(archive): update pillar.example with env var for mysqld_exporter 2021-01-06 22:40:14 +01:00
lagooj
4e60b17741 feat(archive): managing env vars in systemd unit
* add env pillar under component:name:service
* update systemd template
2021-01-06 22:40:14 +01:00
Imran Iqbal
e0f6a8baeb
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:49:06 +00:00
Imran Iqbal
7d80e4afc1
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:34:43 +00:00
Imran Iqbal
4f290c2dde
ci(gitlab-ci): use GitLab CI as Travis CI replacement
* Automated using https://github.com/myii/ssf-formula/pull/275
2020-12-16 06:39:08 +00:00
N
ba6fde24c0
Merge pull request #53 from noelmcloughlin/repo
fix(clean): include repo clean too
2020-12-15 10:04:57 +00:00
noelmcloughlin
782dd45452 fix(clean): include repo clean too 2020-11-28 20:25:01 +00:00
semantic-release-bot
156d09e32d chore(release): 5.3.0 [skip ci]
# [5.3.0](https://github.com/saltstack-formulas/prometheus-formula/compare/v5.2.0...v5.3.0) (2020-11-17)

### Documentation

* **archive:** update pillar.example with unofficial exporter ([10c0b4a](10c0b4a030))

### Features

* **archive:** add support for non official exporters ([2ff6b90](2ff6b90cd8))

### Tests

* **archive:** add unofficial exporter test ([43053a6](43053a6e59))
2020-11-17 23:30:21 +00:00
N
6ab735e16c
Merge pull request #52 from lagooj/feat/unofficial_exporters
Manage unofficial exporters
2020-11-17 23:17:31 +00:00
lagooj
43053a6e59 test(archive): add unofficial exporter test 2020-11-17 15:47:00 +01:00
lagooj
10c0b4a030 docs(archive): update pillar.example with unofficial exporter 2020-11-17 15:46:52 +01:00
lagooj
2ff6b90cd8 feat(archive): add support for non official exporters
* add offical pillar true(default) / false
  to use raw source url in component:name:archive:source
* add tar pillar true(default) / false
  to use file instead of tar, some repo provide only the binary
* update archive/install.sls and map.jinja
2020-11-17 12:50:36 +01:00
semantic-release-bot
aad810fa6a chore(release): 5.2.0 [skip ci]
# [5.2.0](https://github.com/saltstack-formulas/prometheus-formula/compare/v5.1.0...v5.2.0) (2020-11-12)

### Bug Fixes

* **state:** dangling servicename ([5457a9f](5457a9f2f2))
* **windows:** windows has no osarch grain ([468e420](468e420b34))

### Features

* **archive:** use args pillar when using upstream from repo / archive ([7a08e8d](7a08e8db54))
2020-11-12 09:49:46 +00:00
N
815f4757a9
Merge pull request #50 from lagooj/feat/manage_args
Managed args for archive as upstream
2020-11-12 09:38:58 +00:00
N
cb2a565d98
Merge pull request #49 from noelmcloughlin/service
fix(state): dangling servicename
2020-11-12 09:38:44 +00:00
N
61b1a43e40
Merge pull request #48 from noelmcloughlin/win2
fix(windows): windows has no osarch grain
2020-11-12 09:38:25 +00:00
semantic-release-bot
f8d03c85b2 chore(release): 5.1.0 [skip ci]
# [5.1.0](https://github.com/saltstack-formulas/prometheus-formula/compare/v5.0.2...v5.1.0) (2020-11-12)

### Continuous Integration

* **pre-commit:** add to formula [skip ci] ([a639b78](a639b782cf))
* **pre-commit:** enable/disable `rstcheck` as relevant [skip ci] ([5dd496c](5dd496c1c4))
* **pre-commit:** finalise `rstcheck` configuration [skip ci] ([d00473a](d00473a70c))

### Features

* **config:** defaults.yaml update archives versions and hashes ([bfff38b](bfff38b8b7))

### Tests

* **archive:** update test according to defaults.yaml changes ([34a9805](34a9805886))
2020-11-12 09:27:53 +00:00
N
3551d1df38
Merge pull request #51 from lagooj/feat/update_archives_versions
Update component to latest versions
2020-11-12 09:17:08 +00:00
lagooj
34a9805886 test(archive): update test according to defaults.yaml changes 2020-11-12 09:53:16 +01:00
lagooj
bfff38b8b7 feat(config): defaults.yaml update archives versions and hashes 2020-11-12 09:53:16 +01:00
lagooj
7a08e8db54 feat(archive): use args pillar when using upstream from repo / archive 2020-11-11 14:11:15 +01:00
noelmcloughlin
5457a9f2f2 fix(state): dangling servicename 2020-11-07 19:18:55 +00:00
noelmcloughlin
468e420b34 fix(windows): windows has no osarch grain 2020-11-03 10:18:43 +00:00
N
79db2125f7
Merge pull request #46 from noelmcloughlin/win
chore(windows): basic support
2020-11-03 09:29:08 +00:00
Imran Iqbal
f68028883f
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:53:12 +00:00
Imran Iqbal
519bf8442a
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:21:10 +01:00
noelmcloughlin
9abc98274e chore(windows): tentative windows support 2020-10-19 16:25:52 +01:00