Example updates
authorMorgan Haskel <morgan@puppetlabs.com>
Wed, 25 Mar 2015 21:22:52 +0000 (17:22 -0400)
committerMorgan Haskel <morgan@puppetlabs.com>
Fri, 27 Mar 2015 03:11:58 +0000 (23:11 -0400)
examples/backports.pp
examples/disable_keys.pp

index f3ca34cb7773012e4272dab5b0a4cd99a868fdd2..ed8213f0fa78072f54ecb4ef05c485886fbfee34 100644 (file)
@@ -1,7 +1,7 @@
 $location = $::apt::distcodename ? {
   'squeeze' => 'http://backports.debian.org/debian-backports',
   'wheezy'  => 'http://ftp.debian.org/debian/',
-  default   => 'http://us.archive.ubuntu.com/ubuntu',
+  default   => 'http://archive.ubuntu.com/ubuntu',
 }
 
 if $::apt::distid == 'debian' {
@@ -16,7 +16,6 @@ if $::apt::distid == 'debian' {
 
 # set up the actual backports
 apt::pin { 'backports':
-  before   => Apt::Source['backports'],
   release  => "${release}-backports",
   priority => 200,
 }
@@ -26,7 +25,7 @@ apt::source { 'backports':
   release  => "${release}-backports",
   repos    => $repos,
   key      => {
-    id       => $key,
-    server   => 'pgp.mit.edu',
+    id     => $key,
+    server => 'pgp.mit.edu',
   },
 }
index ad61df0421b6fb8b02cb10c5275d1233a1d1a14a..50d0ea8022aabe54a553529b1ff3ed684f169316 100644 (file)
@@ -1,4 +1,4 @@
-#Note: This is generally a bad idea. You should not disable keys.
+#Note: This is generally a bad idea. You should not disable verifying repository signatures.
 apt::conf { 'unauth':
   priority => 99,
   content  => 'APT::Get::AllowUnauthenticated 1;'