From 1c4abcdbc971f15577cdb65ddb156fca1933b3ef Mon Sep 17 00:00:00 2001 From: Tomas Barton Date: Mon, 11 Sep 2017 18:44:00 +0200 Subject: [PATCH] support ubuntu --- manifests/setting.pp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/manifests/setting.pp b/manifests/setting.pp index cee854c..333f553 100644 --- a/manifests/setting.pp +++ b/manifests/setting.pp @@ -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: { } } } -- 2.45.2