generate-ldif: detect hardware raid card

This commit is contained in:
Ludovic Poujol 2021-09-16 17:17:32 +02:00
parent 6a2cd59e6d
commit de4d814d74
2 changed files with 14 additions and 0 deletions

View File

@ -16,6 +16,7 @@ The **patch** part changes incrementally at each release.
* apache: new variable for mpm mode (+ updated default config accordingly)
* certbot: add script for manual deploy hooks execution
* evolinux-base: install molly-guard by default
* generate-ldid: detect hardware raid card
* listupgrade: crontab is configurable
* mongodb: create munin plugins directory if missing
* mysql: script "mysql_connections" to display a compact list of connections

View File

@ -174,6 +174,19 @@ NagiosEnabled: TRUE
EOT
fi
# raid hardware
if [ -n "${raidModel}" ]; then
cat <<EOT >> "${ldif_file}"
dn: HardwareName=raid_card,${computer_dn}
objectClass: EvoHardware
HardwareName: raid_card
HardwareType: disk
HardwareModel: ${raidModel}
NagiosEnabled: TRUE
EOT
fi
# Swap
swap=$(free -h | grep Swap: | tr -s ' ' | cut -d ' ' -f2)
if [ -n "${swap}" ]; then