Commit Graph

72 Commits

Author SHA1 Message Date
Imran Iqbal
d30b42ced0
fix(clientlibs/install): ensure tar is available for Oracle Linux 8 2021-02-27 22:03:10 +00: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
noelmcloughlin
782dd45452 fix(clean): include repo clean too 2020-11-28 20:25:01 +00: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
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
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
noelmcloughlin
9abc98274e chore(windows): tentative windows support 2020-10-19 16:25:52 +01:00
Imran Iqbal
f6eb546174
chore: standardise structure [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/261
2020-10-02 23:02:49 +01:00
Javier Bértoli
a5b44c812b fix(archive): add config file to service only if defined 2020-08-29 18:26:02 -03:00
Javier Bértoli
a5d4d03f8d test(archive): add tests to check service names
this commit makes `service name` to consider pillar provided values,
fallback to a consistent `service name` when {archive|package} is available
for the component, or to `service name == name` when no other value
is provided
2020-08-25 14:10:02 -03:00
Javier Bértoli
219250a215 fix(archive): service name needs to use pillar values
in archive mode, the service file name was ignoring the value set in
pillar (`pgk:component:service:name`).
2020-08-25 11:28:28 -03:00
Javier Bértoli
844a77f16a fix(debian): add some valid defaults 2020-08-24 19:25:19 -03:00
Imran Iqbal
97584e6bc3
Merge pull request #43 from n-rodriguez/fix/debian
Fix node_exporter service not restarted on archive fresh install
2020-08-24 23:21:33 +01:00
Nicolas Rodriguez
b03a1ccf04 fix(pillar): fix service name in archive mode 2020-08-24 23:02:21 +02:00
Nicolas Rodriguez
0169c89ca4 fix(service): pick up the right service name in pillars 2020-08-24 22:47:14 +02:00
Nicolas Rodriguez
deb9cd28a8 fix(service): service is not reloaded because of failing if 2020-08-24 17:52:22 +02:00
Javier Bértoli
cdd2e6db52 fix(defaults): set clientlibs defaults to an empty list
BREAKING CHANGE: The golang clientib is not required for
the regular use of this formula but, if you already expected it to be
installed by default, you'll need to update your pillars to do so.
Running this version of the formula over previous ones won't break the
minions, only skip clientlibs.
2020-08-24 10:27:18 -03:00
Mark Gomersbach
e0aecdbbbc
fix(osfamilymap.yaml): add gentoo exporters and remove loose go install
Signed-off-by: Mark Gomersbach <markgomersbach@gmail.com>
2020-08-24 13:56:07 +02:00
Javier Bértoli
3014494740 feat(debian): allow to install using OS packages 2020-08-21 10:33:20 -03:00
N
a0cec39d35
Merge pull request #38 from noelmcloughlin/i16
fix(linux): service.args is freebsd
2020-08-19 01:28:28 +02:00
noelmcloughlin
d65858a154 fix(permissions): correct basedir user/group 2020-08-18 21:50:52 +01:00
noelmcloughlin
ceb9863749 fix(linux): service.args is freebsd 2020-08-18 21:18:52 +01:00
noelmcloughlin
fe835534e4 chore(firewall): open salt ports 2020-08-17 15:55:39 +01:00
noelmcloughlin
fd2ff5fade fix(ubuntu): pkgrepo cannot be used 2020-08-09 23:21:14 +01:00
N
9f63dab5b7
Merge branch 'master' into refactor2 2020-08-09 23:01:28 +02:00
Imran Iqbal
2660b19e7f style(libtofs.jinja): use Black-inspired Jinja formatting [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/237
2020-07-19 23:28:19 +01:00
N
ce5b7712c9 refactor(all): align to template-formula; add clientlibs feature
BREAKING CHANGE: The data dictionary is simplified and expanded.
Retest your states and update pillar data accordingly.
For developer convenience, clientlibs states were introduced.
See pillar.example, defaults.yaml, and docs/README.
2020-05-15 11:12:28 +01:00
Imran Iqbal
5403088d09 fix(libtofs): “files_switch” mess up the variable exported by “map.jinja” [skip ci]
* Checked using https://github.com/myii/ssf-formula/pull/131
2020-02-14 19:10:52 +00:00
Mark Gomersbach
b87e8f437c
feat(osfamilymap.yaml): add Gentoo support
Signed-off-by: Mark Gomersbach <markgomersbach@gmail.com>
2019-12-22 21:21:38 +01:00
Imran Iqbal
341fff36ea
fix: test fix for bug 24 2019-12-12 05:58:56 +00:00
Alexander Weidinger
39dacf09a0 fix(args): allow boolean arguments 2019-10-17 08:21:16 +02:00
Alexander Weidinger
a4fd589592 fix(package): use correct node exporter package name in Debian 2019-10-17 08:21:16 +02:00
Alexander Weidinger
7b2f5ce0dd feat(textfile_collectors): added smartmon textfile collector 2019-10-17 08:21:16 +02:00
Alexander Weidinger
d73130972a feat(textfile_collectors): added IPMI textfile collector 2019-10-17 08:21:16 +02:00
Alexander Weidinger
930552d7ee feat(textfile_collectors): added support for textfile collectors 2019-10-17 08:21:16 +02:00
Alexander Weidinger
a0d8ad4c35 fix(node_exporter): allow standalone use of node_exporter 2019-10-17 08:21:16 +02:00
Alexander Weidinger
871da358a6 feat(freebsd): support for FreeBSD 2019-10-17 08:21:16 +02:00
Imran Iqbal
51f5485615
fix(install.sls): fix salt-lint errors
```bash
Examining prometheus/package/install.sls of type state
[201] Trailing whitespace
prometheus/package/install.sls:7
```
2019-10-09 18:21:02 +01:00
Imran Iqbal
805633972b
fix(clean.sls): fix salt-lint errors
```bash
Examining prometheus/archive/install.sls of type state
[201] Trailing whitespace
prometheus/archive/install.sls:33
    - source_hash: {{ p.pkg[name]['archive_hash'] }}

[201] Trailing whitespace
prometheus/archive/install.sls:44
```
2019-10-09 18:21:02 +01:00
Imran Iqbal
173bc4f348
fix(install.sls): fix salt-lint errors
```bash
Examining prometheus/archive/install.sls of type state
[201] Trailing whitespace
prometheus/archive/install.sls:33
    - source_hash: {{ p.pkg[name]['archive_hash'] }}

[201] Trailing whitespace
prometheus/archive/install.sls:44
```
2019-10-09 18:21:02 +01:00
Imran Iqbal
85c7fceb0d
fix(install.sls): fix salt-lint errors
```bash
Examining prometheus/archive/alternatives/install.sls of type state
[206] Jinja variables should have spaces before and after: {{ var_name }}
prometheus/archive/alternatives/install.sls:21
    - name: update-alternatives --install {{ p.dir.basedir }}/{{ name }} prometheus-{{ name }}-home {{ p.dir.basedir }}/{{ bundle }} {{p.linux.altpriority}}

[204] Lines should be no longer that 160 chars
prometheus/archive/alternatives/install.sls:50
    - name: update-alternatives --install /usr/local/bin/{{ b }} prometheus-{{ name }}-{{ b }} {{ p.dir.basedir }}/{{ bundle }}/{{ b }} {{ p.linux.altpriority }}
```
2019-10-09 18:21:02 +01:00
Alexander Weidinger
0a3384222c fix(config): cope with aberrant service names 2019-10-04 22:56:17 +02:00
Imran Iqbal
0d0d9deaee chore: use semantic-release cross-formula standard structure
* Automated using `ssf-formula` (v0.6.0)
2019-08-17 16:06:58 +01:00
Imran Iqbal
07dbfc8d63
feat(yamllint): include for this repo and apply rules throughout
* Semi-automated using `ssf-formula` (v0.5.0)
* Fix errors shown below:

```bash
prometheus-formula$ $(grep "\- yamllint" .travis.yml | sed -e "s:^\s\+-\s\(.*\):\1:")
./prometheus/osfamilymap.yaml
  1:89      error    line too long (116 > 88 characters)  (line-length)
  1:24      error    trailing spaces  (trailing-spaces)
  13:2      error    syntax error: found character '%' that cannot start any token
  24:89     error    line too long (90 > 88 characters)  (line-length)
  25:89     error    line too long (167 > 88 characters)  (line-length)

./prometheus/defaults.yaml
  6:13      error    too many spaces inside braces  (braces)
  6:35      error    too many spaces inside braces  (braces)
  7:11      error    too many spaces inside braces  (braces)
  7:25      error    too many spaces inside braces  (braces)
  8:22      warning  truthy value should be one of [false, true]  (truthy)
  9:25      warning  truthy value should be one of [false, true]  (truthy)
  49:85     error    trailing spaces  (trailing-spaces)
  103:20    warning  truthy value should be one of [false, true]  (truthy)
  104:25    warning  truthy value should be one of [false, true]  (truthy)
  108:16    warning  truthy value should be one of [false, true]  (truthy)
  113:24    warning  missing starting space in comment  (comments)

pillar.example
  31:6      warning  missing starting space in comment  (comments)
  32:8      warning  missing starting space in comment  (comments)
  32:7      warning  comment not indented like content  (comments-indentation)
  51:5      warning  comment not indented like content  (comments-indentation)
  65:89     error    line too long (110 > 88 characters)  (line-length)
  68:29     error    too many spaces after colon  (colons)
  68:34     warning  too few spaces before comment  (comments)
  68:89     error    line too long (106 > 88 characters)  (line-length)
  69:34     warning  too few spaces before comment  (comments)
  69:89     error    line too long (98 > 88 characters)  (line-length)
  75:9      error    wrong indentation: expected 10 but found 8  (indentation)
  76:11     error    wrong indentation: expected 12 but found 10  (indentation)
  77:13     warning  comment not indented like content  (comments-indentation)
  79:89     error    line too long (101 > 88 characters)  (line-length)
  81:9      warning  comment not indented like content  (comments-indentation)
  86:89     error    line too long (103 > 88 characters)  (line-length)
  91:11     error    wrong indentation: expected 12 but found 10  (indentation)
  106:15    error    wrong indentation: expected 16 but found 14  (indentation)
  108:41    warning  too few spaces before comment  (comments)
  118:89    error    line too long (96 > 88 characters)  (line-length)
  139:13    error    wrong indentation: expected 14 but found 12  (indentation)
  143:7     error    wrong indentation: expected 8 but found 6  (indentation)
  145:9     error    wrong indentation: expected 10 but found 8  (indentation)
  157:6     warning  missing starting space in comment  (comments)
  158:20    error    too many spaces inside braces  (braces)
  158:47    error    too many spaces inside braces  (braces)
```
2019-08-16 17:42:04 +01:00
Imran Iqbal
319086893a chore: use semantic-release cross-formula standard structure
* Automated using `ssf-formula` (v0.1.0-rc.2)
2019-07-25 09:44:14 +01:00