Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement module "site" for configuring distributed monitoring #654

Merged
merged 21 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
581df23
Tests seem to succeed. Let's see, what happens on github.
lgetwan Aug 20, 2024
080a3a4
Split into multiple files for better handling. Create Changelog.
lgetwan Aug 21, 2024
47b3b1f
renamed the module from site_management to distmon.
lgetwan Aug 21, 2024
5b21cf2
Fix indentation and truthy values in examples.
robin-checkmk Aug 22, 2024
4e5185d
More typos, wording and formatting.
robin-checkmk Aug 22, 2024
db74b82
Fix sanity.
robin-checkmk Aug 22, 2024
31ce16b
Fix indentation and truthy values.
robin-checkmk Aug 22, 2024
9fed554
Merged the changes in github with the local ones.
lgetwan Aug 27, 2024
15ccede
After internal discussions renamed the module to 'site', even though …
lgetwan Aug 27, 2024
edcf1f0
Renamed the files/folders accordingly.
lgetwan Aug 27, 2024
67e3587
Minor corrections caused by the module renaming.
lgetwan Aug 27, 2024
c8eeafa
Corrected the Changelog.
lgetwan Aug 27, 2024
2b2fbde
Cleaned up the integration tests.
lgetwan Aug 27, 2024
06cad7c
Removed the parameter 'secret'.
lgetwan Aug 28, 2024
42cfdb5
Reduce the number of sites created during the integraion tests.
lgetwan Aug 28, 2024
fa83a58
Add use-case playbook for distirbuted monitoring.
robin-checkmk Sep 5, 2024
dc3d223
Fix misaligned example.
robin-checkmk Sep 5, 2024
fd6ed64
Clean up and trim integration tests.
robin-checkmk Sep 5, 2024
ac09133
Update README.
robin-checkmk Sep 24, 2024
6d23ea0
Update changelog.
robin-checkmk Sep 24, 2024
585a317
Merge branch 'devel' of github.com:Checkmk/ansible-collection-checkmk…
robin-checkmk Sep 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions .github/workflows/ans-int-test-site_management.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# README:
# - When changing the module name, it needs to be changed in 'env:MODULE_NAME' and in 'on:pull_requests:path'!
#
# Resources:
# - Template for this file: https://github.com/ansible-collections/collection_template/blob/main/.github/workflows/ansible-test.yml
# - About Ansible integration tests: https://docs.ansible.com/ansible/latest/dev_guide/testing_integration.html

env:
NAMESPACE: checkmk
COLLECTION_NAME: general
MODULE_NAME: site_management

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

name: Ansible Integration Tests for Site Management Module
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
pull_request:
branches:
- main
- devel
paths:
- 'plugins/modules/site_management.py'
push:
paths:
- 'plugins/modules/site_management.py'

jobs:

integration:
runs-on: ubuntu-22.04
name: Ⓐ${{ matrix.ansible }}+py${{ matrix.python }}
strategy:
fail-fast: false
matrix:
ansible:
- stable-2.15
- stable-2.16
- stable-2.17
- devel
python:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
exclude:
# Exclude unsupported sets.
- ansible: stable-2.15
python: '3.12'

steps:
- name: Check out code
uses: actions/checkout@v4
with:
path: ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install ansible-base (${{ matrix.ansible }})
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check

- name: Provide secrets file
run: echo "${{ secrets.CHECKMK_DOWNLOAD_PW }}" > ./tests/integration/files/.dl-secret
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
env:
CHECKMK_DOWNLOAD_PW: ${{ secrets.CHECKMK_DOWNLOAD_PW }}

- name: Run integration test
run: ansible-test integration ${{env.MODULE_NAME}} -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker default
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
Loading
Loading