mirror of
https://github.com/dj-wasabi/ansible-telegraf.git
synced 2025-07-17 08:46:37 +00:00
Compare commits
2 Commits
fix-pr-run
...
master
Author | SHA1 | Date | |
---|---|---|---|
8670792f6f | |||
4803b33f89 |
49
.github/workflows/telegraf.yml
vendored
49
.github/workflows/telegraf.yml
vendored
@ -27,49 +27,46 @@ 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@v4
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
- name: Set up Python 3.11
|
- name: Set up Python 3.11
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
python-version: 3.11.11
|
python-version: 3.11.10
|
||||||
|
|
||||||
# - 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
|
||||||
env:
|
run: >-
|
||||||
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 }}
|
||||||
run: molecule test -s empty-checkmode
|
molecule test -s empty-checkmode
|
||||||
|
|
||||||
- name: Run role tests
|
- name: Run role tests
|
||||||
env:
|
run: >-
|
||||||
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 }}
|
||||||
run: molecule test
|
molecule test
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
**Merged pull requests:**
|
**Merged pull requests:**
|
||||||
|
|
||||||
|
- Better sub inputs handling [\#193](https://github.com/dj-wasabi/ansible-telegraf/pull/193) ([lisuml](https://github.com/lisuml))
|
||||||
- Bump ansible-core from 2.18.0 to 2.18.1 [\#192](https://github.com/dj-wasabi/ansible-telegraf/pull/192) ([dependabot[bot]](https://github.com/apps/dependabot))
|
- Bump ansible-core from 2.18.0 to 2.18.1 [\#192](https://github.com/dj-wasabi/ansible-telegraf/pull/192) ([dependabot[bot]](https://github.com/apps/dependabot))
|
||||||
- Bump ansible-core from 2.16.8 to 2.18.0 [\#191](https://github.com/dj-wasabi/ansible-telegraf/pull/191) ([dependabot[bot]](https://github.com/apps/dependabot))
|
- Bump ansible-core from 2.16.8 to 2.18.0 [\#191](https://github.com/dj-wasabi/ansible-telegraf/pull/191) ([dependabot[bot]](https://github.com/apps/dependabot))
|
||||||
|
|
||||||
@ -181,7 +182,6 @@
|
|||||||
- Some changes for fixing FreeBSD [\#101](https://github.com/dj-wasabi/ansible-telegraf/pull/101) ([dj-wasabi](https://github.com/dj-wasabi))
|
- Some changes for fixing FreeBSD [\#101](https://github.com/dj-wasabi/ansible-telegraf/pull/101) ([dj-wasabi](https://github.com/dj-wasabi))
|
||||||
- basic FreeBSD support [\#100](https://github.com/dj-wasabi/ansible-telegraf/pull/100) ([langerma](https://github.com/langerma))
|
- basic FreeBSD support [\#100](https://github.com/dj-wasabi/ansible-telegraf/pull/100) ([langerma](https://github.com/langerma))
|
||||||
- Added the use\_proxy argument to use a proxy \(or not\) [\#98](https://github.com/dj-wasabi/ansible-telegraf/pull/98) ([dj-wasabi](https://github.com/dj-wasabi))
|
- Added the use\_proxy argument to use a proxy \(or not\) [\#98](https://github.com/dj-wasabi/ansible-telegraf/pull/98) ([dj-wasabi](https://github.com/dj-wasabi))
|
||||||
- Various small changes for molecule [\#97](https://github.com/dj-wasabi/ansible-telegraf/pull/97) ([dj-wasabi](https://github.com/dj-wasabi))
|
|
||||||
|
|
||||||
## [0.12.0](https://github.com/dj-wasabi/ansible-telegraf/tree/0.12.0) (2019-03-12)
|
## [0.12.0](https://github.com/dj-wasabi/ansible-telegraf/tree/0.12.0) (2019-03-12)
|
||||||
|
|
||||||
@ -197,6 +197,7 @@
|
|||||||
|
|
||||||
**Merged pull requests:**
|
**Merged pull requests:**
|
||||||
|
|
||||||
|
- Various small changes for molecule [\#97](https://github.com/dj-wasabi/ansible-telegraf/pull/97) ([dj-wasabi](https://github.com/dj-wasabi))
|
||||||
- Add processors section in Telegraf config [\#94](https://github.com/dj-wasabi/ansible-telegraf/pull/94) ([ph4r5h4d](https://github.com/ph4r5h4d))
|
- Add processors section in Telegraf config [\#94](https://github.com/dj-wasabi/ansible-telegraf/pull/94) ([ph4r5h4d](https://github.com/ph4r5h4d))
|
||||||
- Updated to Telegraf 1.10.0;Different installation methods [\#93](https://github.com/dj-wasabi/ansible-telegraf/pull/93) ([dj-wasabi](https://github.com/dj-wasabi))
|
- Updated to Telegraf 1.10.0;Different installation methods [\#93](https://github.com/dj-wasabi/ansible-telegraf/pull/93) ([dj-wasabi](https://github.com/dj-wasabi))
|
||||||
- Updating Telegraf default to 1.9.5 [\#92](https://github.com/dj-wasabi/ansible-telegraf/pull/92) ([sdurrheimer](https://github.com/sdurrheimer))
|
- Updating Telegraf default to 1.9.5 [\#92](https://github.com/dj-wasabi/ansible-telegraf/pull/92) ([sdurrheimer](https://github.com/sdurrheimer))
|
||||||
|
@ -342,13 +342,13 @@ sqs:
|
|||||||
- statistic_include = ["average"]
|
- statistic_include = ["average"]
|
||||||
sub_inputs:
|
sub_inputs:
|
||||||
metrics:
|
metrics:
|
||||||
- names = [
|
- names: [
|
||||||
"ApproximateAgeOfOldestMessage",
|
"ApproximateAgeOfOldestMessage",
|
||||||
"ApproximateNumberOfMessagesVisible",
|
"ApproximateNumberOfMessagesVisible",
|
||||||
]
|
]
|
||||||
metrics.dimensions:
|
metrics.dimensions:
|
||||||
- name = "QueueName"
|
- name: "QueueName"
|
||||||
- value = "*"
|
value: "*"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Dependencies
|
## Dependencies
|
||||||
|
@ -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==11.2.0
|
ansible==9.7.0
|
||||||
ansible-compat==25.1.2
|
ansible-compat==24.10.0
|
||||||
ansible-core==2.18.2
|
ansible-core==2.18.1
|
||||||
docker==7.1.0
|
docker==7.1.0
|
||||||
molecule==25.2.0
|
molecule==6.0.3
|
||||||
molecule-docker==2.1.0
|
molecule-docker==2.1.0
|
||||||
molecule-plugins==23.7.0
|
molecule-plugins==23.5.3
|
||||||
netaddr==1.3.0
|
netaddr==1.3.0
|
||||||
pytest==8.3.4
|
pytest==8.3.3
|
||||||
pytest-testinfra==10.1.1
|
pytest-testinfra==10.1.1
|
||||||
testinfra==6.0.0
|
testinfra==6.0.0
|
||||||
|
@ -56,10 +56,16 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if item.value.sub_inputs is defined and item.value.sub_inputs is iterable %}
|
{% if item.value.sub_inputs is defined and item.value.sub_inputs is iterable %}
|
||||||
{% for sub_input, config in item.value.sub_inputs.items() %}
|
{% for sub_input_key, sub_input_list in item.value.sub_inputs.items() %}
|
||||||
[[inputs.{{ item.value.plugin | default(item.key) }}.{{ sub_input }}]]
|
{% for block in sub_input_list %}
|
||||||
{% for items in config %}
|
[[inputs.{{ item.value.plugin | default(item.key) }}.{{ sub_input_key }}]]
|
||||||
{{ items }}
|
{% for param_key, param_value in block.items() %}
|
||||||
|
{% if param_value is sequence and param_value is not string %}
|
||||||
|
{{ param_key }} = {{ param_value | to_json }}
|
||||||
|
{% else %}
|
||||||
|
{{ param_key }} = "{{ param_value }}"
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Reference in New Issue
Block a user