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

Release 2.4.0 #385

Merged
merged 84 commits into from
Jul 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
c02072d
Update service discovery behavior of agent role.
robin-checkmk Apr 19, 2023
63555cc
Add workflow file.
robin-checkmk May 8, 2023
807f4d1
Add skeleton for tests.
robin-checkmk May 8, 2023
5ac8294
Update .gitignore.
robin-checkmk May 8, 2023
5134fb1
Add initial set of tests.
robin-checkmk May 8, 2023
33e76e1
Update workflow.
robin-checkmk May 8, 2023
f1c7af3
Make daisy-chaining the download credential work.
robin-checkmk May 16, 2023
6e6f1cb
Add a snakeoil key and jimmy rig it into the site.
robin-checkmk May 16, 2023
886bc72
Clean-up and update tasks, provide necessary vars.
robin-checkmk May 16, 2023
50f9393
Bugfixes.
robin-checkmk May 19, 2023
f7b430a
Merge branch 'devel' of github.com:Checkmk/ansible-collection-checkmk…
robin-checkmk Jun 7, 2023
f538ad4
Bugfix README.
robin-checkmk Jun 7, 2023
1012d0b
Add Debian 12 image for molecule.
robin-checkmk Jun 14, 2023
a01897f
Add Debian 12 support to server role.
robin-checkmk Jun 15, 2023
d996e2a
Merge branch 'devel' of github.com:Checkmk/ansible-collection-checkmk…
robin-checkmk Jun 15, 2023
d137c9d
Update variables for molecule.
robin-checkmk Jun 15, 2023
359e013
Fix module call.
robin-checkmk Jun 15, 2023
7cff127
Update agent site URL.
robin-checkmk Jun 15, 2023
bcabda6
Still trying to get the tests running.
robin-checkmk Jun 15, 2023
57e8f22
Fix the failing tests and ultimately the service discovery in the age…
robin-checkmk Jun 15, 2023
176688f
Add changelog.
robin-checkmk Jun 15, 2023
e59823b
Fix indentation.
robin-checkmk Jun 30, 2023
7aefa7a
Merge branch 'devel' of github.com:Checkmk/ansible-collection-checkmk…
robin-checkmk Jun 30, 2023
f382881
Update integration test with potential pitfall.
robin-checkmk Jun 30, 2023
7fa7170
add OracleLinux 8
jzuellig Jul 7, 2023
0566225
Check if discovery process is already running and wait until its fini…
msekania Jul 11, 2023
3b1b3d3
Change 404 code of check as not failed
msekania Jul 11, 2023
f679f8d
Bugfix README.
robin-checkmk Jul 17, 2023
19d3eb8
Merge branch 'devel' into bugfix-agent-discovery
robin-checkmk Jul 17, 2023
3e9f2a7
Bump default Checkmk version in roles.
robin-checkmk Jul 17, 2023
52634eb
Add support for changing default Checkmk version in roles.
robin-checkmk Jul 17, 2023
a7f1a06
Update documentation on the server roles OS support.
robin-checkmk Jul 17, 2023
c8a7582
Bump Checkmk version in README.
robin-checkmk Jul 17, 2023
00e4b37
Clean up formatting and add Oracle Linux box.
robin-checkmk Jul 17, 2023
f6559c5
Add item to roadmap.
robin-checkmk Jul 20, 2023
ae3e26c
fix ol8 dependency graphviz-gd
jzuellig Jul 21, 2023
77906d5
Merge branch 'devel' into main
jzuellig Jul 21, 2023
90099dc
Removed tabula_rasa and added refresh+fix_all
Max-checkmk Jul 25, 2023
bb6198d
Give task a logical name
jzuellig Jul 25, 2023
cab6ae7
Update Checkmk versions.
robin-checkmk Jul 26, 2023
7ac5dd4
Update task names.
robin-checkmk Jul 26, 2023
41c7a2f
Revert bugfixing attempt.
robin-checkmk Jul 26, 2023
1ba047e
Update changelog.
robin-checkmk Jul 26, 2023
27c484a
Create folders for role testing.
robin-checkmk Jul 26, 2023
e8cc33a
Update environment.
robin-checkmk Jul 26, 2023
1a03386
Refactor
msekania Jul 26, 2023
a01d79a
Linting
msekania Jul 26, 2023
77d36b1
Merge branch 'devel' of github.com:Checkmk/ansible-collection-checkmk…
robin-checkmk Jul 27, 2023
c4e0deb
Bump Checkmk version.
robin-checkmk Jul 27, 2023
aff1e61
Clean up molecule images.
robin-checkmk Jul 27, 2023
30dbd83
Fix comment.
robin-checkmk Jul 27, 2023
4e7a6f1
Add disk clean up to molecule actions.
robin-checkmk Jul 27, 2023
a40d8e5
Reduce molecule test complexity.
robin-checkmk Jul 27, 2023
29a5343
Add changelog.
robin-checkmk Jul 27, 2023
25e5299
Update Vagrantfile.
robin-checkmk Jul 27, 2023
e05d8f1
Merge branch 'devel' of github.com:Checkmk/ansible-collection-checkmk…
robin-checkmk Jul 27, 2023
fda5ad6
Prepare molecule for next Checkmk 2.1.0 release.
robin-checkmk Jul 27, 2023
cf52355
Clean up molecule.
robin-checkmk Jul 27, 2023
63f60c9
Fix disk cleanup task location.
robin-checkmk Jul 27, 2023
d80ff85
Merge pull request #384 from msekania/feature-improve-discovery-module
robin-checkmk Jul 27, 2023
ee950bf
Merge pull request #319 from Checkmk/bugfix-agent-discovery
robin-checkmk Jul 27, 2023
f66465c
Merge pull request #383 from jzuellig/main
robin-checkmk Jul 27, 2023
8e013e2
Bump Checkmk versions for tests.
robin-checkmk Jul 27, 2023
4729c8b
Add changelogs.
robin-checkmk Jul 28, 2023
be0c916
Add cleanup feature.
robin-checkmk Jul 28, 2023
e335414
Add fallback variable for CentOS.
robin-checkmk Jul 28, 2023
98bfc2e
Update collection name and bump Checkmk versions.
robin-checkmk Jul 28, 2023
192bba5
Merge branch 'devel' into feature-int-test-bakery
robin-checkmk Jul 28, 2023
793d99f
Update GitHub Action to enable testing it.
robin-checkmk Jul 28, 2023
5fb17a4
Merge branch 'feature-int-test-bakery' of github.com:Checkmk/ansible-…
robin-checkmk Jul 28, 2023
045993a
Test GitHub Action.
robin-checkmk Jul 28, 2023
8bdd60a
Next Test of GitHub Action.
robin-checkmk Jul 28, 2023
e301909
Merge pull request #342 from Checkmk/feature-int-test-bakery
robin-checkmk Jul 28, 2023
0d50975
Trigger a run of the bakery module integration tests.
robin-checkmk Jul 28, 2023
23b0b9f
Merge branch 'devel' of github.com:Checkmk/ansible-collection-checkmk…
robin-checkmk Jul 28, 2023
a66775e
Cleanup.
robin-checkmk Jul 28, 2023
bd7bde5
Update workflow files structure and clean up.
robin-checkmk Jul 28, 2023
2cfb396
Add some setup files for reference.
robin-checkmk Jul 28, 2023
cbd2680
Merge pull request #387 from Checkmk/feature/omd-cleanup
robin-checkmk Jul 28, 2023
0fbcb10
Merge pull request #386 from Checkmk/feature/debian12-support
robin-checkmk Jul 28, 2023
72cbb98
Merge branch 'devel' of github.com:Checkmk/ansible-collection-checkmk…
robin-checkmk Jul 28, 2023
ed68084
Update Vagrantfile.
robin-checkmk Jul 28, 2023
cb3487f
Try to fix molecule errors.
robin-checkmk Jul 31, 2023
16cdf56
Try to fix molecule errors again.
robin-checkmk Jul 31, 2023
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
13 changes: 7 additions & 6 deletions .github/workflows/ans-int-test-activation.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# https://github.com/ansible-collections/collection_template/blob/main/.github/workflows/ansible-test.yml

