Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Module for configuring Apt using Puppet.

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 debian
Octocat-spinner-32 lib
Octocat-spinner-32 manifests keyserver option has to come beforehand. *facepalm* August 01, 2012
Octocat-spinner-32 templates
Octocat-spinner-32 LICENSE Move puppet-module-apt-archive into apt::archive. June 20, 2012
Octocat-spinner-32 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.