Replace sks-keyservers.net(deprecated) with keyserver.ubuntu.com
[puppet-modules/puppetlabs-apt.git] / examples / source.pp
1 # Declare the apt class to manage /etc/apt/sources.list and /etc/sources.list.d
2 class { 'apt': }
3
4 # Install the puppetlabs apt source
5 # Release is automatically obtained from facts.
6 apt::source { 'puppetlabs':
7   location => 'http://apt.puppetlabs.com',
8   repos    => 'main',
9   key      => {
10     id     => '6F6B15509CF8E59E6E469F327F438280EF8D349F',
11     server => 'keyserver.ubuntu.com',
12   },
13 }
14
15 # test two sources with the same key
16 apt::source { 'debian_testing':
17   location => 'http://debian.mirror.iweb.ca/debian/',
18   release  => 'testing',
19   repos    => 'main contrib non-free',
20   key      => {
21     id     => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
22     server => 'keyserver.ubuntu.com',
23   },
24   pin      => '-10',
25 }
26 apt::source { 'debian_unstable':
27   location => 'http://debian.mirror.iweb.ca/debian/',
28   release  => 'unstable',
29   repos    => 'main contrib non-free',
30   key      => {
31     id     => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
32     server => 'keyserver.ubuntu.com',
33   },
34   pin      => '-10',
35 }