Skip to content
Module for configuring Apt using Puppet.
Puppet Ruby Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
debian
lib/puppet/parser/functions
manifests
templates
LICENSE
README.md

README.md

Don't Use This

Use the puppetlabs apt repo instead: https://github.com/puppetlabs/puppetlabs-apt/

This is here purely for historical interest (and the fact that I'm still using it in production several places where I haven't had a chance to switch!)

Introduction

Puppet module providing configuration for the apt package manager and apt-related resources. Currently only tested on Ubuntu.

Install into puppet module_path/apt

The module will automatically update your apt index every Puppet run.

Basic Usage

To add sources, use apt::source:

apt::source { 'site-testing-lucid':
    enable => true,
    url    => 'http://example.com/debian';
}

PPAs can be added using apt::ppa:

apt::ppa { 'ppa:txwikinger/php5.2':
    ensure => 'present',
}

To add trusted apt keys, use apt::key:

apt::key { '1BB943DB':
    ensure    => present,
    keyserver => 'keyserver.ubuntu.com'
}

To add apt preferences to /etc/apt/preferences.d:

apt::preference { 'backports-pin':
    ensure => present,
    source => 'puppet:///modules/site/backport-pin',
}

Apt Archives

To set up the directory structure and config file for an apt package archive, you can use the apt::archive defined type:

class { 'apt::archive::setup': }

apt::archive { '/repository':
    ensure => present,
    dists  => ['lucid'],
    owner  => 'www-data',
}
Something went wrong with that request. Please try again.