Skip to content

Commit

Permalink
Merge branch 'devel' of github.com:Checkmk/ansible-collection-checkmk…
Browse files Browse the repository at this point in the history
….general into feature/agent-adv-fw-mgmt
  • Loading branch information
robin-checkmk committed May 24, 2024
2 parents 3163e16 + 1b68329 commit 0d44c5b
Show file tree
Hide file tree
Showing 74 changed files with 294 additions and 194 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ans-int-test-activation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ on:
schedule:
- cron: '0 0 * * 0'
pull_request:
types:
- opened
branches:
- main
- devel
paths:
- 'plugins/modules/activation.py'
push:
paths:
- 'plugins/modules/activation.py'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ans-int-test-bakery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ on:
schedule:
- cron: '0 0 * * 0'
pull_request:
types:
- opened
branches:
- main
- devel
paths:
- 'plugins/modules/bakery.py'
push:
paths:
- 'plugins/modules/bakery.py'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ans-int-test-contact_group.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ on:
schedule:
- cron: '0 0 * * 0'
pull_request:
types:
- opened
branches:
- main
- devel
paths:
- 'plugins/modules/contact_group.py'
push:
paths:
- 'plugins/modules/contact_group.py'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ans-int-test-discovery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,16 @@ on:
schedule:
- cron: '0 0 * * 0'
pull_request:
types:
- opened
branches:
- main
- devel
paths:
- 'plugins/modules/discovery.py'
push:
paths:
- 'plugins/modules/discovery.py'

jobs:

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ans-int-test-downtime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ on:
schedule:
- cron: '0 0 * * 0'
pull_request:
types:
- opened
branches:
- main
- devel
paths:
- 'plugins/modules/downtime.py'
push:
paths:
- 'plugins/modules/downtime.py'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ans-int-test-folder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ on:
schedule:
- cron: '0 0 * * 0'
pull_request:
types:
- opened
branches:
- main
- devel
paths:
- 'plugins/modules/folder.py'
push:
paths:
- 'plugins/modules/folder.py'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ans-int-test-host.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ on:
schedule:
- cron: '0 0 * * 0'
pull_request:
types:
- opened
branches:
- main
- devel
paths:
- 'plugins/modules/host.py'
push:
paths:
- 'plugins/modules/host.py'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ans-int-test-host_group.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ on:
schedule:
- cron: '0 0 * * 0'
pull_request:
types:
- opened
branches:
- main
- devel
paths:
- 'plugins/modules/host_group.py'
push:
paths:
- 'plugins/modules/host_group.py'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ans-int-test-lkp-bakery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ on:
schedule:
- cron: '0 0 * * 0'
pull_request:
types:
- opened
branches:
- main
- devel
paths:
- 'plugins/lookup/bakery.py'
push:
paths:
- 'plugins/lookup/bakery.py'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ans-int-test-lkp-folder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ name: Ansible Integration Tests for Folder Lookup Module
on:
workflow_dispatch:
pull_request:
types:
- opened
branches:
- main
- devel
paths:
- 'plugins/lookup/folder.py'
push:
paths:
- 'plugins/lookup/folder.py'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ans-int-test-lkp-folders.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ name: Ansible Integration Tests for Folders Lookup Module
on:
workflow_dispatch:
pull_request:
types:
- opened
branches:
- main
- devel
paths:
- 'plugins/lookup/folders.py'
push:
paths:
- 'plugins/lookup/folders.py'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ans-int-test-lkp-host.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ name: Ansible Integration Tests for Host Lookup Module
on:
workflow_dispatch:
pull_request:
types:
- opened
branches:
- main
- devel
paths:
- 'plugins/lookup/host.py'
push:
paths:
- 'plugins/lookup/host.py'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ans-int-test-lkp-hosts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ name: Ansible Integration Tests for Hosts Lookup Module
on:
workflow_dispatch:
pull_request:
types:
- opened
branches:
- main
- devel
paths:
- 'plugins/lookup/hosts.py'
push:
paths:
- 'plugins/lookup/hosts.py'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ans-int-test-lkp-rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@ name: Ansible Integration Tests for Rule Lookup Modules
on:
workflow_dispatch:
pull_request:
types:
- opened
branches:
- main
- devel
paths:
- 'plugins/lookup/rule.py'
- 'plugins/lookup/rules.py'
push:
paths:
- 'plugins/lookup/rule.py'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ans-int-test-lkp-rulesets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@ name: Ansible Integration Tests for Ruleset Lookup Modules
on:
workflow_dispatch:
pull_request:
types:
- opened
branches:
- main
- devel
paths:
- 'plugins/lookup/ruleset.py'
- 'plugins/lookup/rulesets.py'
push:
paths:
- 'plugins/lookup/ruleset.py'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ans-int-test-lkp-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ on:
schedule:
- cron: '0 0 * * 0'
pull_request:
types:
- opened
branches:
- main
- devel
paths:
- 'plugins/lookup/version.py'
push:
paths:
- 'plugins/lookup/version.py'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ans-int-test-password.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ on:
schedule:
- cron: '0 0 * * 0'
pull_request:
types:
- opened
branches:
- main
- devel
paths:
- 'plugins/modules/password.py'
push:
paths:
- 'plugins/modules/password.py'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ans-int-test-rule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ on:
schedule:
- cron: '0 0 * * 0'
pull_request:
types:
- opened
branches:
- main
- devel
paths:
- 'plugins/modules/rule.py'
push:
paths:
- 'plugins/modules/rule.py'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ans-int-test-service_group.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ on:
schedule:
- cron: '0 0 * * 0'
pull_request:
types:
- opened
branches:
- main
- devel
paths:
- 'plugins/modules/service_group.py'
push:
paths:
- 'plugins/modules/service_group.py'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ans-int-test-tag_group.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ on:
schedule:
- cron: '0 0 * * 0'
pull_request:
types:
- opened
branches:
- main
- devel
paths:
- 'plugins/modules/tag_group.py'
push:
paths:
- 'plugins/modules/tag_group.py'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ans-int-test-timeperiod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ on:
schedule:
- cron: '0 0 * * 0'
pull_request:
types:
- opened
branches:
- main
- devel
paths:
- 'plugins/modules/timeperiod.py'
push:
paths:
- 'plugins/modules/timeperiod.py'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ans-int-test-user.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ on:
schedule:
- cron: '0 0 * * 0'
pull_request:
types:
- opened
branches:
- main
- devel
paths:
- 'plugins/modules/user.py'
push:
paths:
- 'plugins/modules/user.py'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ansible-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ on:
branches:
- main
- devel
- build/checkmk-2-3-support
paths:
- 'roles/**'
- 'playbooks/**'
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ansible-sanity-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ on:
- '**.rst'
- 'roles/**'
pull_request:
types: [opened]
types:
- opened
paths-ignore:
- '.github/ISSUE_TEMPLATE/*'
- 'docs/**'
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/molecule-role-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,17 @@ name: Molecule Tests for Agent Role
on:
workflow_dispatch:
pull_request:
types:
- opened
branches:
- main
- devel
paths:
- 'roles/agent/**'
push:
branches:
- main
- devel
- build/checkmk-2-3-support
paths:
- 'roles/agent/**'

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/molecule-role-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,17 @@ name: Molecule Tests for Server Role
on:
workflow_dispatch:
pull_request:
types:
- opened
branches:
- main
- devel
paths:
- 'roles/server/**'
push:
branches:
- main
- devel
- build/checkmk-2-3-support
paths:
- 'roles/server/**'

