ensure dirmngr is installed on Debian Stretch
authorTomas Barton <barton.tomas@gmail.com>
Mon, 11 Sep 2017 15:14:16 +0000 (17:14 +0200)
committerTomas Barton <barton.tomas@gmail.com>
Mon, 11 Sep 2017 15:14:16 +0000 (17:14 +0200)
manifests/setting.pp

index 507ec9495d66ac2e6d305f71596996d34e7e1973..cee854c9e8aecef48872035cf915e6e8dcaa215d 100644 (file)
@@ -49,4 +49,14 @@ define apt::setting (
     source  => $source,
     notify  => $_notify,
   }
+
+  case $::operatingsystem {
+    'Debian': {
+      if versioncmp($facts['os']['release']['full'], '9.0') >= 0 {
+        # require for adding apt GPG keys
+        ensure_packages(['dirmngr'])
+      }
+    }
+  }
+
 }