forked from evolix/ansible-roles
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)
|
||||
* 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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue