Preseeding with dpkg doesn't work for newly installed packages.
Detail:
Using the following class:
class glpi {
file{'/etc/dpkg/glpi.response':
ensure=>present,
content=>'glpi glpi/dbconfig-install boolean false
glpi glpi/dbconfig-upgrade boolean false';
}
package{'glpi':
ensure=>installed,
responsefile=>'/etc/dpkg/glpi.response',
require=>File['/etc/dpkg/glpi.response'];
}
}
I get:
info: Package[glpi](provider=apt): Preseeding /etc/dpkg/glpi.response to debconf-set-selections
err: //Node[xian]/glpi/Package[glpi]/ensure: change from purged to present failed: Execution of '/usr/bin/debconf-set-selections /etc/dpkg/glpi.response' returned 256: error: Cannot find a question for glpi/dbconfig-install
error: Cannot find a question for glpi/dbconfig-upgrade