]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/commitdiff
support ubuntu
authorTomas Barton <barton.tomas@gmail.com>
Mon, 11 Sep 2017 16:44:00 +0000 (18:44 +0200)
committerTomas Barton <barton.tomas@gmail.com>
Mon, 11 Sep 2017 16:44:00 +0000 (18:44 +0200)
manifests/setting.pp

index cee854c9e8aecef48872035cf915e6e8dcaa215d..333f5534ad6c49a108a2eda7e570206a79833299 100644 (file)
@@ -50,13 +50,19 @@ define apt::setting (
     notify  => $_notify,
   }
 
-  case $::operatingsystem {
+  # required for adding apt GPG keys
+  case $facts['os']['name'] {
     'Debian': {
       if versioncmp($facts['os']['release']['full'], '9.0') >= 0 {
-        # require for adding apt GPG keys
         ensure_packages(['dirmngr'])
       }
     }
+    'Ubuntu': {
+      if versioncmp($facts['os']['release']['full'], '17.04') >= 0 {
+        ensure_packages(['dirmngr'])
+      }
+    }
+    default: { }
   }
 
 }