Skip to content

Commit

Permalink
Merge pull request #637 from Checkmk/devel
Browse files Browse the repository at this point in the history
Release 5.2.0
  • Loading branch information
robin-checkmk authored Aug 5, 2024
2 parents b125928 + 8a4c714 commit f591d81
Show file tree
Hide file tree
Showing 55 changed files with 278 additions and 494 deletions.
7 changes: 1 addition & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,4 @@ build/
tests/output
playbooks/vars/config.yml
playbooks/test*.yml
playbooks/hosts
playbooks/hosts.bak
venv/
Vagrantfile
Vagrantfile.bak
venv
venv/
40 changes: 10 additions & 30 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,11 @@ CONTAINER_NAME="ansible-checkmk-test"
help:
@echo "setup - Run all setup target at once."
@echo ""
@echo "setup-python - Prepare the system for development with Python."
@echo "python - Prepare the system for development with Python."
@echo ""
@echo "setup-kvm - Install and enable KVM and prepare Vagrant."
@echo "kvm - Install and enable KVM."
@echo ""
@echo "kvm - Only copy the correct Vagrantfile for use with KVM."
@echo ""
@echo "setup-vbox - Copy the correct Vagrantfile for use with VirtualBox."
@echo ""
@echo "vbox - Copy the correct Vagrantfile for use with VirtualBox."
@echo ""
@echo "setup-vagrant - Install and enable Vagrant."
@echo "vagrant - Install and enable Vagrant."
@echo ""
@echo "venv - Install Python Virtual Environment. You need to activate it yourself though!"
@echo ""
Expand Down Expand Up @@ -61,9 +55,9 @@ version:
@newversion=$$(dialog --stdout --inputbox "New Version:" 0 0 "$(VERSION)") ; \
if [ -n "$$newversion" ] ; then ./scripts/release.sh -s "$(VERSION)" -t $$newversion ; fi

setup: setup-python setup-kvm
setup: setup-python kvm vagrant

setup-python:
python:
@sudo apt-get -y update --quiet
@sudo apt-get -y install -y \
python3-pip \
Expand All @@ -76,36 +70,21 @@ setup-python:
@python3 -m pip install -r requirements.txt

kvm:
if [ -f Vagrantfile ] ; then cp Vagrantfile Vagrantfile.bak ; fi
cp Vagrantfile.kvm Vagrantfile
if [ -f playbooks/hosts ] ; then cp playbooks/hosts playbooks/hosts.bak ; fi
cp playbooks/hosts.kvm playbooks/hosts

setup-kvm: kvm
@sudo apt update -y
@sudo apt install -y \
virt-manager \
qemu-kvm \
libvirt-clients \
libvirt-daemon-system \
bridge-utils \--build-arg DL_PW=$$(cat .secret)
bridge-utils \
libvirt-daemon\
libvirt-dev \
libxslt-dev \
libxml2-dev \
zlib1g-dev
@sudo systemctl enable --now libvirtd
@vagrant plugin install vagrant-libvirt

vbox:
if [ -f Vagrantfile ] ; then cp Vagrantfile Vagrantfile.bak ; fi
cp Vagrantfile.vbox Vagrantfile
if [ -f playbooks/hosts ] ; then cp playbooks/hosts playbooks/hosts.bak ; fi
cp playbooks/hosts.vbox playbooks/hosts

setup-vbox: vbox

setup-vagrant:
vagrant:
@sudo apt update -y
@sudo apt install -y \
apt-transport-https \
Expand All @@ -121,15 +100,16 @@ setup-vagrant:

venv:
@python3 -m venv venv
@(. venv/bin/activate && python3 -m pip install pip --upgrade && python3 -m pip install -r requirements.txt)
@echo
@echo "Run the following command to actually activate the venv!"
@echo ". venv/bin/activate"
@echo
@(. venv/bin/activate && python3 -m pip install pip --upgrade && python3 -m pip install -r requirements.txt)

clean:
@rm -rf .tox/
@rm -rf venv/
@rm -rf ./venv/
@rm -rf ./tests/output/*
@vagrant destroy --force

vm:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ This is an open source endeavour, on which we want to collaborate with the commu
## Dependencies

- [ansible.posix](https://github.com/ansible-collections/ansible.posix)
- [ansible.utils](https://github.com/ansible-collections/ansible.utils)
- [community.general](https://github.com/ansible-collections/community.general)

Although the Ansible project notes, that collections should have no or very little dependencies, we want to make sure the collection works for you out-of-the-box. Currently we only depend on very basic collections, which are most likely already installed in your environment. For version constraints, see [galaxy.yml](galaxy.yml).
Expand Down
1 change: 1 addition & 0 deletions SUPPORT.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ Collection Version | Checkmk Versions | Ansible Versions | Remarks
4.4.1 | 2.0.0p39, 2.1.0p41, 2.2.0p24 | 2.14, 2.15, 2.16 | None
5.0.0 | 2.1.0p44, 2.2.0p27, 2.3.0p5 | 2.15, 2.16, 2.17 | Breaking changes to the following modules: `lookup_folder`, `rule` and role: `agent`.
5.1.0 | 2.1.0p44, 2.2.0p27, 2.3.0p6 | 2.15, 2.16, 2.17 | None
5.2.0 | 2.1.0p46, 2.2.0p31, 2.3.0p11 | 2.15, 2.16, 2.17 | None
File renamed without changes.
145 changes: 0 additions & 145 deletions Vagrantfile.vbox

This file was deleted.

6 changes: 6 additions & 0 deletions changelogs/fragments/agent.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
minor_changes:
- Agent role - Allow registration on mixed protocol environments.
This means the central and remote site do not both have to use either HTTP or HTTPS.

bugfixes:
- Agent role - Fix registration in cases where a prior registration failed.
5 changes: 5 additions & 0 deletions changelogs/fragments/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
minor_changes:
- The local development environment was cleaned up. We removed all traces of
VirtualBox and now exclusively use KVM/QEMU virtualization. This has no
effect on using the collection. It only affects you, if you develop for this
collection and used the `Vagrantfile` or `Makefile`.
2 changes: 2 additions & 0 deletions changelogs/fragments/downtime.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- Downtime module - Downtimes are now correctly removed when only specifying a single service.
1 change: 1 addition & 0 deletions changelogs/fragments/release_summary.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
release_summary: "Some bug fixing and a module update."
5 changes: 5 additions & 0 deletions changelogs/fragments/tag_group.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
minor_changes:
- Tag_group module - Enable module for Checkmk 2.4.0 by using
`id` instead of `ident` to identify tag groups and their tags.
See https://checkmk.com/werk/16364 for background information.
- Tag_group module - Migrate module to new collection API.
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name: general

# The version of the collection. Must be compatible with semantic versioning

version: 5.1.0
version: 5.2.0

# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md
Expand Down
File renamed without changes.
30 changes: 0 additions & 30 deletions playbooks/hosts.vbox

This file was deleted.

10 changes: 5 additions & 5 deletions playbooks/roles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

tasks:

- name: "Run server role."
tags: [server]
ansible.builtin.import_role:
name: server

- name: "Create folders."
tags: [agent]
checkmk.general.folder:
Expand All @@ -23,11 +28,6 @@
run_once: true # noqa run-once[task]
loop: "{{ checkmk_var_folders }}"

- name: "Run server role."
tags: [server]
ansible.builtin.import_role:
name: server

- name: "Run agent role."
tags: [agent]
ansible.builtin.import_role:
Expand Down
Loading

0 comments on commit f591d81

Please sign in to comment.