env:
NAMESPACE: checkmk
COLLECTION_NAME: general
MODULE_NAME: activation

name: Ansible Integration Tests for Activation Module
on:
workflow_dispatch:
Expand All @@ -8,11 +13,7 @@ on:
- main
- devel
paths:
- 'plugins/modules/activation.py'

env:
NAMESPACE: checkmk
COLLECTION_NAME: general
- 'plugins/modules/${{env.MODULE_NAME}}.py'

jobs:

Expand Down Expand Up @@ -57,5 +58,5 @@ jobs:
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check

- name: Run integration test
run: ansible-test integration activation -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 }} --docker
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
68 changes: 68 additions & 0 deletions .github/workflows/ans-int-test-bakery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# https://github.com/ansible-collections/collection_template/blob/main/.github/workflows/ansible-test.yml

env:
NAMESPACE: checkmk
COLLECTION_NAME: general
MODULE_NAME: bakery

name: Ansible Integration Tests for Bakery Module
on:
workflow_dispatch:
pull_request:
branches:
- main
- devel
paths:
- 'plugins/modules/${{env.MODULE_NAME}}.py'

jobs:

###
# Integration tests (RECOMMENDED)
#
# https://docs.ansible.com/ansible/latest/dev_guide/testing_integration.html

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

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

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- 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
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
13 changes: 7 additions & 6 deletions .github/workflows/ans-int-test-contact_group.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# https://github.com/ansible-collections/collection_template/blob/main/.github/workflows/ansible-test.yml

