X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=tests%2Fsource.pp;h=d83cb9787ae9a5ee2e107d034b12df37e88b52ea;hb=f3d84c6744a56d68e4fb50434b6c105e1051e964;hp=4db740d4175e903f43b3b8a4de59bd4b4c969018;hpb=97ebb2d5d50aff93b0c86e61e9d8d56941227350;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/tests/source.pp b/tests/source.pp index 4db740d..d83cb97 100644 --- a/tests/source.pp +++ b/tests/source.pp @@ -1,29 +1,29 @@ +# Declare the apt class to manage /etc/apt/sources.list and /etc/sources.list.d class { 'apt': } -apt::source { 'foo': - location => '', - release => 'karmic', - repos => 'main', - include_src => true, - required_packages => false, - key => false, - key_server => 'keyserver.ubuntu.com', - pin => '600' + +# 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 => '4BD6EC30', + key_server => 'pgp.mit.edu', } # 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 => "55BE302B", - key_server => "subkeys.pgp.net", - pin => "-10" +apt::source { 'debian_testing': + location => 'http://debian.mirror.iweb.ca/debian/', + release => 'testing', + repos => 'main contrib non-free', + key => '55BE302B', + key_server => 'subkeys.pgp.net', + pin => '-10', } -apt::source { "debian_unstable": - location => "http://debian.mirror.iweb.ca/debian/", - release => "unstable", - repos => "main contrib non-free", - key => "55BE302B", - key_server => "subkeys.pgp.net", - pin => "-10" +apt::source { 'debian_unstable': + location => 'http://debian.mirror.iweb.ca/debian/', + release => 'unstable', + repos => 'main contrib non-free', + key => '55BE302B', + key_server => 'subkeys.pgp.net', + pin => '-10', }