Forge Home


Debian/Ubuntu package configuration


12,691 latest version

3.6 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.1.1 (latest)
  • 0.1.0
released Jul 20th 2014
This version is compatible with:
  • Debian, Ubuntu

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'rlenglet-debconf_package', '0.1.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add rlenglet-debconf_package
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install rlenglet-debconf_package --version 0.1.1

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.



rlenglet/debconf_package — version 0.1.1 Jul 20th 2014


####Table of Contents

  1. Overview - What is the debconf_package module?
  2. Module Description - What does the debconf_package module do?
  3. Setup - The basics of getting started with debconf_package
  4. Usage - The custom type available for configuration
  5. Limitations - OS compatibility, etc.
  6. Development - Guide for contributing to the module
  7. Contributors
  8. License


Configures Debian/Ubuntu packages using debconf preseed files and reconfigures them when the preseed files are modified.

##Module Description

The debconf_package module adds a type that installs and configures a Debian/Ubuntu package using a debconf preseed file and executes dpkg-reconfigure when the preseed file is updated.


The best way to install this module is by executing the following command on your puppet master or local Puppet install:

$ puppet module install [--modulepath <path>] rlenglet/debconf_package

The above command also includes the optional argument to specify your puppet master's modulepath as the location to install the module.

###What debconf_package affects

  • Debian packages.
  • Debian debconf preseed selections.

###Beginning with debconf_package

The ::debconf_package type is a simplified version of the standard package type, which optionally allows specifying debconf selections in the content or source attribute.

Specify the optional ensure and content or source attributes:

debconf_package { openssh-server:
  ensure => present,
  content => 'openssh-server    ssh/use_old_init_script boolean true
openssh-server  ssh/disable_cr_auth boolean false


###Defined Type: debconf_package



The ensure attribute for the package. Accepts the same values as in the standard package type.


The file to use as source for the debconf preseed file. Mutually exclusive with content.


The contents of the debconf preseed file. Mutually exclusive with source.


This module is compatible only with Debian and Ubuntu.


Feedback and contributions are appreciated, in the form of issues or pull requests on the Github project page.


The debconf_package module is based on Erik Dalén's preseed_package module.


Copyright 2012 Erik Dalén Copyright 2013, 2014 Romain Lenglet

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.