Puppet: System Administration Automated

Support

Ticket #1213 (new defect)

Opened 3 months ago

Last modified 3 months ago

debconf-set-selections cannot be called before the package is installed

Reported by: mathieu.parent Assigned to: community
Priority: normal Milestone:
Component: Debian Version: 0.24.4
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Attached Patches: None Complexity: Unknown

Description

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

Change History

05/12/08 23:21:54 changed by luke

Can someone with more knowledge of dpkg look at this? I'm pretty lost.