config is in maas-provision 2.2.2-0ubuntu4.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | #! /bin/sh -e
. /usr/share/debconf/confmodule
db_version 2.0
# Only ask this question on new installs and reconfigures
if ([ "$1" = "configure" ] && [ -z "$2" ]) || [ "$1" = "reconfigure" ]; then
db_input low maas-provision/password || true
db_go
# Sanitize some ip settings, so as to make cobbler more useful out of the box
# This interface/ipaddr code was stolen from /usr/lib/byobu/ip_address
while read Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT; do
[ "$Mask" = "00000000" ] && break
done < /proc/net/route
interface="$Iface"
ipaddr=$(LC_ALL=C /sbin/ip -4 addr list dev "$interface" scope global)
ipaddr=${ipaddr#* inet }
ipaddr=${ipaddr%%/*}
db_get maas-provision/server_and_next_server || true
if ([ -n "$RET" ] && [ "$RET" != "127.0.0.1" ]); then
db_set maas-provision/server_and_next_server "$RET"
elif [ -n "$ipaddr" ]; then
db_set maas-provision/server_and_next_server "$ipaddr"
fi
db_input low maas-provision/server_and_next_server || true
db_go
fi
exit 0
|