You've already forked ansible-role-checkmk-agent
Initial project
This commit is contained in:
17
molecule/http_direct/converge.yml
Normal file
17
molecule/http_direct/converge.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
- name: Converge
|
||||
hosts: all
|
||||
vars:
|
||||
cmk_rpm_agent: https://files.cybercinch.nz/agents/check-mk/linux/check-mk-agent-2.2.0p9-1102045deb7cb781.noarch.rpm
|
||||
cmk_dl_needs_auth: false
|
||||
cmk_add_host: false
|
||||
cmk_download_mode: inline
|
||||
cmk_omd_protocol: "{{ lookup('env', 'CMK_OMD_PROTOCOL')}}"
|
||||
cmk_omd_host: "{{ lookup('env', 'CMK_OMD_HOST')}}"
|
||||
cmk_omd_site: "{{ lookup('env', 'CMK_OMD_SITE')}}"
|
||||
cmk_username: "{{ lookup('env', 'CMK_USERNAME')}}"
|
||||
cmk_secret: "{{ lookup('env', 'CMK_SECRET')}}"
|
||||
tasks:
|
||||
- name: Include {{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}
|
||||
include_role:
|
||||
name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
|
||||
24
molecule/http_direct/molecule.yml
Normal file
24
molecule/http_direct/molecule.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
---
|
||||
dependency:
|
||||
name: galaxy
|
||||
driver:
|
||||
name: docker
|
||||
platforms:
|
||||
- name: rhel8
|
||||
image: docker.io/cybercinch/docker-almalinux8-ansible
|
||||
command: ${MOLECULE_DOCKER_COMMAND:-"/usr/sbin/init"}
|
||||
volumes: [/sys/fs/cgroup:/sys/fs/cgroup:rw]
|
||||
cgroupns_mode: host
|
||||
privileged: true
|
||||
provisioner:
|
||||
name: ansible
|
||||
log: true
|
||||
options:
|
||||
vvv: true
|
||||
verifier:
|
||||
name: ansible
|
||||
# lint: |
|
||||
# set -e
|
||||
# yamllint .
|
||||
# ansible-lint
|
||||
# flake8
|
||||
9
molecule/http_direct/verify.yml
Normal file
9
molecule/http_direct/verify.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
# This is an example playbook to execute Ansible tests.
|
||||
- name: Verify
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Example assertion
|
||||
ansible.builtin.assert:
|
||||
that: true
|
||||
Reference in New Issue
Block a user