mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-25 05:10:20 +00:00
Merge branch 'main' into fedora-38
Signed-off-by: gardar <gardar@users.noreply.github.com>
This commit is contained in:
commit
07d39f8a13
16 changed files with 31 additions and 38 deletions
|
@ -46,12 +46,6 @@ platforms:
|
|||
privileged: true
|
||||
cgroup_parent: docker.slice
|
||||
command: /lib/systemd/systemd
|
||||
- name: fedora-36
|
||||
image: dokken/fedora-36
|
||||
pre_build_image: true
|
||||
privileged: true
|
||||
cgroup_parent: docker.slice
|
||||
command: /lib/systemd/systemd
|
||||
- name: fedora-37
|
||||
image: dokken/fedora-37
|
||||
pre_build_image: true
|
||||
|
@ -64,12 +58,6 @@ platforms:
|
|||
privileged: true
|
||||
cgroup_parent: docker.slice
|
||||
command: /lib/systemd/systemd
|
||||
- name: ubuntu-18.04
|
||||
image: dokken/ubuntu-18.04
|
||||
pre_build_image: true
|
||||
privileged: true
|
||||
cgroup_parent: docker.slice
|
||||
command: /lib/systemd/systemd
|
||||
- name: ubuntu-20.04
|
||||
image: dokken/ubuntu-20.04
|
||||
pre_build_image: true
|
||||
|
|
|
@ -17,10 +17,17 @@ Minor Changes
|
|||
- feature: Make config installation dir configurable (https://github.com/prometheus-community/ansible/pull/173)
|
||||
- feature: blackbox exporter user/group configurable (https://github.com/prometheus-community/ansible/pull/172)
|
||||
|
||||
Removed Features (previously deprecated)
|
||||
----------------------------------------
|
||||
|
||||
- removed: Drop fedora 36 support as it is EOL (https://github.com/prometheus-community/ansible/pull/200)
|
||||
- removed: Drop ubuntu 18.04 support as it is EOL (https://github.com/prometheus-community/ansible/pull/199)
|
||||
|
||||
Bugfixes
|
||||
--------
|
||||
|
||||
- fix(alertmanager): add routes before match_re (https://github.com/prometheus-community/ansible/pull/194)
|
||||
- fix(node_exporter): Fix ProtectHome for textfiles (https://github.com/prometheus-community/ansible/pull/184)
|
||||
- fix: Add test for argument_specs matching (https://github.com/prometheus-community/ansible/pull/177)
|
||||
- fix: mysqld_exporter should actually respect the mysqld_exporter_host variable (https://github.com/prometheus-community/ansible/pull/88)
|
||||
|
||||
|
|
|
@ -159,27 +159,31 @@ releases:
|
|||
0.6.0:
|
||||
changes:
|
||||
minor_changes:
|
||||
- 'feat: Add role smokeping_prober (https://github.com/prometheus-community/ansible/pull/128)'
|
||||
- 'feature: blackbox exporter user/group configurable (https://github.com/prometheus-community/ansible/pull/172)'
|
||||
- 'feat: Add chrony_exporter role (https://github.com/prometheus-community/ansible/pull/159)'
|
||||
- 'feature: Make config installation dir configurable (https://github.com/prometheus-community/ansible/pull/173)'
|
||||
- 'feat: Add chrony_exporter role (https://github.com/prometheus-community/ansible/pull/159)'
|
||||
- 'feat: Add pushgateway role (https://github.com/prometheus-community/ansible/pull/127)'
|
||||
- 'feat: Add role smokeping_prober (https://github.com/prometheus-community/ansible/pull/128)'
|
||||
bugfixes:
|
||||
- 'fix: Add test for argument_specs matching (https://github.com/prometheus-community/ansible/pull/177)'
|
||||
- 'fix: mysqld_exporter should actually respect the mysqld_exporter_host variable
|
||||
(https://github.com/prometheus-community/ansible/pull/88)'
|
||||
- 'fix: Add test for argument_specs matching (https://github.com/prometheus-community/ansible/pull/177)'
|
||||
- 'fix(alertmanager): add routes before match_re (https://github.com/prometheus-community/ansible/pull/194)'
|
||||
- 'fix(node_exporter): Fix ProtectHome for textfiles (https://github.com/prometheus-community/ansible/pull/184)'
|
||||
removed_features:
|
||||
- 'removed: Drop ubuntu 18.04 support as it is EOL (https://github.com/prometheus-community/ansible/pull/199)'
|
||||
- 'removed: Drop fedora 36 support as it is EOL (https://github.com/prometheus-community/ansible/pull/200)'
|
||||
trivial:
|
||||
- 'patch: New prometheus/prometheus upstream release! (https://github.com/prometheus-community/ansible/pull/152)'
|
||||
- 'patch: New prometheus/snmp_exporter upstream release! (https://github.com/prometheus-community/ansible/pull/146)'
|
||||
- 'patch: New prometheus/mysqld_exporter upstream release! (https://github.com/prometheus-community/ansible/pull/153)'
|
||||
- 'patch: New prometheus/prometheus upstream release! (https://github.com/prometheus-community/ansible/pull/152)'
|
||||
- 'patch: New prometheus/node_exporter upstream release! (https://github.com/prometheus-community/ansible/pull/162)'
|
||||
- 'patch: New prometheus/prometheus upstream release! (https://github.com/prometheus-community/ansible/pull/168)'
|
||||
- 'Fix: rename collector flags (https://github.com/prometheus-community/ansible/pull/167)'
|
||||
- 'docs(smokeping_prober): Update arguments specs (https://github.com/prometheus-community/ansible/pull/190)'
|
||||
- Fix mysqld_exporter world-readable secrets (https://github.com/prometheus-community/ansible/pull/169)
|
||||
- 'fix ansible-lint: risky-octal & no-same-owner (https://github.com/prometheus-community/ansible/pull/171)'
|
||||
- 'patch: New prometheus/snmp_exporter upstream release! (https://github.com/prometheus-community/ansible/pull/188)'
|
||||
- 'docs(smokeping_prober): Update arguments specs (https://github.com/prometheus-community/ansible/pull/190)'
|
||||
- 'patch: New superq/smokeping_prober upstream release! (https://github.com/prometheus-community/ansible/pull/196)'
|
||||
- 'docs: Fix node_exporter 404 TLS auth links (https://github.com/prometheus-community/ansible/pull/154)'
|
||||
release_date: '2023-07-29'
|
||||
|
|
|
@ -7,7 +7,6 @@ galaxy_info:
|
|||
platforms:
|
||||
- name: "Ubuntu"
|
||||
versions:
|
||||
- "bionic"
|
||||
- "focal"
|
||||
- "jammy"
|
||||
- name: "Debian"
|
||||
|
@ -21,7 +20,6 @@ galaxy_info:
|
|||
- "9"
|
||||
- name: "Fedora"
|
||||
versions:
|
||||
- "36"
|
||||
- "37"
|
||||
- '38'
|
||||
galaxy_tags:
|
||||
|
|
|
@ -7,7 +7,6 @@ galaxy_info:
|
|||
platforms:
|
||||
- name: "Ubuntu"
|
||||
versions:
|
||||
- "bionic"
|
||||
- "focal"
|
||||
- "jammy"
|
||||
- name: "Debian"
|
||||
|
@ -21,7 +20,6 @@ galaxy_info:
|
|||
- "9"
|
||||
- name: "Fedora"
|
||||
versions:
|
||||
- "36"
|
||||
- "37"
|
||||
- '38'
|
||||
galaxy_tags:
|
||||
|
|
|
@ -7,7 +7,6 @@ galaxy_info:
|
|||
platforms:
|
||||
- name: "Ubuntu"
|
||||
versions:
|
||||
- "bionic"
|
||||
- "focal"
|
||||
- "jammy"
|
||||
- name: "Debian"
|
||||
|
@ -21,7 +20,6 @@ galaxy_info:
|
|||
- "9"
|
||||
- name: "Fedora"
|
||||
versions:
|
||||
- "36"
|
||||
- "37"
|
||||
- '38'
|
||||
galaxy_tags:
|
||||
|
|
|
@ -7,7 +7,6 @@ galaxy_info:
|
|||
platforms:
|
||||
- name: "Ubuntu"
|
||||
versions:
|
||||
- "bionic"
|
||||
- "focal"
|
||||
- "jammy"
|
||||
- name: "Debian"
|
||||
|
@ -21,7 +20,6 @@ galaxy_info:
|
|||
- "9"
|
||||
- name: "Fedora"
|
||||
versions:
|
||||
- "36"
|
||||
- "37"
|
||||
- '38'
|
||||
galaxy_tags:
|
||||
|
|
|
@ -7,7 +7,6 @@ galaxy_info:
|
|||
platforms:
|
||||
- name: "Ubuntu"
|
||||
versions:
|
||||
- "bionic"
|
||||
- "focal"
|
||||
- "jammy"
|
||||
- name: "Debian"
|
||||
|
@ -21,7 +20,6 @@ galaxy_info:
|
|||
- "9"
|
||||
- name: "Fedora"
|
||||
versions:
|
||||
- "36"
|
||||
- "37"
|
||||
- '38'
|
||||
galaxy_tags:
|
||||
|
|
|
@ -4,3 +4,4 @@ provisioner:
|
|||
group_vars:
|
||||
all:
|
||||
node_exporter_version: latest
|
||||
node_exporter_textfile_dir: /home/node_exporter
|
||||
|
|
|
@ -19,6 +19,16 @@ def test_files(host, files):
|
|||
assert f.is_file
|
||||
|
||||
|
||||
def test_directories(host):
|
||||
dirs = [
|
||||
"/home/node_exporter"
|
||||
]
|
||||
for dir in dirs:
|
||||
d = host.file(dir)
|
||||
assert d.is_directory
|
||||
assert d.exists
|
||||
|
||||
|
||||
def test_service(host):
|
||||
s = host.service("node_exporter")
|
||||
try:
|
||||
|
@ -35,7 +45,7 @@ def test_service(host):
|
|||
def test_protecthome_property(host):
|
||||
s = host.service("node_exporter")
|
||||
p = s.systemd_properties
|
||||
assert p.get("ProtectHome") == "yes"
|
||||
assert p.get("ProtectHome") == "read-only"
|
||||
|
||||
|
||||
def test_socket(host):
|
|
@ -42,6 +42,9 @@ StartLimitInterval=0
|
|||
{% for m in ansible_mounts if m.mount.startswith('/home') %}
|
||||
{% set ns.protect_home = 'read-only' %}
|
||||
{% endfor %}
|
||||
{% if node_exporter_textfile_dir.startswith('/home') %}
|
||||
{% set ns.protect_home = 'read-only' %}
|
||||
{% endif %}
|
||||
ProtectHome={{ ns.protect_home }}
|
||||
NoNewPrivileges=yes
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@ galaxy_info:
|
|||
platforms:
|
||||
- name: "Ubuntu"
|
||||
versions:
|
||||
- "bionic"
|
||||
- "focal"
|
||||
- "jammy"
|
||||
- name: "Debian"
|
||||
|
@ -21,7 +20,6 @@ galaxy_info:
|
|||
- "9"
|
||||
- name: "Fedora"
|
||||
versions:
|
||||
- "36"
|
||||
- "37"
|
||||
- '38'
|
||||
galaxy_tags:
|
||||
|
|
|
@ -7,7 +7,6 @@ galaxy_info:
|
|||
platforms:
|
||||
- name: "Ubuntu"
|
||||
versions:
|
||||
- "bionic"
|
||||
- "focal"
|
||||
- "jammy"
|
||||
- name: "Debian"
|
||||
|
@ -21,7 +20,6 @@ galaxy_info:
|
|||
- "9"
|
||||
- name: "Fedora"
|
||||
versions:
|
||||
- "36"
|
||||
- "37"
|
||||
- '38'
|
||||
galaxy_tags:
|
||||
|
|
|
@ -7,7 +7,6 @@ galaxy_info:
|
|||
platforms:
|
||||
- name: "Ubuntu"
|
||||
versions:
|
||||
- "bionic"
|
||||
- "focal"
|
||||
- "jammy"
|
||||
- name: "Debian"
|
||||
|
@ -21,7 +20,6 @@ galaxy_info:
|
|||
- "9"
|
||||
- name: "Fedora"
|
||||
versions:
|
||||
- "36"
|
||||
- "37"
|
||||
- '38'
|
||||
galaxy_tags:
|
||||
|
|
|
@ -7,7 +7,6 @@ galaxy_info:
|
|||
platforms:
|
||||
- name: "Ubuntu"
|
||||
versions:
|
||||
- "bionic"
|
||||
- "focal"
|
||||
- "jammy"
|
||||
- name: "Debian"
|
||||
|
@ -21,7 +20,6 @@ galaxy_info:
|
|||
- "9"
|
||||
- name: "Fedora"
|
||||
versions:
|
||||
- "36"
|
||||
- "37"
|
||||
- '38'
|
||||
galaxy_tags:
|
||||
|
|
|
@ -7,7 +7,6 @@ galaxy_info:
|
|||
platforms:
|
||||
- name: "Ubuntu"
|
||||
versions:
|
||||
- "bionic"
|
||||
- "focal"
|
||||
- "jammy"
|
||||
- "xenial"
|
||||
|
@ -22,7 +21,6 @@ galaxy_info:
|
|||
- "9"
|
||||
- name: "Fedora"
|
||||
versions:
|
||||
- "36"
|
||||
- "37"
|
||||
- '38'
|
||||
galaxy_tags:
|
||||
|
|
Loading…
Reference in a new issue