mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-21 11:23:08 +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
|
||||
additional_files_or_dirs:
|
||||
- "../../../../../.testinfra/testinfra_helpers.py"
|
||||
env:
|
||||
PYTHONPATH: "${MOLECULE_PROJECT_DIRECTORY}/../../.testinfra:${PYTHONPATH}"
|
||||
provisioner:
|
||||
playbooks:
|
||||
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 testinfra
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@ __metaclass__ = type
|
|||
|
||||
import yaml
|
||||
from testinfra_helpers import get_target_hosts
|
||||
import os
|
||||
import pytest
|
||||
|
||||
testinfra_hosts = get_target_hosts()
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
ansible.builtin.get_url:
|
||||
url: "https://raw.githubusercontent.com/prometheus/snmp_exporter/v{{ snmp_exporter_version }}/snmp.yml"
|
||||
dest: /etc/snmp_exporter/snmp.yml
|
||||
validate_certs: false
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
|
|
Loading…
Reference in a new issue