Commit Graph

33 Commits

Author SHA1 Message Date
Michael Schmitt
711ebf7c1b
fix(groups): groups should always be created as system groups 2021-12-13 15:20:54 -07:00
Michael Schmitt
ee20f821d6
fix(users): users should always be created as system users 2021-12-09 00:54:54 -07:00
N
bc5713d29e
Merge pull request #71 from mdschmitt/use_nologin_shell
fix(defaults): Use nologin instead of /bin/false
2021-08-06 11:00:29 +01:00
Michael Schmitt
1af0deb087
fix(defaults): use nologin instead of /bin/false 2021-08-06 00:04:18 -06:00
Imran Iqbal
0e65cc345b
feat(config/users): add support for debian-11 [skip ci]
Avoid this failure when installing the package:

```
Setting up prometheus (2.24.1+ds-1+b5) ...
adduser: The user `prometheus' already exists, but is not a system user. Exiting.
dpkg: error processing package prometheus (--configure):
 installed prometheus package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 prometheus
```
2021-07-18 14:42:35 +01:00
BlueWolf
076869a8cd fix: added handle for alternative argument opts header
Centos and oraclelinux repositories for prometheus include bespoke headers
in the environment files (e.g. Debian: ARGS=, Centos: PROMETHEUS_OPTS=
ALERTMANAGER_OPTS=). This has been added as a default pillar with osmap
variances.
Additionally archlinux repo install was failing so added basic support -
an issue still remains for the prometheus app itself due to the service
file included in the arch repo hardcoding some config options - resulting
in the possibility to duplicate arguments resulting in a service error.
The prometheus service currently does not start due to permissions not being
applied to a data folder. The added config.storage begins to solve this and
ensures alignment on all platforms but would result in a duplicate config
entry as above. Prometheus on arch therefore needs more work but the exporter
installs now work.

Resolves: #59
2021-06-30 05:16:56 +01:00
BlueWolf
f2261f9dc9 fix: revert to use of macro.jinja for arg handling
The previous additions to environ.sh.jinja were fixing something that wasnt broken.
2021-06-30 05:16:56 +01:00
BlueWolf
e52f804bf4 fix: rework to implement environment variables handling
Developed environ.sh.jinja and added test pillar data to default
Corrected prometheus.config.environ
Switched default test pillar to use none archive - due to deployment of custom service
Disabled a number of exporters following switch from archive due to failing - to be reviewed
Corrected prometheus environ_file location

Resolves: #59
2021-06-30 05:15:38 +01:00
Javier Bértoli
5f3dc6f11a feat(config): allow to manage extra files 2021-05-27 20:42:32 -03: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
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
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
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
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
Alexander Weidinger
0a3384222c fix(config): cope with aberrant service names 2019-10-04 22:56:17 +02:00
N
c735a6deea
fix(service): ensure service file is removed on clean 2019-06-23 15:18:40 +01:00
N
a13dd03af1
fix(example): fix pillar.example formatting 2019-06-23 13:28:58 +01:00
N
eda47f71e8
fix(repo): use_upstream_repo corrections; separate users state
BREAKING CHANGE:

The formula has been refactored to accomodate multiple packages,
archives, users, and repos. Update your pillars and top states
2019-06-22 21:46:24 +01:00
N
731198dd4d
test(centos): verified on CentosOS 2019-06-22 17:48:28 +01:00
N
d43033a0fd
feat(archives): user managementX 2019-06-19 02:05:30 +01:00
N
3ec910e7f7
feat(archives): support for various prometheus archives 2019-06-18 10:49:49 +01:00
N
36b3e62678
feat(linux): alternatives support & updated unit tests 2019-06-17 19:36:07 +01:00
N
b074bd3dee
test(inspec): expand unittests for archive format 2019-06-16 01:23:52 +01:00
N
1f86f4a27c
feat(archives): support for archives file format
BREAKING CHANGE: the parameter `pkg` is now a dictionary. References
 to `prometheus.pkg` should be changed to `prometheus.pkg.name`.
2019-06-15 01:52:59 +01:00
N
e6a8b0c78d
feat(macos): basic package and group handling 2019-05-31 18:16:43 +01:00
Alexander Weidinger
94078fed74 feat(args): handle service arguments the same way 2019-04-30 21:59:28 +02:00
Alexander Weidinger
b9b7cc0841 feat(prometheus): basic setup based on template-formula 2019-04-25 22:14:39 +02:00