I try to clone a Debian10 computer in a VM automatically via [tag:vagrant].
I start from scratch with [tag:packer] then reinstall all the packages and configurations.
So, I tried from hardware computer:
dpkg --get-selections > dpkg
debconf-get-selections > debconf
then import them from the VM :
debconf-set-selections confold: If a conffile has been modified and the version in the package did change, always keep the old version without prompting, unless the --force-confdef is also specified, in which case the default action is preferred.
But I get prompted, even with this switch.
msmtp
debconf:
$ grep msmtp debconf
# Action souhaitée pour le fichier de configuration modifié msmtprc :
msmtp msmtp/auto_from boolean true
msmtp msmtp/tls boolean on on on /etc/ssl/certs/ca-certificates.crt
msmtp msmtp/host string smtp.foobarmail.com
msmtp msmtp/maildomain string
msmtp msmtp/port string 587
msmtp msmtp/sysconfig boolean true
phpldapadmin
debconf:
$ grep phpldapadmin ../../files/debconf.db
phpldapadmin phpldapadmin/restart-webserver boolean true
phpldapadmin phpldapadmin/ldap-authtype select session
phpldapadmin phpldapadmin/ldap-server string 127.0.0.1
phpldapadmin phpldapadmin/ldap-basedn string xxxx
phpldapadmin phpldapadmin/ldap-bindpw string secret
phpldapadmin phpldapadmin/ldap-tls boolean false
phpldapadmin phpldapadmin/reconfigure-webserver multiselect apache2
phpldapadmin phpldapadmin/ldap-binddn string xxxx
Asked by Mévatlavé Kraspek
(541 rep)
Jan 26, 2021, 12:41 AM
Last activity: Feb 14, 2021, 02:08 PM
Last activity: Feb 14, 2021, 02:08 PM