9ebcd5209ed4428b5c42295bfda41e94a6681132
[puppet-modules/puppetlabs-apt.git] / tests / 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 apt::source { 'puppetlabs':
6   location   => 'http://apt.puppetlabs.com',
7   repos      => 'main',
8   key        => '4BD6EC30',
9   key_server => 'pgp.mit.edu',
10 }
11
12 # test two sources with the same key
13 apt::source { 'debian_testing':
14   location   => 'http://debian.mirror.iweb.ca/debian/',
15   release    => 'testing',
16   repos      => 'main contrib non-free',
17   key        => '55BE302B',
18   key_server => 'subkeys.pgp.net',
19   pin        => '-10',
20 }
21 apt::source { 'debian_unstable':
22   location   => 'http://debian.mirror.iweb.ca/debian/',
23   release    => 'unstable',
24   repos      => 'main contrib non-free',
25   key        => '55BE302B',
26   key_server => 'subkeys.pgp.net',
27   pin        => '-10',
28 }