Commit graph

33 commits

Author SHA1 Message Date
Mark Tomich
d25f772f5f adding *_archive_path by request
Signed-off-by: Mark Tomich <tomichms@nih.gov>
2024-02-29 13:21:57 -05: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
molpako
a38e7eed3f fix(mysqld_exporter): Change condition for mysqld_exporter_host check
Modify the condition for `mysqld_exporter_host` in the mysqld_exporter my_cnf.j2 template to address an issue where `mysqld_exporter_host: null` in roles/defaults/main.yml was not being handled correctly. The updated condition ensures the host setting logic operates properly even when `mysqld_exporter_host` is set to null.

Signed-off-by: molpako <system.222.down@gmail.com>
2024-01-03 22:57:15 +09: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
github-actions[bot]
558b29c155
patch: 🎉 automated upstream release update (#262)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
Co-authored-by: prombot <prometheus-team@googlegroups.com>
2023-12-12 15:51:21 +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
07d39f8a13
Merge branch 'main' into fedora-38
Signed-off-by: gardar <gardar@users.noreply.github.com>
2023-08-22 13:42:43 +00:00
gardar
7c77244527
Merge pull request #200 from gardar/eol-fedora-36
removed: Drop fedora 36 support as it is EOL
2023-08-22 09:07:58 +00:00
gardar
d6f370be8d
minor: support fedora 38
Signed-off-by: gardar <gardar@users.noreply.github.com>
2023-08-22 02:17:03 +00:00
gardar
422ef282fa
removed: Drop fedora 36 support as it is EOL
Signed-off-by: gardar <gardar@users.noreply.github.com>
2023-08-22 02:06:01 +00:00
gardar
49860ae607
removed: Drop ubuntu 18.04 support as it is EOL
Signed-off-by: gardar <gardar@users.noreply.github.com>
2023-08-22 02:02:26 +00: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
gardar
d9e0c77bfb
skip_changelog: merge all role molecule converge into one
Signed-off-by: gardar <gardar@users.noreply.github.com>
2023-08-18 19:03:40 +00:00
gardar
083ff4ef36
skip_changelog: make testinfra tests capture logs on service failure
Signed-off-by: gardar <gardar@users.noreply.github.com>
2023-08-18 15:47:32 +00:00
Ben Kochie
100b6e2070
fix: Add test for argument_specs matching (#177)
* fix: Add test for argument_specs matching

Compare contents of `meta/arguments_spec.yml` against `defaults/main.yml` on
each role to make sure keys match.

Signed-off-by: SuperQ <superq@gmail.com>

* Fixup arguments_spec linting issues.

Signed-off-by: SuperQ <superq@gmail.com>

---------

Signed-off-by: SuperQ <superq@gmail.com>
2023-08-16 17:49:02 +02: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
Janos Tassy
f02bf8db0e
fix: mysqld_exporter should actually respect the mysqld_exporter_host variable (#88)
Signed-off-by: Ben Kochie <superq@gmail.com>
2023-07-06 11:16:05 +02:00
prombot
9bb137c721 patch: 🎉 automated upstream release update
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2023-06-26 14:32:10 +00: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
9e64a645db
fix: document supported platform versions
Signed-off-by: gardar <gardar@users.noreply.github.com>
2023-04-26 18:23:29 +00: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
Ilari Iso-Junno
9812360144 enhancement: support ansible-vaulted basic auth passwords
If ansible-vaulted password is passed to password_hash filter, it will throw and error:
'secret must be unicode or bytes, not ansible.parsing.yaml.objects.AnsibleVaultEncryptedUnicode'
Handling the vaulted password with string filter first will avoid the problem.

Signed-off-by: Ilari Iso-Junno <iisojunn@users.noreply.github.com>
2023-04-12 10:45:46 +03:00
gardar
2a1123ad94
docs: avoid maintaining variable documentation in many places
Signed-off-by: gardar <gardar@users.noreply.github.com>
2023-04-11 14:48:13 +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