Commit graph

19 commits

Author SHA1 Message Date
Jack
2ec62b392b feat: move naive assertion to common role
Signed-off-by: Jack <jack4zhang@gmail.com>
2024-10-30 09:53:00 +08:00
gardar
330e66a75d
refactor(mysqld_exporter): delegate common tasks to _common role
Signed-off-by: gardar <gardar@users.noreply.github.com>
2024-10-15 17:07:29 +00:00
Mark Tomich
32d15d4361 Setting one archive_path per role and setting default values
Signed-off-by: Mark Tomich <tomichms@nih.gov>
2024-02-29 10:55:40 -05:00
Mark Tomich
5150409d55 allowing for the specification of a prometheus_archive_path other than
`/tmp`

Signed-off-by: Mark Tomich <tomichms@nih.gov>
2024-02-28 10:40:41 -05:00
Ilari Iso-Junno
172b4bbb08
fix: conditional statement jinja2 templating warning (#266)
A new warning occurred after updating from ansible-core 2.15.4 to 2.15.8
[WARNING]: conditional statements should not include jinja2 templating
delimiters such as {{ }} or {% %}. Found: ...

Removed the jinja2 templating delimeters to fix the warning.

Signed-off-by: Ilari Iso-Junno <iisojunn@users.noreply.github.com>
Co-authored-by: Ilari Iso-Junno <iisojunn@users.noreply.github.com>
2023-12-18 16:21:26 +01:00
Ben Kochie
91b5781591
fix: Use repo var for preflight (#258)
Use the per-role repo var consistently in the preflight GitHub API URLs.

Signed-off-by: SuperQ <superq@gmail.com>
2023-12-07 16:39:08 +01:00
Christian Krause
dce2e959d9
enhancement(mysqld_exporter): allows using multiple web listen addresses
Signed-off-by: Christian Krause <christian.krause@idiv.de>
2023-11-28 13:07:31 +01:00
SuperQ
8b04f52bd3
skip_changelog: Fixup install task names
Update names to be consistent, reflect task block.

Signed-off-by: SuperQ <superq@gmail.com>
2023-08-26 10:38:57 +02:00
gardar
82d0c730ed
fix: correctly set no_log bool instead of string
Signed-off-by: gardar <gardar@users.noreply.github.com>
2023-08-21 15:17:27 +00:00
Thomas Venieris
76497d34bd
fix ansible-lint: risky-octal & no-same-owner (#171)
Signed-off-by: Thomas Venieris <thomas.venieris@gmail.com>
2023-07-29 10:31:08 +02:00
Thomas Venieris
a95bc9c3e1
Fix mysqld_exporter world-readable secrets (#169)
The mysqld_exporter config includes a MySQL user passsword and the web
config may include htpasswd hashes. Don't allow everyone to peek them.

Signed-off-by: Thomas Venieris <thomas.venieris@gmail.com>
2023-07-28 09:53:31 +02:00
Jonathan Mabit
7047669da7 fix: Install package fact dependencies needs to be run as root
Signed-off-by: Jonathan Mabit <jonathan.mabit@dametis.com>
2023-05-25 13:43:24 +02:00
gardar
927ec4ede4
Merge pull request #87 from laurent-indermuehle/lie_add_tags_support_for_included_tasks
fix: tags support for included tasks
2023-05-03 12:03:55 +00:00
Laurent Indermuehle
d10a9292d7
fix: yaml indentation of tags inside apply
Signed-off-by: Laurent Indermuehle <laurent.indermuehle@epfl.ch>
2023-04-27 09:36:21 +02:00
Laurent Indermuehle
f0973a0dbc
Add apply tags for all included tasks files
Signed-off-by: Laurent Indermuehle <laurent.indermuehle@epfl.ch>
2023-04-27 09:36:20 +02:00
gardar
6231861c44
fix: pass token to github api for higher ratelimit
Signed-off-by: gardar <gardar@users.noreply.github.com>
2023-04-26 15:40:32 +00:00
Christian Brabandt
ba3be35fe7
enhancement(mysqld): add skip_install variable
This is similar to prometheus_skip_install variable and does what the
name says: when set, it won't try to re-download the mysqld exporter
binary

Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-03-21 15:54:17 +01:00
prombot
e39934bc49
fix: Don't log config deployments
Avoid logging on some config files may contain secrets.

Fixes: https://github.com/prometheus-community/ansible/issues/72

Signed-off-by: prombot <prometheus-team@googlegroups.com>
2023-03-17 11:34:30 +01:00
SuperQ
af8fc8fd9e
feat: Add mysqld_exporter role
Add a role for deploying the mysqld_exporter.

Signed-off-by: SuperQ <superq@gmail.com>
2023-03-13 21:08:38 +01:00