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":
|
2011-12-20 22:45:43 +01:00
|
|
|
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
|
2010-04-27 22:38:28 +02:00
|
|
|
}
|
|
|
|
</pre>
|