Skip to content

Commit

Permalink
minor: Update supported Ansible versions
Browse files Browse the repository at this point in the history
Ansible versions 2.11 and older are not supportable on new platforms.
Set the minimum supported Ansible version to 2.12 in order to make
updating our integration testing possible.
* Fixup minor linting issues.

Signed-off-by: SuperQ <[email protected]>
  • Loading branch information
SuperQ committed Aug 19, 2024
1 parent f25e58b commit f24db7b
Show file tree
Hide file tree
Showing 45 changed files with 45 additions and 45 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/collection_version_parser.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

"""
This module provides functions for parsing PEP 440 compliant
Expand Down
2 changes: 1 addition & 1 deletion meta/runtime.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
requires_ansible: ">=2.9.0,<=2.16.99"
requires_ansible: ">=2.12.0,<=2.17.99"
2 changes: 1 addition & 1 deletion roles/alertmanager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Deploy and manage Prometheus [alertmanager](https://github.com/prometheus/alertm

## Requirements

- Ansible >= 2.9 (It might work on previous versions, but we cannot guarantee it)
- Ansible >= 2.12 (It might work on previous versions, but we cannot guarantee it)

It would be nice to have prometheus installed somewhere

Expand Down
2 changes: 1 addition & 1 deletion roles/alertmanager/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ galaxy_info:
author: "Prometheus Community"
description: "Prometheus Alertmanager service"
license: "Apache"
min_ansible_version: "2.9"
min_ansible_version: "2.12"
platforms:
- name: "Ubuntu"
versions:
Expand Down
2 changes: 1 addition & 1 deletion roles/bind_exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Deploy prometheus [bind exporter](https://github.com/prometheus-community/bind_e

## Requirements

- Ansible >= 2.9 (It might work on previous versions, but we cannot guarantee it)
- Ansible >= 2.12 (It might work on previous versions, but we cannot guarantee it)
- gnu-tar on Mac deployer host (`brew install gnu-tar`)
- Passlib is required when using the basic authentication feature (`pip install passlib[bcrypt]`)

Expand Down
2 changes: 1 addition & 1 deletion roles/bind_exporter/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ galaxy_info:
author: "Prometheus Community"
description: "Prometheus BIND Exporter"
license: "Apache"
min_ansible_version: "2.9"
min_ansible_version: "2.12"
platforms:
- name: "Ubuntu"
versions:
Expand Down
2 changes: 1 addition & 1 deletion roles/blackbox_exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Deploy and manage [blackbox exporter](https://github.com/prometheus/blackbox_exp

## Requirements

- Ansible >= 2.9 (It might work on previous versions, but we cannot guarantee it)
- Ansible >= 2.12 (It might work on previous versions, but we cannot guarantee it)
- gnu-tar on Mac deployer host (`brew install gnu-tar`)

## Role Variables
Expand Down
2 changes: 1 addition & 1 deletion roles/blackbox_exporter/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ galaxy_info:
author: "Prometheus Community"
description: "Prometheus Blackbox Exporter"
license: "Apache"
min_ansible_version: "2.9"
min_ansible_version: "2.12"
platforms:
- name: "Ubuntu"
versions:
Expand Down
2 changes: 1 addition & 1 deletion roles/cadvisor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Deploy [cadvisor](https://github.com/google/cadvisor) using ansible.

## Requirements

- Ansible >= 2.9 (It might work on previous versions, but we cannot guarantee it)
- Ansible >= 2.12 (It might work on previous versions, but we cannot guarantee it)
- gnu-tar on Mac deployer host (`brew install gnu-tar`)
- Passlib is required when using the basic authentication feature (`pip install passlib[bcrypt]`)

Expand Down
2 changes: 1 addition & 1 deletion roles/cadvisor/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ galaxy_info:
author: "cAdvisor Authors"
description: "cAdvisor"
license: "Apache"
min_ansible_version: "2.9"
min_ansible_version: "2.12"
platforms:
- name: "Ubuntu"
versions:
Expand Down
2 changes: 1 addition & 1 deletion roles/chrony_exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Deploy prometheus [chrony_exporter](https://github.com/superq/chrony_exporter) u

## Requirements

- Ansible >= 2.9 (It might work on previous versions, but we cannot guarantee it)
- Ansible >= 2.12 (It might work on previous versions, but we cannot guarantee it)
- gnu-tar on Mac deployer host (`brew install gnu-tar`)
- Passlib is required when using the basic authentication feature (`pip install passlib[bcrypt]`)

Expand Down
2 changes: 1 addition & 1 deletion roles/chrony_exporter/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ galaxy_info:
author: "Prometheus Community"
description: "Prometheus Chrony Exporter"
license: "Apache"
min_ansible_version: "2.9"
min_ansible_version: "2.12"
platforms:
- name: "Ubuntu"
versions:
Expand Down
2 changes: 1 addition & 1 deletion roles/fail2ban_exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Deploy prometheus [fail2ban_exporter](https://gitlab.com/hectorjsmith/fail2ban-p

## Requirements

- Ansible >= 2.9 (It might work on previous versions, but we cannot guarantee it)
- Ansible >= 2.12 (It might work on previous versions, but we cannot guarantee it)
- gnu-tar on Mac deployer host (`brew install gnu-tar`)
- Passlib is required when using the basic authentication feature (`pip install passlib[bcrypt]`)

Expand Down
2 changes: 1 addition & 1 deletion roles/fail2ban_exporter/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ galaxy_info:
author: "Prometheus Community"
description: "Prometheus fail2ban_exporter"
license: "Apache"
min_ansible_version: "2.9"
min_ansible_version: "2.12"
platforms:
- name: "Ubuntu"
versions:
Expand Down
2 changes: 1 addition & 1 deletion roles/ipmi_exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Deploy prometheus [ipmi_exporter](https://github.com/prometheus-community/ipmi_e

## Requirements

- Ansible >= 2.9 (It might work on previous versions, but we cannot guarantee it)
- Ansible >= 2.12 (It might work on previous versions, but we cannot guarantee it)
- gnu-tar on Mac deployer host (`brew install gnu-tar`)
- Passlib is required when using the basic authentication feature (`pip install passlib[bcrypt]`)

Expand Down
2 changes: 1 addition & 1 deletion roles/ipmi_exporter/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ galaxy_info:
author: "Prometheus Community"
description: "Prometheus ipmi_exporter"
license: "Apache"
min_ansible_version: "2.9"
min_ansible_version: "2.12"
platforms:
- name: "Ubuntu"
versions:
Expand Down
2 changes: 1 addition & 1 deletion roles/memcached_exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Deploy prometheus [memcached_exporter](https://github.com/prometheus/memcached_e

## Requirements

- Ansible >= 2.9 (It might work on previous versions, but we cannot guarantee it)
- Ansible >= 2.12 (It might work on previous versions, but we cannot guarantee it)
- gnu-tar on Mac deployer host (`brew install gnu-tar`)
- Passlib is required when using the basic authentication feature (`pip install passlib[bcrypt]`)

Expand Down
2 changes: 1 addition & 1 deletion roles/memcached_exporter/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ galaxy_info:
author: "Prometheus Community"
description: "Prometheus memcached_exporter"
license: "Apache"
min_ansible_version: "2.9"
min_ansible_version: "2.12"
platforms:
- name: "Ubuntu"
versions:
Expand Down
2 changes: 1 addition & 1 deletion roles/mongodb_exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Deploy prometheus [mongodb_exporter](https://github.com/percona/mongodb_exporter

## Requirements

- Ansible >= 2.9 (It might work on previous versions, but we cannot guarantee it)
- Ansible >= 2.12 (It might work on previous versions, but we cannot guarantee it)
- gnu-tar on Mac deployer host (`brew install gnu-tar`)
- Passlib is required when using the basic authentication feature (`pip install passlib[bcrypt]`)

Expand Down
2 changes: 1 addition & 1 deletion roles/mongodb_exporter/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ galaxy_info:
author: "Prometheus Community"
description: "Prometheus mongodb_exporter"
license: "Apache"
min_ansible_version: "2.9"
min_ansible_version: "2.12"
platforms:
- name: "Ubuntu"
versions:
Expand Down
2 changes: 1 addition & 1 deletion roles/mysqld_exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Deploy prometheus [mysql exporter](https://github.com/prometheus/mysqld_exporter

## Requirements

- Ansible >= 2.9 (It might work on previous versions, but we cannot guarantee it)
- Ansible >= 2.12 (It might work on previous versions, but we cannot guarantee it)
- gnu-tar on Mac deployer host (`brew install gnu-tar`)
- Passlib is required when using the basic authentication feature (`pip install passlib[bcrypt]`)

Expand Down
2 changes: 1 addition & 1 deletion roles/mysqld_exporter/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ galaxy_info:
author: "Prometheus Community"
description: "Prometheus MySQLd Exporter"
license: "Apache"
min_ansible_version: "2.9"
min_ansible_version: "2.12"
platforms:
- name: "Ubuntu"
versions:
Expand Down
2 changes: 1 addition & 1 deletion roles/nginx_exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Deploy prometheus [nginx_exporter](https://github.com/nginxinc/nginx-prometheus-

## Requirements

- Ansible >= 2.9 (It might work on previous versions, but we cannot guarantee it)
- Ansible >= 2.12 (It might work on previous versions, but we cannot guarantee it)
- gnu-tar on Mac deployer host (`brew install gnu-tar`)
- Passlib is required when using the basic authentication feature (`pip install passlib[bcrypt]`)

Expand Down
2 changes: 1 addition & 1 deletion roles/nginx_exporter/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ galaxy_info:
author: "Prometheus Community"
description: "Prometheus nginx_exporter"
license: "Apache"
min_ansible_version: "2.9"
min_ansible_version: "2.12"
platforms:
- name: "Ubuntu"
versions:
Expand Down
2 changes: 1 addition & 1 deletion roles/node_exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Deploy prometheus [node exporter](https://github.com/prometheus/node_exporter) u

## Requirements

- Ansible >= 2.9 (It might work on previous versions, but we cannot guarantee it)
- Ansible >= 2.12 (It might work on previous versions, but we cannot guarantee it)
- gnu-tar on Mac deployer host (`brew install gnu-tar`)
- Passlib is required when using the basic authentication feature (`pip install passlib[bcrypt]`)

Expand Down
2 changes: 1 addition & 1 deletion roles/node_exporter/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ galaxy_info:
author: "Prometheus Community"
description: "Prometheus Node Exporter"
license: "Apache"
min_ansible_version: "2.9"
min_ansible_version: "2.12"
platforms:
- name: "Ubuntu"
versions:
Expand Down
2 changes: 1 addition & 1 deletion roles/postgres_exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Deploy prometheus [postgresql exporter](https://github.com/prometheus-community/

## Requirements

- Ansible >= 2.9 (It might work on previous versions, but we cannot guarantee it)
- Ansible >= 2.12 (It might work on previous versions, but we cannot guarantee it)
- gnu-tar on Mac deployer host (`brew install gnu-tar`)
- Passlib is required when using the basic authentication feature (`pip install passlib[bcrypt]`)

Expand Down
2 changes: 1 addition & 1 deletion roles/postgres_exporter/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ galaxy_info:
author: "Prometheus Community"
description: "Prometheus PostgreSQL Exporter"
license: "Apache"
min_ansible_version: "2.9"
min_ansible_version: "2.12"
platforms:
- name: "Ubuntu"
versions:
Expand Down
2 changes: 1 addition & 1 deletion roles/process_exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Note. This repository and role uses the name process_exporter to conform with an

## Requirements

- Ansible >= 2.9 (It might work on previous versions, but we cannot guarantee it)
- Ansible >= 2.12 (It might work on previous versions, but we cannot guarantee it)

## Role Variables

Expand Down
2 changes: 1 addition & 1 deletion roles/process_exporter/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ galaxy_info:
author: "Prometheus Community"
description: "Prometheus Process Exporter"
license: "Apache"
min_ansible_version: "2.9"
min_ansible_version: "2.12"
platforms:
- name: "Ubuntu"
versions:
Expand Down
2 changes: 1 addition & 1 deletion roles/prometheus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Deploy [Prometheus](https://github.com/prometheus/prometheus) monitoring system

## Requirements

- Ansible >= "2.9" (It might work on previous versions, but we cannot guarantee it)
- Ansible >= "2.12" (It might work on previous versions, but we cannot guarantee it)
- gnu-tar on Mac deployer host (`brew install gnu-tar`)

## Role Variables
Expand Down
2 changes: 1 addition & 1 deletion roles/prometheus/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ galaxy_info:
author: "Prometheus Community"
description: "Prometheus monitoring system configuration and management"
license: "Apache"
min_ansible_version: "2.9"
min_ansible_version: "2.12"
platforms:
- name: "Ubuntu"
versions:
Expand Down
2 changes: 1 addition & 1 deletion roles/pushgateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Deploy prometheus [pushgateway](https://github.com/prometheus/pushgateway) using

## Requirements

- Ansible >= 2.9 (It might work on previous versions, but we cannot guarantee it)
- Ansible >= 2.12 (It might work on previous versions, but we cannot guarantee it)
- gnu-tar on Mac deployer host (`brew install gnu-tar`)
- Passlib is required when using the basic authentication feature (`pip install passlib[bcrypt]`)

Expand Down
2 changes: 1 addition & 1 deletion roles/pushgateway/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ galaxy_info:
author: "Prometheus Community"
description: "Prometheus Pushgateway"
license: "Apache"
min_ansible_version: "2.9"
min_ansible_version: "2.12"
platforms:
- name: "Ubuntu"
versions:
Expand Down
2 changes: 1 addition & 1 deletion roles/redis_exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Deploy prometheus [redis_exporter](https://github.com/oliver006/redis_exporter/)

## Requirements

- Ansible >= 2.9 (It might work on previous versions, but we cannot guarantee it)
- Ansible >= 2.12 (It might work on previous versions, but we cannot guarantee it)
- gnu-tar on Mac deployer host (`brew install gnu-tar`)

## Role Variables
Expand Down
2 changes: 1 addition & 1 deletion roles/redis_exporter/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ galaxy_info:
author: "Prometheus Community"
description: "Prometheus redis_exporter"
license: "Apache"
min_ansible_version: "2.9"
min_ansible_version: "2.12"
platforms:
- name: "Ubuntu"
versions:
Expand Down
2 changes: 1 addition & 1 deletion roles/smartctl_exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Deploy prometheus [smartctl_exporter](https://github.com/prometheus-community/sm

## Requirements

- Ansible >= 2.9 (It might work on previous versions, but we cannot guarantee it)
- Ansible >= 2.12 (It might work on previous versions, but we cannot guarantee it)
- gnu-tar on Mac deployer host (`brew install gnu-tar`)
- Passlib is required when using the basic authentication feature (`pip install passlib[bcrypt]`)

Expand Down
2 changes: 1 addition & 1 deletion roles/smartctl_exporter/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ galaxy_info:
author: "Prometheus Community"
description: "Prometheus Smartctl Exporter"
license: "Apache"
min_ansible_version: "2.9"
min_ansible_version: "2.12"
platforms:
- name: "Ubuntu"
versions:
Expand Down
2 changes: 1 addition & 1 deletion roles/smokeping_prober/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Deploy prometheus [smokeping_prober](https://github.com/superq/smokeping_prober)

## Requirements

- Ansible >= 2.9 (It might work on previous versions, but we cannot guarantee it)
- Ansible >= 2.12 (It might work on previous versions, but we cannot guarantee it)
- gnu-tar on Mac deployer host (`brew install gnu-tar`)
- Passlib is required when using the basic authentication feature (`pip install passlib[bcrypt]`)

Expand Down
2 changes: 1 addition & 1 deletion roles/smokeping_prober/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ galaxy_info:
author: "Prometheus Community"
description: "Prometheus Smokeping Prober"
license: "Apache"
min_ansible_version: "2.9"
min_ansible_version: "2.12"
platforms:
- name: "Ubuntu"
versions:
Expand Down
2 changes: 1 addition & 1 deletion roles/snmp_exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Deploy and manage prometheus [SNMP exporter](https://github.com/prometheus/snmp_

## Requirements

- Ansible >= 2.9 (It might work on previous versions, but we cannot guarantee it)
- Ansible >= 2.12 (It might work on previous versions, but we cannot guarantee it)

## Role Variables

Expand Down
2 changes: 1 addition & 1 deletion roles/snmp_exporter/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ galaxy_info:
author: "Prometheus Community"
description: "Prometheus SNMP Exporter"
license: "Apache"
min_ansible_version: "2.9"
min_ansible_version: "2.12"
platforms:
- name: "Ubuntu"
versions:
Expand Down
2 changes: 1 addition & 1 deletion roles/systemd_exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Deploy prometheus [systemd exporter](https://github.com/prometheus-community/sys

## Requirements

- Ansible >= 2.9 (It might work on previous versions, but we cannot guarantee it)
- Ansible >= 2.12 (It might work on previous versions, but we cannot guarantee it)
- gnu-tar on Mac deployer host (`brew install gnu-tar`)

## Role Variables
Expand Down
2 changes: 1 addition & 1 deletion roles/systemd_exporter/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ galaxy_info:
author: "Prometheus Community"
description: "Prometheus Systemd Exporter"
license: "Apache"
min_ansible_version: "2.9"
min_ansible_version: "2.12"
platforms:
- name: "Ubuntu"
versions:
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/molecule.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ unset _ANSIBLE_COVERAGE_CONFIG
unset ANSIBLE_PYTHON_INTERPRETER

# Run molecule test
cd "$role_root"
cd "${role_root}" || exit 1
molecule -c "$collection_root/.config/molecule/config.yml" test -s "$scenario"

0 comments on commit f24db7b

Please sign in to comment.