e5f2dfe294
With the addition of this patch two new defines will be added; one to manage APT configuration files (apt::conf) and one that abstracts out the requirements needed to turn on backport repositories (apt::backports). In addition, the patch takes the opportunity to clean up variable definitions so they follow a consistent pattern of setting local variables to the fully qualified value stored in the apt::params class. Previously all variable used within a class directly addressed the apt::params namespace when ever the variable was used. In the pattern they now adhere to we can more easily switch the namespace data lives in or externalize it even more using hiera.
21 خطوط
678 B
Puppet
21 خطوط
678 B
Puppet
# unstable.pp
|
|
|
|
class apt::debian::unstable {
|
|
include apt
|
|
|
|
# deb http://debian.mirror.iweb.ca/debian/ unstable main contrib non-free
|
|
# deb-src http://debian.mirror.iweb.ca/debian/ unstable main contrib non-free
|
|
# Key: 55BE302B Server: subkeys.pgp.net
|
|
# debian-keyring
|
|
# debian-archive-keyring
|
|
|
|
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',
|
|
}
|
|
}
|