mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-24 04:43:05 +00:00
fix: make sure old versions of pytest find helper
Signed-off-by: gardar <gardar@users.noreply.github.com>
This commit is contained in:
parent
3b679c9161
commit
4e98e1f597
4 changed files with 6 additions and 1 deletions
|
@ -63,6 +63,8 @@ verifier:
|
||||||
name: testinfra
|
name: testinfra
|
||||||
additional_files_or_dirs:
|
additional_files_or_dirs:
|
||||||
- "../../../../../.testinfra/testinfra_helpers.py"
|
- "../../../../../.testinfra/testinfra_helpers.py"
|
||||||
|
env:
|
||||||
|
PYTHONPATH: "${MOLECULE_PROJECT_DIRECTORY}/../../.testinfra:${PYTHONPATH}"
|
||||||
provisioner:
|
provisioner:
|
||||||
playbooks:
|
playbooks:
|
||||||
converge: "${MOLECULE_PROJECT_DIRECTORY}/../../.config/molecule/converge.yml"
|
converge: "${MOLECULE_PROJECT_DIRECTORY}/../../.config/molecule/converge.yml"
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import testinfra
|
import testinfra
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ __metaclass__ = type
|
||||||
|
|
||||||
import yaml
|
import yaml
|
||||||
from testinfra_helpers import get_target_hosts
|
from testinfra_helpers import get_target_hosts
|
||||||
|
import os
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
testinfra_hosts = get_target_hosts()
|
testinfra_hosts = get_target_hosts()
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
ansible.builtin.get_url:
|
ansible.builtin.get_url:
|
||||||
url: "https://raw.githubusercontent.com/prometheus/snmp_exporter/v{{ snmp_exporter_version }}/snmp.yml"
|
url: "https://raw.githubusercontent.com/prometheus/snmp_exporter/v{{ snmp_exporter_version }}/snmp.yml"
|
||||||
dest: /etc/snmp_exporter/snmp.yml
|
dest: /etc/snmp_exporter/snmp.yml
|
||||||
validate_certs: false
|
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
Loading…
Reference in a new issue