mirror of
https://github.com/dj-wasabi/ansible-telegraf.git
synced 2025-07-17 08:46:37 +00:00
Merge 084df32f10
into 0c7f32937f
This commit is contained in:
49
.github/workflows/telegraf.yml
vendored
49
.github/workflows/telegraf.yml
vendored
@ -27,46 +27,49 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
molecule_distro:
|
molecule_distro:
|
||||||
- container: rocky8
|
# - container: rocky8
|
||||||
image: geerlingguy/docker-rockylinux8-ansible
|
# image: geerlingguy/docker-rockylinux8-ansible
|
||||||
- container: rocky9
|
- container: rocky9
|
||||||
image: geerlingguy/docker-rockylinux9-ansible
|
image: geerlingguy/docker-rockylinux9-ansible
|
||||||
- container: ubuntu2204
|
- container: ubuntu2204
|
||||||
image: geerlingguy/docker-ubuntu2204-ansible:latest
|
image: geerlingguy/docker-ubuntu2204-ansible:latest
|
||||||
- container: ubuntu2004
|
- container: ubuntu2004
|
||||||
image: geerlingguy/docker-ubuntu2004-ansible:latest
|
image: geerlingguy/docker-ubuntu2004-ansible:latest
|
||||||
- container: ubuntu1804
|
# - container: ubuntu1804
|
||||||
image: geerlingguy/docker-ubuntu1804-ansible:latest
|
# image: geerlingguy/docker-ubuntu1804-ansible:latest
|
||||||
- container: debian10
|
- container: debian10
|
||||||
image: geerlingguy/docker-debian10-ansible:latest
|
image: geerlingguy/docker-debian10-ansible:latest
|
||||||
- container: debian11
|
- container: debian11
|
||||||
image: geerlingguy/docker-debian11-ansible:latest
|
image: geerlingguy/docker-debian11-ansible:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python 3.11
|
- name: Set up Python 3.11
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: 3.11.10
|
python-version: 3.11.11
|
||||||
|
|
||||||
- name: Install dependencies
|
# - name: Install dependencies
|
||||||
run: |
|
# run: |
|
||||||
python -m pip install --upgrade pip
|
# python -m pip install --upgrade pip
|
||||||
pip install -r requirements.txt
|
# pip install -r requirements.txt
|
||||||
|
|
||||||
|
- name: Install test dependencies.
|
||||||
|
run: pip3 install ansible molecule molecule-plugins[docker] docker pytest testinfra
|
||||||
|
|
||||||
- name: Run role tests on empty systems in check-mode
|
- name: Run role tests on empty systems in check-mode
|
||||||
run: >-
|
env:
|
||||||
MY_MOLECULE_CONTAINER=${{ matrix.molecule_distro.container }}
|
MY_MOLECULE_CONTAINER: ${{ matrix.molecule_distro.container }}
|
||||||
MY_MOLECULE_IMAGE=${{ matrix.molecule_distro.image }}
|
MY_MOLECULE_IMAGE: ${{ matrix.molecule_distro.image }}
|
||||||
MY_MOLECULE_GROUP=${{ matrix.molecule_distro.group }}
|
MY_MOLECULE_GROUP: ${{ matrix.molecule_distro.group }}
|
||||||
MY_MOLECULE_DOCKER_COMMAND=${{ matrix.molecule_distro.command }}
|
MY_MOLECULE_DOCKER_COMMAND: ${{ matrix.molecule_distro.command }}
|
||||||
molecule test -s empty-checkmode
|
run: molecule test -s empty-checkmode
|
||||||
|
|
||||||
- name: Run role tests
|
- name: Run role tests
|
||||||
run: >-
|
env:
|
||||||
MY_MOLECULE_CONTAINER=${{ matrix.molecule_distro.container }}
|
MY_MOLECULE_CONTAINER: ${{ matrix.molecule_distro.container }}
|
||||||
MY_MOLECULE_IMAGE=${{ matrix.molecule_distro.image }}
|
MY_MOLECULE_IMAGE: ${{ matrix.molecule_distro.image }}
|
||||||
MY_MOLECULE_GROUP=${{ matrix.molecule_distro.group }}
|
MY_MOLECULE_GROUP: ${{ matrix.molecule_distro.group }}
|
||||||
MY_MOLECULE_DOCKER_COMMAND=${{ matrix.molecule_distro.command }}
|
MY_MOLECULE_DOCKER_COMMAND: ${{ matrix.molecule_distro.command }}
|
||||||
molecule test
|
run: molecule test
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
- hosts: telegraf
|
- hosts: telegraf
|
||||||
roles:
|
roles:
|
||||||
- role: ansible-telegraf
|
- role: ../../ansible-telegraf
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
- hosts: telegraf
|
- hosts: telegraf
|
||||||
roles:
|
roles:
|
||||||
- role: ansible-telegraf
|
- role: ../../../ansible-telegraf
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
ansible==9.7.0
|
ansible==11.2.0
|
||||||
ansible-compat==24.10.0
|
ansible-compat==25.1.2
|
||||||
ansible-core==2.18.1
|
ansible-core==2.18.2
|
||||||
docker==7.1.0
|
docker==7.1.0
|
||||||
molecule==6.0.3
|
molecule==25.2.0
|
||||||
molecule-docker==2.1.0
|
molecule-docker==2.1.0
|
||||||
molecule-plugins==23.5.3
|
molecule-plugins==23.7.0
|
||||||
netaddr==1.3.0
|
netaddr==1.3.0
|
||||||
pytest==8.3.3
|
pytest==8.3.4
|
||||||
pytest-testinfra==10.1.1
|
pytest-testinfra==10.1.1
|
||||||
testinfra==6.0.0
|
testinfra==6.0.0
|
||||||
|
Reference in New Issue
Block a user