From 3623363b9451481d94e890ca2717c54a4449fbbd Mon Sep 17 00:00:00 2001 From: "William Hirigoyen (Evolix)" Date: Mon, 13 Jun 2022 17:35:31 +0200 Subject: [PATCH 1/5] Update changelog for version 22.06 --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d85ed31..88e45d00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -67,9 +67,14 @@ The **patch** part changes is incremented if multiple releases happen the same m * docker: Allow "live-restore" to be toggled with docker_conf_live_restore * evocheck: upstream release 22.06 +* evolinux-base: Replacement of variable `evolinux_packages_hardware` by `ansible_virtualization_role == "host"` automatize host type detection and avoids installing smartd & other on VM. * minifirewall: tail template follows symlinks * mysql: add "set crypt_use_gpgme=no" Mutt option, for mysqltuner +### Fixed + +* Role `postfix`: Add missing `localhost.localdomain localhost` to `mydestination` variable which caused undelivered of some local mails. + ## [22.05.1] 2022-05-12 ### Added From 57ecac01ba7fcc79167b00d15c33fab674db1428 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Thu, 16 Jun 2022 15:19:44 +0200 Subject: [PATCH 2/5] evolinux-base: blacklist and do not install megaclisas-status package on incompatible servers --- CHANGELOG.md | 2 ++ evolinux-base/tasks/hardware.yml | 36 ++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 88e45d00..e9831dbf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,8 @@ The **patch** part changes is incremented if multiple releases happen the same m ### Changed +* evolinux-base: blacklist and do not install megaclisas-status package on incompatible servers + ### Fixed ### Removed diff --git a/evolinux-base/tasks/hardware.yml b/evolinux-base/tasks/hardware.yml index 2e68cc36..55427082 100644 --- a/evolinux-base/tasks/hardware.yml +++ b/evolinux-base/tasks/hardware.yml @@ -157,6 +157,42 @@ - "'Hewlett-Packard Company Smart Array' in raidmodel.stdout" - evolinux_packages_hardware_raid | bool +## LSI MegaRAID 12GSAS/PCIe Secure SAS39xx +# This is still incompatible with Debian + +- name: Check if PERC HBA11 device is present + shell: "lspci | grep -qE 'MegaRAID.*SAS39xx'" + check_mode: no + register: perc_hba11_search + failed_when: False + changed_when: False + tags: + - packages + +- name: MegaCLI SAS package must not be installed if PERC HBA11 is present + block: + - name: Disable harware RAID tasks + set_fact: + evolinux_packages_hardware_raid: False + + - name: blacklist mageclisas-status package + blockinfile: + dest: /etc/apt/preferences.d/0-blacklist + marker: "## {mark} MEGACLISAS-STATUS BLACKLIST" + block: | + # DO NOT INSTALL THESE PACKAGES ON THIS SERVER + Package: megacli megaclisas-status + Pin: version * + Pin-Priority: -100 + + - name: Remove MegaCLI packages + apt: + name: + - megacli + - megaclisas-status + state: absent + when: perc_hba11_search.rc == 0 + - name: MegaCLI SAS package is present block: - name: HWRaid embedded GPG key is absent From a38a174b83e82682160bb50aff1f1a86ba1ab506 Mon Sep 17 00:00:00 2001 From: Eric Morino Date: Thu, 16 Jun 2022 16:08:10 +0200 Subject: [PATCH 3/5] Add create: yes for file 0-blacklist --- evolinux-base/tasks/hardware.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/evolinux-base/tasks/hardware.yml b/evolinux-base/tasks/hardware.yml index 55427082..fefb8177 100644 --- a/evolinux-base/tasks/hardware.yml +++ b/evolinux-base/tasks/hardware.yml @@ -178,6 +178,7 @@ - name: blacklist mageclisas-status package blockinfile: dest: /etc/apt/preferences.d/0-blacklist + create: yes marker: "## {mark} MEGACLISAS-STATUS BLACKLIST" block: | # DO NOT INSTALL THESE PACKAGES ON THIS SERVER From adc89a1b65e61112e7ad5828c1066a3423ae9afb Mon Sep 17 00:00:00 2001 From: Brice Waegeneire Date: Thu, 21 Apr 2022 11:28:32 +0200 Subject: [PATCH 4/5] Add nagios check for Redis Sentinel synchro --- .../files/plugins/check_redis_sentinel_sync | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100755 nagios-nrpe/files/plugins/check_redis_sentinel_sync diff --git a/nagios-nrpe/files/plugins/check_redis_sentinel_sync b/nagios-nrpe/files/plugins/check_redis_sentinel_sync new file mode 100755 index 00000000..e8f217aa --- /dev/null +++ b/nagios-nrpe/files/plugins/check_redis_sentinel_sync @@ -0,0 +1,46 @@ +#!/bin/sh +# +# Verify the synchroniation of Redis Sentinel slaves. + +output=$(mktemp --tmpdir $(basename "$0").XXXXXXXXXX) +critical_count=0 +ok_count=0 + +trap "rm -f $output" EXIT + +input=$(redis-cli -p 6380 sentinel slaves redis | sed 'N;s/\n/=/') + +#while read -r line; do +for line in $input; do + case "$line" in + name=*) name=${line#name=} ;; + master-link-status=*) status=${line#master-link-status=} ;; + esac + if [ -n "$name" ] && [ -n "$status" ]; then + if [ "$status" = ok ]; then + echo "OK - $name" >> "$output" + ok_count=$(( ok_count + 1)) + else + echo "CRITICAL - $name" >> "$output" + critical_count=$(( critical_count + 1)) + fi + unset name status + fi +done + +total_count=$(( ok_count + critical_count )) + +plural='' +test "$total_count" -gt 1 && plural='s' + +if [ $ok_count -eq $total_count ]; then + printf "OK - %d/%d Redis Sentinel slave%s are in sync\n\n" \ + "$ok_count" "$total_count" "$plural" + cat "$output" + exit 0 +else + printf "CRITICAL - %d/%d Redis Sentinal slave%s aren't in sync\n\n" \ + "$critical_count" "$total_count" "$plural" + cat "$output" + exit 2 +fi From 050c61c220eed35086815d540a6236479fa32233 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Fri, 17 Jun 2022 11:00:51 +0200 Subject: [PATCH 5/5] Release 22.06.3 --- CHANGELOG.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e9831dbf..66f33653 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,14 +14,18 @@ The **patch** part changes is incremented if multiple releases happen the same m ### Changed -* evolinux-base: blacklist and do not install megaclisas-status package on incompatible servers - ### Fixed ### Removed ### Security +## [22.06.3] 2022-06-17 + +### Changed + +* evolinux-base: blacklist and do not install megaclisas-status package on incompatible servers + ## [22.06.2] 2022-06-10 ### Added