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 5.1.0 #622

Merged
merged 74 commits into from
Jun 17, 2024
Merged
Changes from 1 commit
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
96baa27
Add new ansible tests workflow.
robin-checkmk May 30, 2024
2aeb5f5
Add linting config and comment out unit tests.
robin-checkmk May 30, 2024
b4266c6
Add tox-ansible.
robin-checkmk May 30, 2024
648bc5d
Add concurrency to old integration tests.
robin-checkmk May 30, 2024
07351c2
Test molecule integration into tox-ansible.
robin-checkmk May 30, 2024
9294426
Add deadsnakes to Vagrantbox for tox-ansible.
robin-checkmk May 30, 2024
91b25fa
Add changelog to release object.
robin-checkmk Jun 3, 2024
dc8750f
Update task names.
robin-checkmk Jun 3, 2024
8e60b9e
Troubleshooting.
robin-checkmk Jun 3, 2024
63a331c
Next try.
robin-checkmk Jun 3, 2024
e815d09
Simplify recording command.
robin-checkmk Jun 3, 2024
8267dff
Another approach.
robin-checkmk Jun 3, 2024
2529fdf
Prefix all internal variables with a double underscore.
robin-checkmk Jun 6, 2024
217f7d8
Update CONTRIBUTING.md.
robin-checkmk Jun 6, 2024
fb309f2
First try at making the TLS registration idempotent.
robin-checkmk Jun 6, 2024
b4be10b
Merge branch 'devel' into build/new-testing-ideas
robin-checkmk Jun 7, 2024
9d2db08
Merge branch 'devel' of github.com:Checkmk/ansible-collection-checkmk…
robin-checkmk Jun 7, 2024
4a8eba2
Add changelog.
robin-checkmk Jun 7, 2024
7d6cdf2
Add support for Windows.
robin-checkmk Jun 7, 2024
271425a
Add support for the agent updater.
robin-checkmk Jun 7, 2024
fd9d9ad
Merge branch 'devel' of github.com:Checkmk/ansible-collection-checkmk…
robin-checkmk Jun 7, 2024
9441a4e
Fix behavior when file is not found.
robin-checkmk Jun 7, 2024
8c47cb1
Merge branch 'build/new-testing-ideas' of github.com:Checkmk/ansible-…
robin-checkmk Jun 7, 2024
1e1b398
Fix variable typos in lookup Readme
mueller-ma Jun 10, 2024
2b363f2
Add `failed_when` so the task does not fail, even if the file does no…
robin-checkmk Jun 10, 2024
2686ebb
Merge branch 'feature/mark-internal-vars' into feature/agent-improve-…
robin-checkmk Jun 10, 2024
0b6cf1d
Bugfix attempt.
robin-checkmk Jun 10, 2024
320e1b1
Next try.
robin-checkmk Jun 10, 2024
1b7c67b
Bump version.
robin-checkmk Jun 10, 2024
d5402b0
New approach.
robin-checkmk Jun 10, 2024
502ba49
Remove molecule workaround.
robin-checkmk Jun 10, 2024
fcc7bf8
Getting close.
robin-checkmk Jun 10, 2024
0f2b6f3
Bugfix.
robin-checkmk Jun 10, 2024
fb60b9f
Finalize.
robin-checkmk Jun 10, 2024
044ffa1
Merge branch 'devel' of github.com:Checkmk/ansible-collection-checkmk…
robin-checkmk Jun 10, 2024
21ab5b6
Reset version.
robin-checkmk Jun 10, 2024
01e048a
Bump versions.
robin-checkmk Jun 10, 2024
a0db411
Merge branch 'devel' of github.com:Checkmk/ansible-collection-checkmk…
robin-checkmk Jun 10, 2024
701ad11
Exclude tests from linting.
robin-checkmk Jun 10, 2024
668f7e1
Fix linting findings.
robin-checkmk Jun 10, 2024
5fb4633
Revert the changes, which are not yet ready to be merged.
robin-checkmk Jun 10, 2024
a374e3e
Merge pull request #620 from mueller-ma/patch-1
robin-checkmk Jun 11, 2024
982f0f8
Merge pull request #621 from Checkmk/build/implement-sensible-stuff
robin-checkmk Jun 11, 2024
b98c555
Implement workaround for missing Checkmk 2.1.0 packages for Ubuntu 24…
robin-checkmk Jun 11, 2024
a481625
Add new sanity ignores after Ansible release.
robin-checkmk Jun 11, 2024
2de70b9
Remove obsolete Python version.
robin-checkmk Jun 12, 2024
e068898
Update sanity ignores.
robin-checkmk Jun 12, 2024
147263f
Remove workaround approach for Checkmk 2.1.0 and Ubuntu 24.04.
robin-checkmk Jun 12, 2024
a5c5d03
Add OS info print task for future debugging.
robin-checkmk Jun 12, 2024
d6165a9
These tasks never change a thing, so we set appropriate changed_when …
robin-checkmk Jun 13, 2024
a6ac6df
Fix typo.
robin-checkmk Jun 13, 2024
efd510e
The modules to download web content on Windows and Linux use differen…
robin-checkmk Jun 13, 2024
d1f8eea
Fix typo.
robin-checkmk Jun 13, 2024
ae0239c
Merge branch 'devel' of github.com:Checkmk/ansible-collection-checkmk…
robin-checkmk Jun 13, 2024
28fc425
Add changelog.
robin-checkmk Jun 13, 2024
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
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
Prev Previous commit
Next Next commit
First try at making the TLS registration idempotent.
  • Loading branch information
robin-checkmk committed Jun 6, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit fb309f24a4ccf2ca7ae2070be6df81e5a184ca6c
6 changes: 6 additions & 0 deletions roles/agent/tasks/Linux.yml
Original file line number Diff line number Diff line change
@@ -87,6 +87,11 @@
path: /usr/bin/cmk-agent-ctl
register: __checkmk_agent_controller_binary

- name: "{{ ansible_system }}: Read Agent Controller State." # noqa no-changed-when
become: true
ansible.builtin.command: cat /var/lib/cmk-agent/registered_connections.json
register: __checkmk_agent_registered_connections

- name: "{{ ansible_system }}: Register Agent for automatic Updates using User Password." # noqa no-changed-when
become: true
ansible.builtin.shell: |
@@ -128,6 +133,7 @@
__checkmk_agent_controller_binary.stat.exists | bool
and checkmk_agent_tls | bool
and (__checkmk_agent_auth is defined and __checkmk_agent_auth | length)
and not checkmk_agent_registration_server + '/' + checkmk_agent_registration_site in __checkmk_agent_registered_connections.stdout

- name: "{{ ansible_system }}: Verify Checkmk Agent Port is open."
ansible.builtin.wait_for:
Loading