env:
NAMESPACE: checkmk
COLLECTION_NAME: general
MODULE_NAME: contact_group

name: Ansible Integration Tests for Contact Group Module
on:
workflow_dispatch:
Expand All @@ -8,11 +13,7 @@ on:
- main
- devel
paths:
- 'plugins/modules/contact_group.py'

env:
NAMESPACE: checkmk
COLLECTION_NAME: general
- 'plugins/modules/${{env.MODULE_NAME}}.py'

jobs:

Expand Down Expand Up @@ -57,5 +58,5 @@ jobs:
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check

- name: Run integration test
run: ansible-test integration contact_group -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 }} --docker
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
13 changes: 7 additions & 6 deletions .github/workflows/ans-int-test-discovery.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# https://github.com/ansible-collections/collection_template/blob/main/.github/workflows/ansible-test.yml

env:
NAMESPACE: checkmk
COLLECTION_NAME: general
MODULE_NAME: discovery

name: Ansible Integration Tests for Discovery Module
on:
workflow_dispatch:
Expand All @@ -8,11 +13,7 @@ on:
- main
- devel
paths:
- 'plugins/modules/discovery.py'

env:
NAMESPACE: checkmk
COLLECTION_NAME: general
- 'plugins/modules/${{env.MODULE_NAME}}.py'

jobs:

Expand Down Expand Up @@ -57,5 +58,5 @@ jobs:
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check

- name: Run integration test
run: ansible-test integration discovery -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 }} --docker
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
13 changes: 7 additions & 6 deletions .github/workflows/ans-int-test-downtime.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# https://github.com/ansible-collections/collection_template/blob/main/.github/workflows/ansible-test.yml

env:
NAMESPACE: checkmk
COLLECTION_NAME: general
MODULE_NAME: downtime

name: Ansible Integration Tests for Downtime Module
on:
workflow_dispatch:
Expand All @@ -8,11 +13,7 @@ on:
- main
- devel
paths:
- 'plugins/modules/downtime.py'

env:
NAMESPACE: checkmk
COLLECTION_NAME: general
- 'plugins/modules/${{env.MODULE_NAME}}.py'

jobs:

Expand Down Expand Up @@ -57,5 +58,5 @@ jobs:
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check

- name: Run integration test
run: ansible-test integration downtime -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 }} --docker
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
13 changes: 7 additions & 6 deletions .github/workflows/ans-int-test-folder.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# https://github.com/ansible-collections/collection_template/blob/main/.github/workflows/ansible-test.yml

env:
NAMESPACE: checkmk
COLLECTION_NAME: general
MODULE_NAME: folder

name: Ansible Integration Tests for Folder Module
on:
workflow_dispatch:
Expand All @@ -8,11 +13,7 @@ on:
- main
- devel
paths:
- 'plugins/modules/folder.py'

env:
NAMESPACE: checkmk
COLLECTION_NAME: general
- 'plugins/modules/${{env.MODULE_NAME}}.py'

jobs:

