No description
Find a file
Matthias Pigulla 2f5d317177 (#11413) Update dpkg query used by apt::force
This patch fixes the query used by apt::force to
determine rather or not the package is installed.

Previously, the expression was not specific enough and
could not lead to false positives in cases where a package
name is contained within another package name (puppet could be
incorrectly determined as being installed if puppet-common is
installed)

This commit resolves that by improving the query expression.
2012-01-13 11:59:24 -08:00
manifests (#11413) Update dpkg query used by apt::force 2012-01-13 11:59:24 -08:00
spec (#10451) Add test coverage to apt::ppa 2012-01-03 17:03:24 -08:00
templates First commit 2010-04-27 16:38:28 -04:00
tests added builddep command. 2011-07-24 18:19:22 -04:00
.gitignore ignore swap files. 2011-05-30 10:25:11 -07:00
LICENSE Update LICENSE. 2011-04-18 11:36:04 -04:00
Rakefile (#10451) Add test coverage to apt::ppa 2012-01-03 17:03:24 -08:00
README.md fix typos in "repositories" 2011-12-20 12:06:24 -08:00

Apt module for Puppet

Description

Provides helpful definitions for dealing with Apt.

Usage

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"
}