generate-ldif: detect mdadm
This commit is contained in:
parent
de4d814d74
commit
f75354bb84
2 changed files with 20 additions and 2 deletions
|
@ -16,7 +16,8 @@ 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
|
||||
* generate-ldif: detect hardware raid card
|
||||
* generate-ldif: detect mdadm
|
||||
* listupgrade: crontab is configurable
|
||||
* mongodb: create munin plugins directory if missing
|
||||
* mysql: script "mysql_connections" to display a compact list of connections
|
||||
|
|
|
@ -583,10 +583,27 @@ objectClass: EvoService
|
|||
ServiceName: postgresql
|
||||
ipServicePort: 5432
|
||||
ServiceType: database
|
||||
ServiceVersion: PostgreSQL ${elasticsearch_version}
|
||||
ServiceVersion: PostgreSQL ${postgresql_version}
|
||||
EOT
|
||||
fi
|
||||
|
||||
# mdadm
|
||||
if is_pkg_installed mdadm; then
|
||||
mdadm_version=$(get_pkg_version mdadm)
|
||||
fi
|
||||
if [ -n "${mdadm_version}" ]; then
|
||||
cat <<EOT >> "${ldif_file}"
|
||||
|
||||
dn: ServiceName=mdadm,${computer_dn}
|
||||
NagiosEnabled: TRUE
|
||||
objectClass: EvoService
|
||||
ServiceName: mdadm
|
||||
ServiceType: raid
|
||||
ServiceVersion: mdadm ${mdadm_version}
|
||||
EOT
|
||||
fi
|
||||
|
||||
|
||||
# test if we have a stdout
|
||||
if [ -t 1 ]; then
|
||||
echo "Output is in ${ldif_file}"
|
||||
|
|
Loading…
Add table
Reference in a new issue