No description
Find a file
Ryan Coleman 949981ff5c Update Modulefile for 1.0.0 release
This commit increments the version number to 1.0.0 for a new
Puppet Forge release.

Version 1.0.0 is a backwards incompatible release of puppetlabs-apt.

The major change is to the apt::backports class which had its repos
property modified on Ubuntu systems to include the main repository
in addition to universe, multiverse & restricted.

Additionally, the following bug fixes or minor enhancements were
introduced:
* Cleanup of style, variable scope and bug fixes.
* Exec resources now set the `logoutput` parameter to on_failure.
* Adds a timeout parameter to the apt::force defined resource type
* Allow pinning on version numbers in apt::pin
* Allow optional order parameter to apt::pin
* Allow ability to fill in pin explanation

Contributions were provided by the following fine folk:
Nan Liu
Anton Lindström
ytjohn
Steffen Zieger
Erik Dalén
Jonathan Araña Cruz
sathlan
Branan Purvine-Riley
Alexander Menk
2012-10-29 20:24:35 -07:00
manifests (#16076) Ability to fill in pin explanation 2012-10-25 15:44:20 -04:00
spec (#16076) Ability to fill in pin explanation 2012-10-25 15:44:20 -04:00
templates (#16076) Ability to fill in pin explanation 2012-10-25 15:44:20 -04:00
tests Fix style errors 2012-08-21 22:55:24 +02:00
.fixtures.yml Make gemfile and fixtures.yml hidden files for the sake of module tool 2012-05-22 15:20:14 -07:00
.gemfile Switch to the new puppetlabs_spec_helper gem 2012-05-31 15:32:03 -07:00
.gitignore Ignore pkg directory. 2012-03-26 16:31:12 -07:00
.travis.yml Switch to the new puppetlabs_spec_helper gem 2012-05-31 15:32:03 -07:00
CHANGELOG Update Modulefile and CHANGELOG for 0.0.4 2012-05-25 14:06:29 -07:00
LICENSE Update LICENSE. 2011-04-18 11:36:04 -04:00
Modulefile Update Modulefile for 1.0.0 release 2012-10-29 20:24:35 -07:00
Rakefile Switch to the new puppetlabs_spec_helper gem 2012-05-31 15:32:03 -07:00
README.md Update readme.md - Syntax of apt class 2012-10-21 00:18:19 +03:00

Apt module for Puppet

Description

Provides helpful definitions for dealing with Apt.

Usage

apt

The apt class provides a number of common resources and options which are shared by the various defined types in this module. This class should always be included in your manifests if you are using the apt module.

class { 'apt':
  always_apt_update    => false,
  disable_keys         => undef,
  proxy_host           => false,
  proxy_port           => '8080',
  purge_sources_list   => false,
  purge_sources_list_d => false,
  purge_preferences_d  => false
}

apt::builddep

Install the build depends of a specified package.

apt::builddep { "glusterfs-server": }

apt::force

Force a package to be installed from a specific release. Useful when using repositories like Debian unstable in Ubuntu.

apt::force { "glusterfs-server":
  release => "unstable",
  version => '3.0.3',
  require => Apt::Source["debian_unstable"],
}

apt::pin

Add an apt pin for a certain release.

apt::pin { "karmic": priority => 700 }
apt::pin { "karmic-updates": priority => 700 }
apt::pin { "karmic-security": priority => 700 }

apt::ppa

Add a ppa repository using add-apt-repository. Somewhat experimental.

apt::ppa { "ppa:drizzle-developers/ppa": }

apt::release

Set the default apt release. Useful when using repositories like Debian unstable in Ubuntu.

apt::release { "karmic": }

apt::source

Add an apt source to /etc/apt/sources.list.d/.

apt::source { "debian_unstable":
  location          => "http://debian.mirror.iweb.ca/debian/",
  release           => "unstable",
  repos             => "main contrib non-free",
  required_packages => "debian-keyring debian-archive-keyring",
  key               => "55BE302B",
  key_server        => "subkeys.pgp.net",
  pin               => "-10",
  include_src       => true
}

This source will configure your system for the Puppet Labs APT repository.

apt::source { 'puppetlabs':
  location   => 'http://apt.puppetlabs.com',
  repos      => 'main',
  key        => '4BD6EC30',
  key_server => 'pgp.mit.edu',
}

apt::key

Add a key to the list of keys used by apt to authenticate packages.

apt::key { "puppetlabs":
  key        => "4BD6EC30",
  key_server => "pgp.mit.edu",
}

apt::key { "jenkins":
  key        => "D50582E6",
  key_source => "http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key",
}

Note that use of the "key_source" parameter requires wget to be installed and working.

Contributors

A lot of great people have contributed to this module. A somewhat current list follows.

Ben Godfrey ben.godfrey@wonga.com Branan Purvine-Riley branan@puppetlabs.com Christian G. Warden cwarden@xerus.org
Dan Bode bodepd@gmail.com dan@puppetlabs.com
Garrett Honeycutt github@garretthoneycutt.com
Jeff Wallace jeff@evolvingweb.ca jeff@tjwallace.ca
Ken Barber ken@bob.sh
Matthaus Litteken matthaus@puppetlabs.com mlitteken@gmail.com
Matthias Pigulla mp@webfactory.de
Monty Taylor mordred@inaugust.com
Peter Drake pdrake@allplayers.com
Reid Vandewiele marut@cat.pdx.edu
Robert Navarro rnavarro@phiivo.com
Ryan Coleman ryan@puppetlabs.com
Scott McLeod scott.mcleod@theice.com
Spencer Krum spencer@puppetlabs.com
William Van Hevelingen blkperl@cat.pdx.edu wvan13@gmail.com
Zach Leslie zach@puppetlabs.com