icinga-common debconf preconfiguration not working for check_external_commands
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
icinga (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hi there,
I am currently trying to preconfigure the debconf question of icinga-common for an unattended installation. In detail I want to enable the check_external_
-------
# echo "icinga-common icinga/
# export DEBIAN_
# apt-get install icinga-common
-------
Unfortunately the check_external_
I think I found the reason why the value becomes overwritten, in icinga-
-------
if [ -e "$conffile" ]; then
# translate icinga option into debconf boolean
# (this is better than using a select in debconf with Choices-C,
# otherwise all translators would need to translate 'yes' and 'no').
case $check_
0)
1)
esac
db_set icinga/
db_input high icinga/
db_go || true
-------
In the last statements with db_set I think the debconf preconfigured value is overwritten, as the config file is checked for "check_
As check_external_
The fix with the icinga.cfg file and the case statement should then be not necessary, as a result preconfiguration should work also.
System Information
-------
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.2 LTS
Release: 12.04
Codename: precise
# uname -r
3.2.0-48-generic
Package Information
-------
icinga-common 1.9.1-1~
I have rebuilded icinga and tested the attached patch.
As far as I can see there are no problems with it and preseeding with debconf works also.