Skip to content

Commit

Permalink
Merge pull request #618 from Checkmk/changelogs-docs-update-5.0.0
Browse files Browse the repository at this point in the history
[Auto] Update changelogs and docs upon release
  • Loading branch information
robin-checkmk authored Jun 7, 2024
2 parents 2fbe908 + 4af773c commit 2c7ef35
Show file tree
Hide file tree
Showing 37 changed files with 1,066 additions and 409 deletions.
34 changes: 34 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,40 @@ checkmk.general Release Notes

.. contents:: Topics

v5.0.0
======

Release Summary
---------------

(Re)writing history with overhauled modules and updated Checkmk, Ansible, Distribution and Python support.

Major Changes
-------------

- Discovery module - The module now fully supports Checkmk 2.3.0. Additionally, two new parameters were introduced, `update_service_labels` and `monitor_undecided_services`. Refer to the module documentation for further details.
- Rule module - The complete module was rewritten to use the new module API. Additionally, a parameter "rule_id" was introduced to modify existing rules. Refer to the module documentation for further details.

Minor Changes
-------------

- Agent role - Add support to open firewall for a list of IPs.
- Agent role - Replace `ansible.builtin.yum` with the succeeding `ansible.builtin.dnf`.
- Server role - Replace `ansible.builtin.yum` with the succeeding `ansible.builtin.dnf`.
- Several modules - Remove unnecessary HTTP codes which get already imported via utils.py.
- Testing - Add Ansible 2.17 to all tests. Be advised, that this Ansible release drops support for Python 2.7 and 3.6.
- Testing - Add Ubuntu 24.04 to the Molecule tests.
- Testing - All tests now cover Checkmk 2.3.0.
- Testing - Remove Ansible 2.14 from all tests, as it is EOL.
- Testing - Remove Checkmk 2.0.0 from all tests, as it is EOL.
- Testing - The Molecule tests now run on Ubuntu 22.04.

Breaking Changes / Porting Guide
--------------------------------

- Agent role - Not really a breaking change, but we removed the internal variable `checkmk_agent_server_ip`. If you set this variable in your inventory, please make sure to update your configuration accordingly!
- Folder lookup module - Return the complete folder information, not only the extensions. To keep the current behavior in your playbooks, you want to use `{{ my_lookup_result.extensions }}` instead of `{{ my_lookup_result }}`.

v4.4.1
======

Expand Down
2 changes: 1 addition & 1 deletion changelogs/.plugin-cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,4 @@ plugins:
strategy: {}
test: {}
vars: {}
version: 4.4.1
version: 5.0.0
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
41 changes: 41 additions & 0 deletions changelogs/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -901,3 +901,44 @@ releases:
- meta.yml
- release_summary.yml
release_date: '2024-05-01'
5.0.0:
changes:
breaking_changes:
- Agent role - Not really a breaking change, but we removed the internal variable
`checkmk_agent_server_ip`. If you set this variable in your inventory, please
make sure to update your configuration accordingly!
- Folder lookup module - Return the complete folder information, not only the
extensions. To keep the current behavior in your playbooks, you want to use
`{{ my_lookup_result.extensions }}` instead of `{{ my_lookup_result }}`.
major_changes:
- Discovery module - The module now fully supports Checkmk 2.3.0. Additionally,
two new parameters were introduced, `update_service_labels` and `monitor_undecided_services`.
Refer to the module documentation for further details.
- Rule module - The complete module was rewritten to use the new module API.
Additionally, a parameter "rule_id" was introduced to modify existing rules.
Refer to the module documentation for further details.
minor_changes:
- Agent role - Add support to open firewall for a list of IPs.
- Agent role - Replace `ansible.builtin.yum` with the succeeding `ansible.builtin.dnf`.
- Server role - Replace `ansible.builtin.yum` with the succeeding `ansible.builtin.dnf`.
- Several modules - Remove unnecessary HTTP codes which get already imported
via utils.py.
- Testing - Add Ansible 2.17 to all tests. Be advised, that this Ansible release
drops support for Python 2.7 and 3.6.
- Testing - Add Ubuntu 24.04 to the Molecule tests.
- Testing - All tests now cover Checkmk 2.3.0.
- Testing - Remove Ansible 2.14 from all tests, as it is EOL.
- Testing - Remove Checkmk 2.0.0 from all tests, as it is EOL.
- Testing - The Molecule tests now run on Ubuntu 22.04.
release_summary: (Re)writing history with overhauled modules and updated Checkmk,
Ansible, Distribution and Python support.
fragments:
- agent.yml
- build.yml
- discovery.yml
- http.yml
- lookup_folder.yml
- release_summary.yml
- roles.yml
- rule.yml
release_date: '2024-06-07'
32 changes: 16 additions & 16 deletions docs/activation_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
:trim:

.. meta::
:antsibull-docs: 2.10.0
:antsibull-docs: 2.11.0

.. Anchors
Expand All @@ -23,7 +23,7 @@ checkmk.general.activation module -- Activate changes in Checkmk.
.. Collection note
.. note::
This module is part of the `checkmk.general collection <https://galaxy.ansible.com/ui/repo/published/checkmk/general/>`_ (version 4.4.1).
This module is part of the `checkmk.general collection <https://galaxy.ansible.com/ui/repo/published/checkmk/general/>`_ (version 5.0.0).

It is not included in ``ansible-core``.
To check whether it is installed, run :code:`ansible-galaxy collection list`.
Expand Down Expand Up @@ -400,35 +400,35 @@ Examples

- name: "Start activation on all sites."
checkmk.general.activation:
server_url: "http://my_server/"
site: "my_site"
automation_user: "my_user"
automation_secret: "my_secret"
server_url: "http://myserver/"
site: "mysite"
automation_user: "myuser"
automation_secret: "mysecret"
run_once: 'true'

- name: "Start activation on a specific site."
checkmk.general.activation:
server_url: "http://my_server/"
site: "my_site"
automation_user: "my_user"
automation_secret: "my_secret"
server_url: "http://myserver/"
site: "mysite"
automation_user: "myuser"
automation_secret: "mysecret"
sites:
- "my_site"
- "mysite"
run_once: 'true'

- name: "Start activation including foreign changes."
checkmk.general.activation:
server_url: "http://my_server/"
site: "my_site"
automation_user: "my_user"
automation_secret: "my_secret"
server_url: "http://myserver/"
site: "mysite"
automation_user: "myuser"
automation_secret: "mysecret"
force_foreign_changes: 'true'
run_once: 'true'

- name: "Activate changes including foreign changes and wait for completion."
checkmk.general.activation:
server_url: "http://localhost/"
site: "my_site"
site: "mysite"
automation_user: "automation"
automation_secret: "$SECRET"
redirect: 'true'
Expand Down
16 changes: 8 additions & 8 deletions docs/bakery_lookup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
:trim:

.. meta::
:antsibull-docs: 2.10.0
:antsibull-docs: 2.11.0

.. Anchors
Expand All @@ -23,7 +23,7 @@ checkmk.general.bakery lookup -- Get the bakery status of a Checkmk server
.. Collection note
.. note::
This lookup plugin is part of the `checkmk.general collection <https://galaxy.ansible.com/ui/repo/published/checkmk/general/>`_ (version 4.4.1).
This lookup plugin is part of the `checkmk.general collection <https://galaxy.ansible.com/ui/repo/published/checkmk/general/>`_ (version 5.0.0).

It is not included in ``ansible-core``.
To check whether it is installed, run :code:`ansible-galaxy collection list`.
Expand Down Expand Up @@ -391,8 +391,8 @@ Examples
msg: "Bakery status is {{ bakery }}"
vars:
bakery: "{{ lookup('checkmk.general.bakery',
server_url=http://my_server,
site=my_site,
server_url=http://myserver,
site=mysite,
validate_certs=False,
automation_user=automation_user,
automation_secret=automation_secret
Expand All @@ -402,10 +402,10 @@ Examples
ansible.builtin.debug:
msg: "Bakery status is {{ bakery }}"
vars:
ansible_lookup_checkmk_server_url: "http://my_server/"
ansible_lookup_checkmk_site: "my_site"
ansible_lookup_checkmk_automation_user: "my_user"
ansible_lookup_checkmk_automation_secret: "my_secret"
ansible_lookup_checkmk_server_url: "http://myserver/"
ansible_lookup_checkmk_site: "mysite"
ansible_lookup_checkmk_automation_user: "myuser"
ansible_lookup_checkmk_automation_secret: "mysecret"
ansible_lookup_checkmk_validate_certs: false
bakery: "{{ lookup('checkmk.general.bakery') }}"

Expand Down
28 changes: 14 additions & 14 deletions docs/bakery_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
:trim:

.. meta::
:antsibull-docs: 2.10.0
:antsibull-docs: 2.11.0

.. Anchors
Expand All @@ -23,7 +23,7 @@ checkmk.general.bakery module -- Trigger baking and signing in the agent bakery.
.. Collection note
.. note::
This module is part of the `checkmk.general collection <https://galaxy.ansible.com/ui/repo/published/checkmk/general/>`_ (version 4.4.1).
This module is part of the `checkmk.general collection <https://galaxy.ansible.com/ui/repo/published/checkmk/general/>`_ (version 5.0.0).

