mirror of
https://github.com/dj-wasabi/ansible-telegraf.git
synced 2025-07-17 08:46:37 +00:00
Compare commits
6 Commits
92f3c8b0af
...
9796999f58
Author | SHA1 | Date | |
---|---|---|---|
9796999f58 | |||
084df32f10 | |||
1c6c4b02fb | |||
2088fc7001 | |||
1f142bd1a5 | |||
dc3825add5 |
47
.github/workflows/telegraf.yml
vendored
47
.github/workflows/telegraf.yml
vendored
@ -27,46 +27,49 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
molecule_distro:
|
||||
- container: rocky8
|
||||
image: geerlingguy/docker-rockylinux8-ansible
|
||||
# - container: rocky8
|
||||
# image: geerlingguy/docker-rockylinux8-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: ubuntu1804
|
||||
# image: geerlingguy/docker-ubuntu1804-ansible:latest
|
||||
- container: debian10
|
||||
image: geerlingguy/docker-debian10-ansible:latest
|
||||
- container: debian11
|
||||
image: geerlingguy/docker-debian11-ansible:latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v1
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python 3.11
|
||||
uses: actions/setup-python@v1
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.11.11
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
# - name: Install dependencies
|
||||
# run: |
|
||||
# python -m pip install --upgrade pip
|
||||
# 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
|
||||
run: >-
|
||||
MY_MOLECULE_CONTAINER=${{ matrix.molecule_distro.container }}
|
||||
MY_MOLECULE_IMAGE=${{ matrix.molecule_distro.image }}
|
||||
MY_MOLECULE_GROUP=${{ matrix.molecule_distro.group }}
|
||||
MY_MOLECULE_DOCKER_COMMAND=${{ matrix.molecule_distro.command }}
|
||||
molecule test -s empty-checkmode
|
||||
env:
|
||||
MY_MOLECULE_CONTAINER: ${{ matrix.molecule_distro.container }}
|
||||
MY_MOLECULE_IMAGE: ${{ matrix.molecule_distro.image }}
|
||||
MY_MOLECULE_GROUP: ${{ matrix.molecule_distro.group }}
|
||||
MY_MOLECULE_DOCKER_COMMAND: ${{ matrix.molecule_distro.command }}
|
||||
run: molecule test -s empty-checkmode
|
||||
|
||||
- name: Run role tests
|
||||
run: >-
|
||||
MY_MOLECULE_CONTAINER=${{ matrix.molecule_distro.container }}
|
||||
MY_MOLECULE_IMAGE=${{ matrix.molecule_distro.image }}
|
||||
MY_MOLECULE_GROUP=${{ matrix.molecule_distro.group }}
|
||||
MY_MOLECULE_DOCKER_COMMAND=${{ matrix.molecule_distro.command }}
|
||||
molecule test
|
||||
env:
|
||||
MY_MOLECULE_CONTAINER: ${{ matrix.molecule_distro.container }}
|
||||
MY_MOLECULE_IMAGE: ${{ matrix.molecule_distro.image }}
|
||||
MY_MOLECULE_GROUP: ${{ matrix.molecule_distro.group }}
|
||||
MY_MOLECULE_DOCKER_COMMAND: ${{ matrix.molecule_distro.command }}
|
||||
run: molecule test
|
||||
|
@ -1,4 +1,4 @@
|
||||
---
|
||||
- hosts: telegraf
|
||||
roles:
|
||||
- role: ansible-telegraf
|
||||
- role: ../../ansible-telegraf
|
||||
|
@ -1,4 +1,4 @@
|
||||
---
|
||||
- hosts: telegraf
|
||||
roles:
|
||||
- role: ansible-telegraf
|
||||
- role: ../../../ansible-telegraf
|
||||
|
Reference in New Issue
Block a user