add ubuntu support
[integration/packaging/puppet-opendaylight.git] / manifests / init.pp
index 414e418747f6d35d7ac10a3ed71675451b27de71..e1ce45600255b374f7ebf8f113b5adbc244953ab 100644 (file)
@@ -26,8 +26,14 @@ class opendaylight (
 ) inherits ::opendaylight::params {
 
   # Validate OS family
-  if $::osfamily != 'RedHat' {
-    fail("Unsupported OS family: ${::osfamily}")
+  case $::osfamily {
+    Debian: {
+        warning('Debian family is valid but only installable with tarball method')
+    }
+    RedHat: {}
+    default: {
+        fail("Unsupported OS family: ${::osfamily}")
+    }
   }
 
   # Validate OS
@@ -44,6 +50,12 @@ class opendaylight (
         fail("Unsupported OS: ${::operatingsystem} ${::operatingsystemmajrelease}")
       }
     }
+    Ubuntu: {
+      if $::operatingsystemmajrelease != '14.04' {
+        # Only tested on 14.04
+        fail("Unsupported OS: ${::operatingsystem} ${::operatingsystemmajrelease}")
+      }
+    }
     default: {
       fail("Unsupported OS: ${::operatingsystem}")
     }