From b4bb79e89c94b8d85510239ff6749a6149facbc3 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Sat, 12 Oct 2024 19:42:12 -0700 Subject: Remove duplicate wget, fix nail for newer releases Puppet doesn't like it when two modules want the same package, so rely on wget being part of the base package set. nail is called s-nail on >= mga9 so fix binrepo. --- modules/blog/manifests/init.pp | 2 -- modules/buildsystem/manifests/binrepo.pp | 8 +++++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/blog/manifests/init.pp b/modules/blog/manifests/init.pp index fb0ea146..c89a8168 100644 --- a/modules/blog/manifests/init.pp +++ b/modules/blog/manifests/init.pp @@ -19,13 +19,11 @@ if versioncmp($::lsbdistrelease, '9') < 0 { package { ['php-mysqlnd', 'php-ldap', 'unzip', - 'wget', 'nail']: } } else { package { ['php-mysqlnd', 'php-ldap', 'unzip', - 'wget', 's-nail']: } } diff --git a/modules/buildsystem/manifests/binrepo.pp b/modules/buildsystem/manifests/binrepo.pp index f2f529c0..5bf16b53 100644 --- a/modules/buildsystem/manifests/binrepo.pp +++ b/modules/buildsystem/manifests/binrepo.pp @@ -3,10 +3,16 @@ class buildsystem::binrepo { include buildsystem::var::groups include sudo - # upload-bin script use the mailx command provided by nail + # upload-bin script uses the mailx command provided by nail +if versioncmp($::lsbdistrelease, '9') < 0 { package { 'nail': ensure => installed, } +} else { + package { 's-nail': + ensure => installed, + } +} user { $buildsystem::var::binrepo::login: home => $buildsystem::var::binrepo::homedir, -- cgit v1.2.1