2012-03-20 22:52:43 +01:00
|
|
|
# Declare the apt class to manage /etc/apt/sources.list and /etc/sources.list.d
|
2011-05-30 19:23:18 +02:00
|
|
|
class { 'apt': }
|
2012-03-20 22:52:43 +01:00
|
|
|
|
|
|
|
# Install the puppetlabs apt source
|
2012-03-20 23:52:44 +01:00
|
|
|
# Release is automatically obtained from lsbdistcodename fact if available.
|
2012-03-20 22:52:43 +01:00
|
|
|
apt::source { 'puppetlabs':
|
2015-04-06 20:29:02 +02:00
|
|
|
location => 'http://apt.puppetlabs.com',
|
|
|
|
repos => 'main',
|
|
|
|
key => {
|
|
|
|
id => '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30',
|
2016-05-20 18:54:29 +02:00
|
|
|
server => 'hkps.pool.sks-keyservers.net',
|
2015-04-06 20:29:02 +02:00
|
|
|
},
|
2011-05-30 19:23:18 +02:00
|
|
|
}
|
2012-02-24 00:44:26 +01:00
|
|
|
|
|
|
|
# test two sources with the same key
|
2012-03-21 14:20:13 +01:00
|
|
|
apt::source { 'debian_testing':
|
2015-04-06 20:29:02 +02:00
|
|
|
location => 'http://debian.mirror.iweb.ca/debian/',
|
|
|
|
release => 'testing',
|
|
|
|
repos => 'main contrib non-free',
|
|
|
|
key => {
|
|
|
|
id => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
|
2016-05-20 18:54:29 +02:00
|
|
|
server => 'hkps.pool.sks-keyservers.net',
|
2015-04-06 20:29:02 +02:00
|
|
|
},
|
|
|
|
pin => '-10',
|
2012-02-24 00:44:26 +01:00
|
|
|
}
|
2012-03-21 14:20:13 +01:00
|
|
|
apt::source { 'debian_unstable':
|
2015-04-06 20:29:02 +02:00
|
|
|
location => 'http://debian.mirror.iweb.ca/debian/',
|
|
|
|
release => 'unstable',
|
|
|
|
repos => 'main contrib non-free',
|
|
|
|
key => {
|
|
|
|
id => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
|
2016-05-20 18:54:29 +02:00
|
|
|
server => 'hkps.pool.sks-keyservers.net',
|
2015-04-06 20:29:02 +02:00
|
|
|
},
|
|
|
|
pin => '-10',
|
2012-02-24 00:44:26 +01:00
|
|
|
}
|