Merge pull request #208 from apenney/ppa-debian
[puppet-modules/puppetlabs-apt.git] / manifests / ppa.pp
index f9296549ac4e44bd623f5794d2bfa7ffd950ad57..14fbbceba41089f3e7ee683724c748c8c65c5941 100644 (file)
@@ -14,6 +14,10 @@ define apt::ppa(
     fail('lsbdistcodename fact not available: release parameter required')
   }
 
+  if $::operatingsystem != 'Ubuntu' {
+    fail("apt::ppa is currently supported on Ubuntu only.")
+  }
+
   $filename_without_slashes = regsubst($name, '/', '-', 'G')
   $filename_without_dots    = regsubst($filename_without_slashes, '\.', '_', 'G')
   $filename_without_ppa     = regsubst($filename_without_dots, '^ppa:', '', 'G')