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>
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>
* 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>
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>
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>
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>