generate-ldif: detect hardware raid card
This commit is contained in:
parent
6a2cd59e6d
commit
de4d814d74
|
@ -16,6 +16,7 @@ The **patch** part changes incrementally at each release.
|
||||||
* apache: new variable for mpm mode (+ updated default config accordingly)
|
* apache: new variable for mpm mode (+ updated default config accordingly)
|
||||||
* certbot: add script for manual deploy hooks execution
|
* certbot: add script for manual deploy hooks execution
|
||||||
* evolinux-base: install molly-guard by default
|
* evolinux-base: install molly-guard by default
|
||||||
|
* generate-ldid: detect hardware raid card
|
||||||
* listupgrade: crontab is configurable
|
* listupgrade: crontab is configurable
|
||||||
* mongodb: create munin plugins directory if missing
|
* mongodb: create munin plugins directory if missing
|
||||||
* mysql: script "mysql_connections" to display a compact list of connections
|
* mysql: script "mysql_connections" to display a compact list of connections
|
||||||
|
|
|
@ -174,6 +174,19 @@ NagiosEnabled: TRUE
|
||||||
EOT
|
EOT
|
||||||
fi
|
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
|
||||||
swap=$(free -h | grep Swap: | tr -s ' ' | cut -d ' ' -f2)
|
swap=$(free -h | grep Swap: | tr -s ' ' | cut -d ' ' -f2)
|
||||||
if [ -n "${swap}" ]; then
|
if [ -n "${swap}" ]; then
|
||||||
|
|
Loading…
Reference in a new issue