(#13261) Replace foo source with puppetlabs source
authorRyan Coleman <ryan@puppetlabs.com>
Tue, 20 Mar 2012 21:52:43 +0000 (14:52 -0700)
committerRyan Coleman <ryan@puppetlabs.com>
Mon, 26 Mar 2012 23:31:48 +0000 (16:31 -0700)
Prior to this commit, the source.pp test included an apt source
named foo which broke the apt-get update exec when applied on a
target system. This commit removes it in favor of the puppetlabs
apt source which is valid on all target platforms.

tests/source.pp

index a8702cf58a36c05bfc24f2d1caf1ed2fccdab848..9ebcd5209ed4428b5c42295bfda41e94a6681132 100644 (file)
@@ -1,13 +1,12 @@
+# 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
+apt::source { 'puppetlabs':
+  location   => 'http://apt.puppetlabs.com',
+  repos      => 'main',
+  key        => '4BD6EC30',
+  key_server => 'pgp.mit.edu',
 }
 
 # test two sources with the same key