Merge pull request #332 from zacharyalexstern/fix_readme_typo
[puppet-modules/puppetlabs-apt.git] / manifests / ppa.pp
index bc8d486007980a1770884ffa91d8bce06b90b421..a55e1e0e5c7a075b04ee4861370d40e107a42254 100644 (file)
@@ -15,7 +15,7 @@ define apt::ppa(
   }
 
   if $::operatingsystem != 'Ubuntu' {
-    fail("apt::ppa is currently supported on Ubuntu only.")
+    fail('apt::ppa is currently supported on Ubuntu only.')
   }
 
   $filename_without_slashes = regsubst($name, '/', '-', 'G')
@@ -67,6 +67,9 @@ define apt::ppa(
 
     file { "${sources_list_d}/${sources_list_d_filename}":
         ensure => 'absent',
+        mode   => '0644',
+        owner  => 'root',
+        group  => 'root',
         notify => Exec['apt_update'],
     }
   }