module-puppetlabs-apt/README.md

51 lines
1.2 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
### apt::force
Force a package to be installed from a specific release. Useful when using repositoires like Debian unstable in Ubuntu.
<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
Set the default apt release. Useful when using repositoires like Debian unstable in Ubuntu.
<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"
}
</pre>