Expand Down Expand Up @@ -57,5 +58,5 @@ jobs:
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check

- name: Run integration test
run: ansible-test integration folder -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 }} --docker
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
13 changes: 7 additions & 6 deletions .github/workflows/ans-int-test-host.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# https://github.com/ansible-collections/collection_template/blob/main/.github/workflows/ansible-test.yml

env:
NAMESPACE: checkmk
COLLECTION_NAME: general
MODULE_NAME: host

name: Ansible Integration Tests for Host Module
on:
workflow_dispatch:
Expand All @@ -8,11 +13,7 @@ on:
- main
- devel
paths:
- 'plugins/modules/host.py'

env:
NAMESPACE: checkmk
COLLECTION_NAME: general
- 'plugins/modules/${{env.MODULE_NAME}}.py'

jobs:

Expand Down Expand Up @@ -57,5 +58,5 @@ jobs:
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check

- name: Run integration test
run: ansible-test integration host -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 }} --docker
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
13 changes: 7 additions & 6 deletions .github/workflows/ans-int-test-host_group.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# https://github.com/ansible-collections/collection_template/blob/main/.github/workflows/ansible-test.yml

env:
NAMESPACE: checkmk
COLLECTION_NAME: general
MODULE_NAME: host_group

name: Ansible Integration Tests for Host Group Module
on:
workflow_dispatch:
Expand All @@ -8,11 +13,7 @@ on:
- main
- devel
paths:
- 'plugins/modules/host_group.py'

env:
NAMESPACE: checkmk
COLLECTION_NAME: general
- 'plugins/modules/${{env.MODULE_NAME}}.py'

jobs:

Expand Down Expand Up @@ -57,5 +58,5 @@ jobs:
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check

- name: Run integration test
run: ansible-test integration host_group -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 }} --docker
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
13 changes: 7 additions & 6 deletions .github/workflows/ans-int-test-password.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# https://github.com/ansible-collections/collection_template/blob/main/.github/workflows/ansible-test.yml

env:
NAMESPACE: checkmk
COLLECTION_NAME: general
MODULE_NAME: password

name: Ansible Integration Tests for Password Module
on:
workflow_dispatch:
Expand All @@ -8,11 +13,7 @@ on:
- main
- devel
paths:
- 'plugins/modules/password.py'

env:
NAMESPACE: checkmk
COLLECTION_NAME: general
- 'plugins/modules/${{env.MODULE_NAME}}.py'

jobs:

Expand Down Expand Up @@ -57,5 +58,5 @@ jobs:
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check

- name: Run integration test
run: ansible-test integration password -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 }} --docker
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
13 changes: 7 additions & 6 deletions .github/workflows/ans-int-test-rule.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# https://github.com/ansible-collections/collection_template/blob/main/.github/workflows/ansible-test.yml

env:
NAMESPACE: checkmk
COLLECTION_NAME: general
MODULE_NAME: rule

name: Ansible Integration Tests for Rule Module
on:
workflow_dispatch:
Expand All @@ -8,11 +13,7 @@ on:
- main
- devel
paths:
- 'plugins/modules/rule.py'

env:
NAMESPACE: checkmk
COLLECTION_NAME: general
- 'plugins/modules/${{env.MODULE_NAME}}.py'

jobs:

Expand Down Expand Up @@ -57,5 +58,5 @@ jobs:
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check

- name: Run integration test
run: ansible-test integration rule -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 }} --docker
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
13 changes: 7 additions & 6 deletions .github/workflows/ans-int-test-service_group.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# https://github.com/ansible-collections/collection_template/blob/main/.github/workflows/ansible-test.yml

env:
NAMESPACE: checkmk
COLLECTION_NAME: general
MODULE_NAME: service_group

name: Ansible Integration Tests for Service Group Module
on:
workflow_dispatch:
Expand All @@ -8,11 +13,7 @@ on:
- main
- devel
paths:
- 'plugins/modules/service_group.py'

env:
NAMESPACE: checkmk
COLLECTION_NAME: general
- 'plugins/modules/${{env.MODULE_NAME}}.py'

jobs:

Expand Down Expand Up @@ -57,5 +58,5 @@ jobs:
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check

- name: Run integration test
run: ansible-test integration service_group -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 }} --docker
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
Loading
Loading