module-puppetlabs-apt/examples/source.pp
David Schmitt 1e1e4b566e Use hkps.pool.sks-keyservers.net instead of pgp.mit.edu
The MIT server is sometimes unreliable during tests. The pool should
provide a much stabler service.
2016-05-24 12:20:49 +01:00

35 lines
1 KiB
Puppet

# Declare the apt class to manage /etc/apt/sources.list and /etc/sources.list.d
class { 'apt': }
# Install the puppetlabs apt source
# Release is automatically obtained from lsbdistcodename fact if available.
apt::source { 'puppetlabs':
location => 'http://apt.puppetlabs.com',
repos => 'main',
key => {
id => '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30',
server => 'hkps.pool.sks-keyservers.net',
},
}
# test two sources with the same key
apt::source { 'debian_testing':
location => 'http://debian.mirror.iweb.ca/debian/',
release => 'testing',
repos => 'main contrib non-free',
key => {
id => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
server => 'hkps.pool.sks-keyservers.net',
},
pin => '-10',
}
apt::source { 'debian_unstable':
location => 'http://debian.mirror.iweb.ca/debian/',
release => 'unstable',
repos => 'main contrib non-free',
key => {
id => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
server => 'hkps.pool.sks-keyservers.net',
},
pin => '-10',
}