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

New Testing Ideas #608

Draft
wants to merge 312 commits into
base: devel
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
312 commits
Select commit Hold shift + click to select a range
341b325
Merge branch 'devel' of github.com:Checkmk/ansible-collection-checkmk…
robin-checkmk Jun 13, 2024
6e48c2b
Merge branch 'feature/agent-improve-idempotency' into bugfix/setup-do…
robin-checkmk Jun 13, 2024
b1d2c35
Remove irrelevant exclude.
robin-checkmk Jun 13, 2024
fdbd100
Merge pull request #611 from Checkmk/build/add-changelog-to-release
robin-checkmk Jun 14, 2024
e1156d8
Merge pull request #614 from Checkmk/feature/mark-internal-vars
robin-checkmk Jun 14, 2024
0ecb6f1
Merge branch 'devel' into feature/agent-improve-idempotency
robin-checkmk Jun 14, 2024
98765d7
Fix fail logic for Linux agent read updater task.
robin-checkmk Jun 14, 2024
fd19522
Merge branch 'feature/agent-improve-idempotency' of github.com:Checkm…
robin-checkmk Jun 14, 2024
6585633
Fix conditional.
robin-checkmk Jun 14, 2024
0a1edd3
Bugfix fail logic.
robin-checkmk Jun 14, 2024
dca1703
Merge pull request #623 from Checkmk/bugfix/setup-download-status
robin-checkmk Jun 14, 2024
d51026c
Add changelog.
robin-checkmk Jun 14, 2024
4f35237
Merge pull request #615 from Checkmk/feature/agent-improve-idempotency
robin-checkmk Jun 14, 2024
07f1a74
Temporarily disable integration tests against Checkmk 2.1.0 until a p…
robin-checkmk Jun 14, 2024
bb06136
Remove accidentally added file.
robin-checkmk Jun 14, 2024
f2b9aec
Add changelogs.
robin-checkmk Jun 14, 2024
a345b80
Bump minimum Ansible version.
robin-checkmk Jun 14, 2024
593c9ca
Update action groups.
robin-checkmk Jun 14, 2024
8f4488e
Minor cleanup to agent role.
robin-checkmk Jun 14, 2024
af651ba
Merge pull request #622 from Checkmk/devel
robin-checkmk Jun 17, 2024
a0dc4b7
Update Docs and Changelogs upon Release
robin-checkmk Jun 17, 2024
43ef160
Merge pull request #625 from Checkmk/changelogs-docs-update-5.1.0
robin-checkmk Jun 17, 2024
e1a7e3d
Merge pull request #626 from Checkmk/devel
robin-checkmk Jun 17, 2024
fb915a6
Bugfix integration test for activation module.
robin-checkmk Jun 18, 2024
b125928
Merge pull request #627 from Checkmk/devel
robin-checkmk Jun 18, 2024
9606c49
Fix task title.
robin-checkmk Jun 21, 2024
6753b4a
Fix downtimes not being removed when only specifying one service
maroessler Jul 2, 2024
4b42944
Bump Checkmk versions for tests.
robin-checkmk Jul 8, 2024
b6ab009
Fix typo.
robin-checkmk Jul 8, 2024
7fc0fa9
Add tests for downtime module
maroessler Jul 2, 2024
cb22160
Fix #631.
robin-checkmk Jul 12, 2024
d8fde39
Add `changed_when`.
robin-checkmk Jul 12, 2024
c6189fe
Add `flush_handlers` to Linux.yml to align wth Windows.
robin-checkmk Jul 12, 2024
ce3aa38
Sort "Read" tasks more naturally.
robin-checkmk Jul 12, 2024
b577663
Add `changed_when`.
robin-checkmk Jul 12, 2024
ac322ba
Clean up duplicate activation triggers.
robin-checkmk Jul 12, 2024
80ca896
Allow registering on a http subsite with a https central site.
gfokkema Jul 1, 2024
2b26bd8
Merge pull request #632 from maroessler/main
robin-checkmk Jul 12, 2024
4f8c6c6
Merge branch 'devel' of github.com:Checkmk/ansible-collection-checkmk…
robin-checkmk Jul 12, 2024
c97bec6
Move option.
robin-checkmk Jul 12, 2024
aa52cb4
Merge pull request #638 from gfokkema/devel
robin-checkmk Jul 12, 2024
5c6c50a
Merge pull request #636 from Checkmk/bugfix/agent-conditional-registr…
robin-checkmk Jul 17, 2024
8dbfe51
Bump collection version and Checkmk versions.
robin-checkmk Jul 17, 2024
b2eaeac
Fix #634
robin-checkmk Jul 17, 2024
e9eb088
Initial commit for taggroup update
Max-checkmk Jul 17, 2024
c6f01c2
Add more space
Max-checkmk Jul 17, 2024
3270f23
Black added
Max-checkmk Jul 17, 2024
36b6d1b
Add changelog.
robin-checkmk Jul 19, 2024
2ef1700
Remove VirtualBox stuff, as we do not use it anymore.
robin-checkmk Jul 24, 2024
a40b26f
Update Makefile.
robin-checkmk Jul 24, 2024
1289a58
Add release summary.
robin-checkmk Jul 24, 2024
86ffeb5
Add changelog.
robin-checkmk Jul 24, 2024
d422bec
docs: add ansible.utils dependency to README
krsche Jul 24, 2024
e89e207
Merge pull request #643 from krsche/patch-1
robin-checkmk Jul 25, 2024
568952f
Cleanup playbooks.
robin-checkmk Jul 29, 2024
70c2dab
Add changelog.
robin-checkmk Jul 29, 2024
125aa2a
Bump Checkmk version.
robin-checkmk Jul 29, 2024
750f7c5
Further improvements
Max-checkmk Jul 31, 2024
0beeb18
And another one
Max-checkmk Jul 31, 2024
8bc9c37
Merge pull request #640 from Checkmk/taggroup_update2.4
robin-checkmk Aug 1, 2024
8a4c714
Finalize release.
robin-checkmk Aug 5, 2024
f591d81
Merge pull request #637 from Checkmk/devel
robin-checkmk Aug 5, 2024
9f6e776
Update Docs and Changelogs upon Release
robin-checkmk Aug 5, 2024
1056cdf
Merge pull request #644 from Checkmk/changelogs-docs-update-5.2.0
robin-checkmk Aug 5, 2024
55d2290
Merge pull request #645 from Checkmk/devel
robin-checkmk Aug 5, 2024
f26f7f3
Bump Checkmk Version.
robin-checkmk Aug 7, 2024
791b4a2
Bump Checkmk version.
robin-checkmk Aug 13, 2024
3503989
Looks like it is fixed NOW.
lgetwan Aug 14, 2024
a36a3bf
Removed debugging.
lgetwan Aug 14, 2024
6ed8a5b
Merge pull request #648 from Checkmk/fix/531-folder-network-scan-result
robin-checkmk Aug 14, 2024
112e68c
Prepare release.
robin-checkmk Aug 14, 2024
2501b85
Add changelogs.
robin-checkmk Aug 14, 2024
ef2f9d9
Merge pull request #649 from Checkmk/devel
robin-checkmk Aug 14, 2024
c4268b1
Update Docs and Changelogs upon Release
robin-checkmk Aug 14, 2024
5f6e4b6
Merge pull request #650 from Checkmk/changelogs-docs-update-5.2.1
robin-checkmk Aug 14, 2024
1c9f628
Merge pull request #651 from Checkmk/devel
robin-checkmk Aug 14, 2024
20056ec
Bump contributor-assistant/github-action from 2.4.0 to 2.5.1
dependabot[bot] Aug 19, 2024
65e990e
Merge pull request #653 from Checkmk/dependabot/github_actions/devel/…
robin-checkmk Aug 19, 2024
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
0fb0a24
Fix quotes.
robin-checkmk Aug 22, 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
ec1191a
Bump Checkmk Versions.
robin-checkmk Aug 27, 2024
558ebb1
Bugfix quotes.
robin-checkmk Aug 27, 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
03c2f57
Add 'build' and 'install' make target.
robin-checkmk Sep 5, 2024
5207610
Minor fixes.
robin-checkmk Sep 5, 2024
a4c43cc
Initial commit
Max-checkmk Sep 6, 2024
b16d9ca
resorted imports
Max-checkmk Sep 6, 2024
efb6bf4
First try to implement unit test in github
Max-checkmk Sep 6, 2024
dae287b
removed unsupported options
Max-checkmk Sep 6, 2024
795fe4f
included path for test
Max-checkmk Sep 6, 2024
caf6f68
removed python 3.12 from test
Max-checkmk Sep 6, 2024
2cb7d94
Removed Python 3.9
Max-checkmk Sep 6, 2024
8804286
Bump peter-evans/create-pull-request from 6 to 7
dependabot[bot] Sep 9, 2024
bdea909
Added handling of NoneType as Tag-id
Max-checkmk Sep 9, 2024
b6039f1
littleblack
Max-checkmk Sep 9, 2024
312a81f
Added handling of taggroups with a single tag
Max-checkmk Sep 10, 2024
bca1cf9
littleblackening
Max-checkmk Sep 10, 2024
3e664aa
Merge pull request #657 from Checkmk/dependabot/github_actions/devel/…
robin-checkmk Sep 11, 2024
245a56f
Created Lookup Modules 'site' and 'sites'.
lgetwan Sep 11, 2024
b97dd9e
Debugging
lgetwan Sep 11, 2024
d7de286
Debugging
lgetwan Sep 11, 2024
c5742da
Debugging
lgetwan Sep 11, 2024
246a66a
Debugging
lgetwan Sep 11, 2024
389fab7
Debugging
lgetwan Sep 13, 2024
7cff0d6
Debugging
lgetwan Sep 13, 2024
6a1d16b
Oba jetze!
lgetwan Sep 13, 2024
9e937a0
sigh...
lgetwan Sep 13, 2024
d30cb1d
Ja, sakra!
lgetwan Sep 13, 2024
3e94976
Bump Checkmk Versions.
robin-checkmk Sep 19, 2024
41e4c22
Added newline
Max-checkmk Sep 19, 2024
e934882
activating concurrency in unit-test
Max-checkmk Sep 19, 2024
7dd5f6d
Bump contributor-assistant/github-action from 2.5.1 to 2.5.2
dependabot[bot] Sep 23, 2024
eaf9cf8
Merge pull request #661 from Checkmk/dependabot/github_actions/devel/…
robin-checkmk Sep 23, 2024
a22aacc
Bump Checkmk Versions.
robin-checkmk Sep 23, 2024
e87b1e5
Update documentation.
robin-checkmk Sep 23, 2024
ddeb513
Align file extension with other workflows.
robin-checkmk Sep 24, 2024
7591b93
Update lookup demo playbook.
robin-checkmk Sep 24, 2024
ec3c390
Add modules to README.
robin-checkmk Sep 24, 2024
ac09133
Update README.
robin-checkmk Sep 24, 2024
6d23ea0
Update changelog.
robin-checkmk Sep 24, 2024
96c24a4
Remove dynamic inventory from roadmap.
robin-checkmk Sep 24, 2024
e17ded5
Update variable linting regex to include internal variables.
robin-checkmk Sep 24, 2024
d19736e
Disable modules from the future in demo playbook.
robin-checkmk Sep 25, 2024
08debeb
Update CODEOWNERS.
robin-checkmk Sep 25, 2024
585a317
Merge branch 'devel' of github.com:Checkmk/ansible-collection-checkmk…
robin-checkmk Sep 25, 2024
b6afd7e
Merge branch 'devel' of github.com:Checkmk/ansible-collection-checkmk…
robin-checkmk Sep 25, 2024
fbcd840
Bugfix folder module case handling.
robin-checkmk Sep 26, 2024
4c6a63d
Adding some information about unit tests
Max-checkmk Sep 26, 2024
3445443
return rule_id for the existing rule
msekania Sep 26, 2024
8305819
fix: linting
msekania Sep 26, 2024
23cc0d6
Bump contributor-assistant/github-action from 2.5.2 to 2.6.1
dependabot[bot] Sep 30, 2024
0bfb525
Merge pull request #666 from Checkmk/dependabot/github_actions/devel/…
robin-checkmk Sep 30, 2024
4500019
Remove already deactivated OS.
robin-checkmk Sep 30, 2024
0ba3f1e
Make changes to workflow files trigger them.
robin-checkmk Sep 30, 2024
2df8e9b
Added check for empty groupsources
Max-checkmk Sep 30, 2024
464dd06
Merge pull request #656 from Checkmk/feature/module-inventory
robin-checkmk Sep 30, 2024
862a95b
Merge pull request #665 from msekania/fix_return_ruleid
robin-checkmk Sep 30, 2024
bce7606
Merge branch 'devel' of github.com:Checkmk/ansible-collection-checkmk…
robin-checkmk Sep 30, 2024
ddd5b50
Merge pull request #654 from Checkmk/feature/module-distributed
robin-checkmk Oct 9, 2024
ce7e844
Merge pull request #658 from Checkmk/feature/lookup-site
robin-checkmk Oct 9, 2024
789f92e
Align workflows and fix typo.
robin-checkmk Oct 9, 2024
0482eeb
Update changelogs.
robin-checkmk Oct 9, 2024
7f17220
Fix CODEOWNERS.
robin-checkmk Oct 9, 2024
d34617c
Update README.
robin-checkmk Oct 9, 2024
579a5ea
Bump Checkmk versions.
robin-checkmk Oct 9, 2024
59fa8e5
Update Makefile.
robin-checkmk Oct 9, 2024
cfdc54e
Improve site en-/disabling.
robin-checkmk Oct 9, 2024
eb87803
Fix unnecessary trigger.
robin-checkmk Oct 9, 2024
20d6d7a
Merge pull request #667 from Checkmk/devel
robin-checkmk Oct 9, 2024
59a72f1
Update meta data and auto labeler.
robin-checkmk Oct 9, 2024
b623f38
Merge pull request #668 from Checkmk/devel
robin-checkmk Oct 9, 2024
d0ea2bb
Update Docs and Changelogs upon Release
robin-checkmk Oct 10, 2024
7397ef6
Merge pull request #669 from Checkmk/changelogs-docs-update-5.3.0
robin-checkmk Oct 10, 2024
2a422a6
Merge pull request #670 from Checkmk/devel
robin-checkmk Oct 10, 2024
43124fe
Fixup changelog.
robin-checkmk Oct 10, 2024
be0070c
Fix linting for tests.
robin-checkmk Oct 10, 2024
7e6979e
Add tests directory to linting folder.
robin-checkmk Oct 10, 2024
f2571ea
Update CONTRIBUTING.
robin-checkmk Oct 10, 2024
4b6b9bb
Fix some issues after renaming.
robin-checkmk Oct 10, 2024
f2b2843
Add automatic reload after provisioning to collection VM.
robin-checkmk Oct 16, 2024
4b51801
Fix typos.
robin-checkmk Oct 16, 2024
a7a6be2
Fix documentation examples. Fixes #673.
robin-checkmk Oct 16, 2024
fcbedd1
Add pip dependency checking to Dependabot.
robin-checkmk Oct 16, 2024
8dd3763
Fix typo.
robin-checkmk Oct 16, 2024
2bfdf4c
Update README.
robin-checkmk Oct 17, 2024
0fe749e
Merge pull request #671 from Checkmk/build-lint-integration-tests
robin-checkmk Oct 17, 2024
73b03b0
Merge branch 'main' into devel
robin-checkmk Oct 21, 2024
3026bde
Bugfix integration tests.
robin-checkmk Oct 21, 2024
e6f591a
Merge pull request #674 from Checkmk/devel
robin-checkmk Oct 21, 2024
b0e0abe
Bump typing-extensions from 4.2.0 to 4.12.2
dependabot[bot] Oct 21, 2024
0f8743f
Bump isort from 5.10.1 to 5.13.2
dependabot[bot] Oct 21, 2024
302992b
Bump platformdirs from 2.5.2 to 4.3.6
dependabot[bot] Oct 21, 2024
b615dfc
Merge pull request #675 from Checkmk/dependabot/pip/devel/typing-exte…
robin-checkmk Oct 21, 2024
06236b2
Merge pull request #676 from Checkmk/dependabot/pip/devel/isort-5.13.2
robin-checkmk Oct 21, 2024
7ddc44f
Merge pull request #677 from Checkmk/dependabot/pip/devel/platformdir…
robin-checkmk Oct 21, 2024
ffb043d
Bump pathspec from 0.9.0 to 0.12.1
dependabot[bot] Oct 21, 2024
fbbd001
Bump black from 24.3.0 to 24.10.0
dependabot[bot] Oct 21, 2024
b436dfe
Bump tomli from 2.0.1 to 2.0.2
dependabot[bot] Oct 21, 2024
74cb81b
Merge pull request #678 from Checkmk/dependabot/pip/devel/pathspec-0.…
robin-checkmk Oct 21, 2024
111bcc7
Merge pull request #679 from Checkmk/dependabot/pip/devel/black-24.10.0
robin-checkmk Oct 21, 2024
250fc2e
Merge pull request #680 from Checkmk/dependabot/pip/devel/tomli-2.0.2
robin-checkmk Oct 21, 2024
0eef057
Bump mypy-extensions from 0.4.3 to 1.0.0
dependabot[bot] Oct 21, 2024
556a491
Bump click from 8.1.3 to 8.1.7
dependabot[bot] Oct 21, 2024
fc547c1
Merge pull request #681 from Checkmk/dependabot/pip/devel/mypy-extens…
robin-checkmk Oct 21, 2024
4bf0b4b
Merge pull request #682 from Checkmk/dependabot/pip/devel/click-8.1.7
robin-checkmk Oct 21, 2024
d7fd7b6
fix: customer field treatment for host_group contact_group service_group
msekania Oct 23, 2024
6597ef7
Merge pull request #686 from msekania/fix-cutomer-field-tretment
robin-checkmk Oct 23, 2024
9b83df0
Merge pull request #687 from Checkmk/devel
robin-checkmk Oct 23, 2024
eb4c5d5
Add changelog.
robin-checkmk Oct 23, 2024
f77788f
Bump Checkmk versions.
robin-checkmk Oct 23, 2024
ce9d19b
Prepare Release 5.3.1.
robin-checkmk Oct 23, 2024
4b7f45b
fix: move to different folder does not work
msekania Oct 23, 2024
679cbe7
Merge branch 'Checkmk:main' into fix-rule-does-not-return-content
msekania Oct 23, 2024
da64f91
Merge pull request #688 from Checkmk/devel
robin-checkmk Oct 24, 2024
9118eee
Merge pull request #689 from msekania/fix-rule-does-not-return-content
robin-checkmk Oct 24, 2024
6054985
Add changelog.
robin-checkmk Oct 24, 2024
bf44a47
Merge pull request #690 from Checkmk/devel
robin-checkmk Oct 24, 2024
07b028e
Update Docs and Changelogs upon Release
robin-checkmk Oct 24, 2024
c0bd3a8
Merge pull request #691 from Checkmk/changelogs-docs-update-5.3.1
robin-checkmk Oct 24, 2024
70deee2
Merge pull request #692 from Checkmk/devel
robin-checkmk Oct 24, 2024
3cbdaea
Bump Checkmk versions.
robin-checkmk Nov 11, 2024
cbfcbbf
Rebuild tests using Checkmk containers (#624)
robin-checkmk Nov 11, 2024
1e95ac9
Merge branch 'devel' of github.com:Checkmk/ansible-collection-checkmk…
robin-checkmk Nov 11, 2024
0b0dd26
Merge pull request #694 from Checkmk/devel
robin-checkmk Nov 12, 2024
90f782a
Bump tomli from 2.0.2 to 2.1.0
dependabot[bot] Nov 18, 2024
cafc231
Merge pull request #695 from Checkmk/dependabot/pip/devel/tomli-2.1.0
robin-checkmk Nov 18, 2024
9cd840c
Merge branch 'devel' of github.com:Checkmk/ansible-collection-checkmk…
robin-checkmk Nov 18, 2024
ad21035
Bugfix rule lookup example.
robin-checkmk Nov 18, 2024
1c585b0
Bump tomli from 2.1.0 to 2.2.1
dependabot[bot] Dec 2, 2024
4cb02a3
Merge pull request #698 from Checkmk/dependabot/pip/devel/tomli-2.2.1
robin-checkmk Dec 2, 2024
78b1b99
Update Windows Vagrant box.
robin-checkmk Dec 3, 2024
0a0602e
Bump click from 8.1.7 to 8.1.8
dependabot[bot] Dec 23, 2024
470c29b
Merge pull request #699 from Checkmk/dependabot/pip/devel/click-8.1.8
robin-checkmk Dec 23, 2024
6eb5941
Merge branch 'devel' of github.com:Checkmk/ansible-collection-checkmk…
robin-checkmk Dec 24, 2024
b889dc2
Add uv direnv configuration.
robin-checkmk Dec 24, 2024
7f7f931
Add default port to global test variables.
robin-checkmk Dec 24, 2024
7c91763
Merge pull request #700 from Checkmk/build/quickfix-site-tests
robin-checkmk Dec 24, 2024
c9c74b1
Add argument_specs.yml to the roles.
robin-checkmk Dec 3, 2024
9da1818
Merge pull request #702 from Checkmk/feature/role-argument-specs
robin-checkmk Dec 24, 2024
51609c3
Prepare release.
robin-checkmk Dec 24, 2024
d32511c
Add changelog.
robin-checkmk Dec 24, 2024
92b73fa
Add concurrency to molecule workflows.
robin-checkmk Dec 24, 2024
20d9d9e
Merge pull request #701 from Checkmk/devel
robin-checkmk Dec 24, 2024
c0a641e
Bugfix argument_specs.yml.
robin-checkmk Dec 24, 2024
886f8a7
Merge pull request #703 from Checkmk/devel
robin-checkmk Dec 24, 2024
32b6fc0
Update Docs and Changelogs upon Release
robin-checkmk Dec 24, 2024
f6d5ccc
Merge pull request #704 from Checkmk/changelogs-docs-update-5.3.2
robin-checkmk Dec 24, 2024
43f0221
Merge pull request #705 from Checkmk/devel
robin-checkmk Dec 24, 2024
f645cd1
docs: added info how to use params server_url & site
HarisDotParis Dec 31, 2024
9a61d4f
Merge branch 'Checkmk:main' into main
HarisDotParis Dec 31, 2024
159060e
docs: fix terminology on sites
HarisDotParis Jan 6, 2025
bfdb9b4
Merge pull request #706 from HarisDotParis/main
robin-checkmk Jan 6, 2025
dd8ad69
Make ansible-lint install requirements.
robin-checkmk Jun 10, 2024
1f98a59
Merge branch 'build/new-testing-ideas' of github.com:Checkmk/ansible-…
robin-checkmk Jan 7, 2025
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
6 changes: 4 additions & 2 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ exclude_paths:
- .vagrant/
- changelogs/
- docs/

# parseable: true
# quiet: true
# verbosity: 1
Expand All @@ -31,7 +32,7 @@ exclude_paths:
# requirements, like avoiding python identifiers. To disable add `var-naming`
# to skip_list.
# var_naming_pattern: "^[a-z_][a-z0-9_]*$"
var_naming_pattern: "^checkmk_(server|agent|var)_.*$"
var_naming_pattern: "^(__)?checkmk_(server|agent|var)_.*$"

use_default_rules: true
# Load custom rules from this specific folder
Expand Down Expand Up @@ -74,7 +75,8 @@ skip_list:
# - all

# Offline mode disables installation of requirements.yml
offline: true
# offline: true
offline: false

# # Define required Ansible's variables to satisfy syntax check
# extra_vars:
Expand Down
19 changes: 19 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# -*- mode: sh -*-

layout_python() {
if [[ -d ".venv" ]]; then
VIRTUAL_ENV="$(pwd)/.venv"
fi

if [[ -z $VIRTUAL_ENV || ! -d $VIRTUAL_ENV ]]; then
log_status "No virtual environment exists. Creating it."
uv venv
uv pip install -r requirements.txt
VIRTUAL_ENV="$(pwd)/.venv"
fi

# Activate the virtual environment
. $VIRTUAL_ENV/bin/activate
}

layout python
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: weekly
time: "05:00"
target-branch: "devel"
open-pull-requests-limit: 10
- package-ecosystem: "github-actions"
directory: "/"
schedule:
Expand Down
20 changes: 16 additions & 4 deletions .github/labels-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ role:server:
role:agent:
- 'Component Name: agent'

inventory:
- 'Component Name: inventory'

module:activation:
- 'Component Name: activation'

Expand Down Expand Up @@ -44,6 +47,9 @@ module:rule:
module:service_group:
- 'Component Name: service_group'

module:site:
- 'Component Name: site'

module:tag_group:
- 'Component Name: tag_group'

Expand All @@ -53,8 +59,8 @@ module:timeperiod:
module:user:
- 'Component Name: user'

lookup:version:
- 'Component Name: lookup_version'
lookup:bakery:
- 'Component Name: lookup_bakery'

lookup:folder:
- 'Component Name: lookup_folder'
Expand All @@ -80,5 +86,11 @@ lookup:ruleset:
lookup:rulesets:
- 'Component Name: lookup_rulesets'

lookup:bakery:
- 'Component Name: lookup_bakery'
lookup:site:
- 'Component Name: lookup_site'

lookup:sites:
- 'Component Name: lookup_sites'

lookup:version:
- 'Component Name: lookup_version'
28 changes: 24 additions & 4 deletions .github/labels-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ role:agent:
- changed-files:
- any-glob-to-any-file: 'roles/agent/*'

inventory:
- any:
- changed-files:
- any-glob-to-any-file: 'plugins/inventory/checkmk.py'

module:activation:
- any:
- changed-files:
Expand Down Expand Up @@ -69,6 +74,11 @@ module:service_group:
- changed-files:
- any-glob-to-any-file: 'plugins/modules/service_group.py'

module:site:
- any:
- changed-files:
- any-glob-to-any-file: 'plugins/modules/site.py'

module:tag_group:
- any:
- changed-files:
Expand All @@ -84,10 +94,10 @@ module:user:
- changed-files:
- any-glob-to-any-file: 'plugins/modules/user.py'

lookup:version:
lookup:bakery:
- any:
- changed-files:
- any-glob-to-any-file: 'plugins/modules/lookup/version.py'
- any-glob-to-any-file: 'plugins/modules/lookup/bakery.py'

lookup:folder:
- any:
Expand Down Expand Up @@ -129,7 +139,17 @@ lookup:rulesets:
- changed-files:
- any-glob-to-any-file: 'plugins/modules/lookup/rulesets.py'

lookup:bakery:
lookup:site:
- any:
- changed-files:
- any-glob-to-any-file: 'plugins/modules/lookup/bakery.py'
- any-glob-to-any-file: 'plugins/modules/lookup/site.py'

lookup:sites:
- any:
- changed-files:
- any-glob-to-any-file: 'plugins/modules/lookup/sites.py'

lookup:version:
- any:
- changed-files:
- any-glob-to-any-file: 'plugins/modules/lookup/version.py'
51 changes: 46 additions & 5 deletions .github/workflows/ans-int-test-activation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ env:
COLLECTION_NAME: general
MODULE_NAME: activation

# https://stackoverflow.com/questions/70928424/limit-github-action-workflow-concurrency-on-push-and-pull-request
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

name: Ansible Integration Tests for Activation Module
on:
workflow_dispatch:
Expand All @@ -24,6 +29,7 @@ on:
push:
paths:
- 'plugins/modules/activation.py'
- '.github/workflows/ans-int-test-activation.yaml'

jobs:

Expand All @@ -39,17 +45,52 @@ jobs:
- stable-2.17
- devel
python:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
exclude:
# Exclude unsupported sets.
- ansible: stable-2.14
python: '3.12'
- ansible: stable-2.15
python: '3.12'
- ansible: stable-2.16
python: '3.9'
- ansible: stable-2.17
python: '3.9'
- ansible: devel
python: '3.9'
- ansible: devel
python: '3.10'

services:
ancient_cre:
image: checkmk/check-mk-raw:2.1.0p49
ports:
- 5021:5000
env:
CMK_SITE_ID: "ancient_cre"
CMK_PASSWORD: "Sup3rSec4et!"
old_cre:
image: checkmk/check-mk-raw:2.2.0p37
ports:
- 5022:5000
env:
CMK_SITE_ID: "old_cre"
CMK_PASSWORD: "Sup3rSec4et!"
stable_cre:
image: checkmk/check-mk-raw:2.3.0p23
ports:
- 5023:5000
env:
CMK_SITE_ID: "stable_cre"
CMK_PASSWORD: "Sup3rSec4et!"
stable_cme:
image: checkmk/check-mk-managed:2.3.0p23
ports:
- 5323:5000
env:
CMK_SITE_ID: "stable_cme"
CMK_PASSWORD: "Sup3rSec4et!"

steps:
- name: Check out code
Expand All @@ -60,7 +101,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: ${{ matrix.python }}

- name: Install ansible-base (${{ matrix.ansible }})
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
Expand All @@ -72,5 +113,5 @@ jobs:
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
run: ansible-test integration ${{env.MODULE_NAME}} -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }}
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
43 changes: 38 additions & 5 deletions .github/workflows/ans-int-test-bakery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ env:
COLLECTION_NAME: general
MODULE_NAME: bakery

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

