module-puppetlabs-apt/README.md

96 lines
2.6 KiB
Markdown
Raw Normal View History

2010-04-27 22:38:28 +02:00
# Apt module for Puppet
## Description
Provides helpful definitions for dealing with Apt.
## Usage
2011-07-25 00:12:25 +02:00
### apt:builddep
Install the build depends of a specified package.
<pre>
apt::builddep { "glusterfs-server": }
</pre>
2010-04-27 22:38:28 +02:00
### apt::force
2011-12-20 21:06:24 +01:00
Force a package to be installed from a specific release. Useful when using repositories like Debian unstable in Ubuntu.
2010-04-27 22:38:28 +02:00
<pre>
apt::force { "glusterfs-server":
release => "unstable",
version => '3.0.3',
require => Apt::Source["debian_unstable"],
}
</pre>
### apt::pin
Add an apt pin for a certain release.
<pre>
apt::pin { "karmic": priority => 700 }
apt::pin { "karmic-updates": priority => 700 }
apt::pin { "karmic-security": priority => 700 }
</pre>
### apt::ppa
Add a ppa repository using `add-apt-repository`. Somewhat experimental.
<pre>
2010-04-27 22:39:50 +02:00
apt::ppa { "ppa:drizzle-developers/ppa": }
2010-04-27 22:38:28 +02:00
</pre>
### apt::release
2011-12-20 21:06:24 +01:00
Set the default apt release. Useful when using repositories like Debian unstable in Ubuntu.
2010-04-27 22:38:28 +02:00
<pre>
apt::release { "karmic": }
</pre>
2010-05-06 19:50:59 +02:00
### apt::source
2010-04-27 22:38:28 +02:00
Add an apt source to `/etc/apt/sources.list.d/`.
<pre>
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
}
</pre>
### apt::key
Add a key to the list of keys used by apt to authenticate packages.
<pre>
apt::key { "puppetlabs":
key => "4BD6EC30",
key_server => "pgp.mit.edu",
}
</pre>
<pre>
apt::key { "jenkins":
key => "D50582E6",
key_source => "http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key",
}
</pre>
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>
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>
2012-05-23 19:18:48 +02:00
Zach Leslie <zach@puppetlabs.com>