Expand Down
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,16 @@ container:
docker build -t $(CONTAINER_NAME) $(CONTAINER_BUILD_ROOT) --build-arg DL_PW=$$(cat .secret) && \
docker save $(CONTAINER_NAME):latest > $(COLLECTION_ROOT)/$(CONTAINER_NAME)-latest-image.tar.gz"

tests: tests-sanity tests-integration
tests: tests-linting tests-sanity tests-integration

tests-linting: vm
@vagrant ssh collection -c "\
cd $(COLLECTION_ROOT) && \
ansible-galaxy collection install ./ && \
yamllint -c .yamllint ./roles/ && \
yamllint -c .yamllint ./playbooks/ && \
ansible-lint -c .ansible-lint ./roles/ && \
ansible-lint -c .ansible-lint ./playbooks/"

tests-sanity: vm
@vagrant ssh collection -c "\
Expand Down
3 changes: 2 additions & 1 deletion changelogs/fragments/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ minor_changes:
- Testing - All tests now cover Checkmk 2.3.0.
- Testing - Remove Checkmk 2.0.0 from all tests, as it is EOL.
- Testing - The Molecule tests now run on Ubuntu 22.04.
- Testing - Ubuntu 24.04 is added to the Molecule tests.
- Testing - Add Ubuntu 24.04 to the Molecule tests.
- Testing - Remove Ansible 2.14 from all tests, as it is EOL.
3 changes: 2 additions & 1 deletion changelogs/fragments/lookup_folder.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
bugfixes:
breaking_changes:
- Folder lookup module - Return the complete folder information, not only the extensions.
Refer to the module documentation for more details.
Loading

0 comments on commit 0d44c5b

Please sign in to comment.