name: Ansible Integration Tests for Bakery Module
on:
workflow_dispatch:
Expand All @@ -24,6 +28,7 @@ on:
push:
paths:
- 'plugins/modules/bakery.py'
- '.github/workflows/ans-int-test-bakery.yaml'

jobs:

Expand All @@ -39,17 +44,45 @@ jobs:
- stable-2.17
- devel
python:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
exclude:
# Exclude unsupported sets.
- ansible: stable-2.14
python: '3.12'
- ansible: stable-2.15
python: '3.12'
- ansible: stable-2.16
python: '3.9'
- ansible: stable-2.17
python: '3.9'
- ansible: devel
python: '3.9'
- ansible: devel
python: '3.10'

services:
ancient_cfe:
image: checkmk/check-mk-free:2.1.0p49
ports:
- 5421:5000
env:
CMK_SITE_ID: "ancient_cfe"
CMK_PASSWORD: "Sup3rSec4et!"
old_cce:
image: checkmk/check-mk-cloud:2.2.0p37
ports:
- 5222:5000
env:
CMK_SITE_ID: "old_cce"
CMK_PASSWORD: "Sup3rSec4et!"
stable_cme:
image: checkmk/check-mk-managed:2.3.0p23
ports:
- 5323:5000
env:
CMK_SITE_ID: "stable_cme"
CMK_PASSWORD: "Sup3rSec4et!"

steps:
- name: Check out code
Expand All @@ -60,7 +93,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: ${{ matrix.python }}

- name: Install ansible-base (${{ matrix.ansible }})
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
Expand All @@ -72,5 +105,5 @@ jobs:
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
run: ansible-test integration ${{env.MODULE_NAME}} -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }}
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
Loading