Merge branch 'master' of github.com:dj-wasabi/ansible-telegraf

This commit is contained in:
Werner Dijkerman
2023-10-20 18:07:07 +02:00
5 changed files with 22 additions and 14 deletions

View File

@ -22,23 +22,21 @@ on:
- '.github/workflows/telegraf.yml'
jobs:
molecule:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
molecule_distro:
- container: centos7
image: geerlingguy/docker-centos7-ansible:latest
- container: rocky8
image: geerlingguy/docker-rockylinux8-ansible
# - container: rocky9
# image: geerlingguy/docker-rockylinux9-ansible
- container: rocky9
image: geerlingguy/docker-rockylinux9-ansible
- container: ubuntu2204
image: geerlingguy/docker-ubuntu2204-ansible:latest
- container: ubuntu2004
image: geerlingguy/docker-ubuntu2004-ansible:latest
- container: ubuntu1804
image: geerlingguy/docker-ubuntu1804-ansible:latest
- container: ubuntu1604
image: geerlingguy/docker-ubuntu1604-ansible:latest
- container: debian9
image: geerlingguy/docker-debian9-ansible:latest
- container: debian10
@ -57,7 +55,6 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
curl -so requirements.txt 'https://raw.githubusercontent.com/dj-wasabi/dj-wasabi-release/main/requirements.txt'
pip install -r requirements.txt
- name: Run role tests on empty systems in check-mode

View File

@ -10,6 +10,7 @@
**Fixed bugs:**
- Fix molecule tests so that PR's can properly validated [\#180](https://github.com/dj-wasabi/ansible-telegraf/pull/180) ([dj-wasabi](https://github.com/dj-wasabi))
- Replace apt\_key with get\_url [\#170](https://github.com/dj-wasabi/ansible-telegraf/pull/170) ([danclough](https://github.com/danclough))
**Closed issues:**

View File

@ -4,6 +4,7 @@ dependency:
driver:
name: docker
role_name_check: 1
platforms:
- name: influxdb
image: influxdb:1.7-alpine
@ -19,10 +20,11 @@ platforms:
command: ${MY_MOLECULE_DOCKER_COMMAND:-""}
privileged: True
pre_build_image: True
cgroupns_mode: host
networks:
- name: telegraf
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /sys/fs/cgroup:/sys/fs/cgroup:rw
groups:
- telegraf
@ -64,5 +66,3 @@ scenario:
name: default
verifier:
name: testinfra
lint:
name: flake8

View File

@ -4,16 +4,18 @@ dependency:
driver:
name: docker
role_name_check: 1
platforms:
- name: telegraf-${MY_MOLECULE_CONTAINER:-centos8}
image: ${MY_MOLECULE_IMAGE:-"geerlingguy/docker-centos8-ansible"}
command: ${MY_MOLECULE_DOCKER_COMMAND:-""}
privileged: True
pre_build_image: True
cgroupns_mode: host
networks:
- name: telegraf
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /sys/fs/cgroup:/sys/fs/cgroup:rw
groups:
- telegraf
@ -66,5 +68,3 @@ scenario:
- destroy
verifier:
name: testinfra
lint:
name: flake8

10
requirements.txt Normal file
View File

@ -0,0 +1,10 @@
ansible==8.2.0
ansible-compat==4.1.7
ansible-core==2.15.2
docker==6.1.3
molecule==6.0.1
molecule-docker==2.1.0
netaddr==0.8.0
pytest==7.4.2
pytest-testinfra==9.0.0
testinfra==6.0.0