Get rid of unattended upgrades and cleanup unused templates
[puppet-modules/puppetlabs-apt.git] / manifests / params.pp
index b337965e6c466230d83d5b6ded8ff1ddd5775059..b97a8a25bf7c2e121e3d26f96d7b6d67cc283f8c 100644 (file)
@@ -5,6 +5,10 @@ class apt::params {
   $apt_conf_d     = "${root}/apt.conf.d"
   $preferences_d  = "${root}/preferences.d"
 
+  if $::osfamily != 'Debian' {
+    fail('This module only works on Debian or derivatives like Ubuntu')
+  }
+
   case $::lsbdistid {
     'ubuntu', 'debian': {
       $distid = $::lsbdistid
@@ -63,7 +67,7 @@ class apt::params {
           $legacy_origin      = true
           $origins            = ['${distro_id} ${distro_codename}-security'] #lint:ignore:single_quote_string_with_variables
         }
-        'precise', 'trusty', 'utopic': {
+        'precise', 'trusty', 'utopic', 'vivid': {
           $backports_location = 'http://us.archive.ubuntu.com/ubuntu'
           $ppa_options        = '-y'
           $legacy_origin      = true