https://github.com/evolvingweb/puppet-apt
Puppet module to help manage Apt
https://github.com/evolvingweb/puppet-apt
Last synced: about 2 months ago
JSON representation
Puppet module to help manage Apt
- Host: GitHub
- URL: https://github.com/evolvingweb/puppet-apt
- Owner: evolvingweb
- License: mit
- Created: 2010-04-27T20:16:05.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2023-01-13T11:21:22.000Z (about 3 years ago)
- Last Synced: 2025-12-04T03:22:58.109Z (3 months ago)
- Homepage:
- Size: 431 KB
- Stars: 42
- Watchers: 19
- Forks: 514
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.
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 repositoires 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"
}