It is not included in ``ansible-core``.
To check whether it is installed, run :code:`ansible-galaxy collection list`.
Expand Down Expand Up @@ -389,28 +389,28 @@ Examples
# Bake all agents without signing, as example in a fresh installation without a signature key.
- name: "Bake all agents without signing."
checkmk.general.bakery:
server_url: "http://my_server/"
site: "my_site"
automation_user: "my_user"
automation_secret: "my_secret"
server_url: "http://myserver/"
site: "mysite"
automation_user: "myuser"
automation_secret: "mysecret"
state: "baked"
# Sign all agents.
- name: "Sign all agents."
checkmk.general.bakery:
server_url: "http://my_server/"
site: "my_site"
automation_user: "my_user"
automation_secret: "my_secret"
server_url: "http://myserver/"
site: "mysite"
automation_user: "myuser"
automation_secret: "mysecret"
signature_key_id: 1
signature_key_passphrase: "my_key"
state: "signed"
# Bake and sign all agents.
- name: "Bake and sign all agents."
checkmk.general.bakery:
server_url: "http://my_server/"
site: "my_site"
automation_user: "my_user"
automation_secret: "my_secret"
server_url: "http://myserver/"
site: "mysite"
automation_user: "myuser"
automation_secret: "mysecret"
signature_key_id: 1
signature_key_passphrase: "my_key"
state: "baked_signed"
Expand Down
44 changes: 22 additions & 22 deletions docs/contact_group_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
:trim:

.. meta::
:antsibull-docs: 2.10.0
:antsibull-docs: 2.11.0

.. Anchors
Expand All @@ -23,7 +23,7 @@ checkmk.general.contact_group module -- Manage contact groups in Checkmk (bulk v
.. Collection note
.. note::
This module is part of the `checkmk.general collection <https://galaxy.ansible.com/ui/repo/published/checkmk/general/>`_ (version 4.4.1).
This module is part of the `checkmk.general collection <https://galaxy.ansible.com/ui/repo/published/checkmk/general/>`_ (version 5.0.0).

It is not included in ``ansible-core``.
To check whether it is installed, run :code:`ansible-galaxy collection list`.
Expand Down Expand Up @@ -460,10 +460,10 @@ Examples
# Create a single contact group.
- name: "Create a single contact group."
checkmk.general.contact_group:
server_url: "http://my_server/"
site: "my_site"
automation_user: "my_user"
automation_secret: "my_secret"
server_url: "http://myserver/"
site: "mysite"
automation_user: "myuser"
automation_secret: "mysecret"
name: "my_contact_group"
title: "My Contact Group"
customer: "provider"
Expand All @@ -472,10 +472,10 @@ Examples
# Create several contact groups.
- name: "Create several contact groups."
checkmk.general.contact_group:
server_url: "http://my_server/"
site: "my_site"
automation_user: "my_user"
automation_secret: "my_secret"
server_url: "http://myserver/"
site: "mysite"
automation_user: "myuser"
automation_secret: "mysecret"
customer: "provider"
groups:
- name: "my_contact_group_one"
Expand All @@ -489,10 +489,10 @@ Examples
# Create several contact groups.
- name: "Create several contact groups."
checkmk.general.contact_group:
server_url: "http://my_server/"
site: "my_site"
automation_user: "my_user"
automation_secret: "my_secret"
server_url: "http://myserver/"
site: "mysite"
automation_user: "myuser"
automation_secret: "mysecret"
customer: "provider"
groups:
- name: "my_contact_group_one"
Expand All @@ -504,20 +504,20 @@ Examples
# Delete a single contact group.
- name: "Create a single contact group."
checkmk.general.contact_group:
server_url: "http://my_server/"
site: "my_site"
automation_user: "my_user"
automation_secret: "my_secret"
server_url: "http://myserver/"
site: "mysite"
automation_user: "myuser"
automation_secret: "mysecret"
name: "my_contact_group"
state: "absent"

# Delete several contact groups.
- name: "Delete several contact groups."
checkmk.general.contact_group:
server_url: "http://my_server/"
site: "my_site"
automation_user: "my_user"
automation_secret: "my_secret"
server_url: "http://myserver/"
site: "mysite"
automation_user: "myuser"
automation_secret: "mysecret"
groups:
- name: "my_contact_group_one"
- name: "my_contact_group_two"
Expand Down
Loading

0 comments on commit 2c7ef35

Please sign in to comment.