From c31c7a3f57231c17c7f25da93ace9c3e96ad82b1 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 22 Jul 2020 13:49:31 -0300 Subject: Utils: adds rename command and some distros doesnt have ncat package --- manifests/utils/base.pp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/manifests/utils/base.pp b/manifests/utils/base.pp index 69365b6..9d5b6d6 100644 --- a/manifests/utils/base.pp +++ b/manifests/utils/base.pp @@ -24,13 +24,25 @@ class nodo::utils::base ( 'multitail', 'bash-completion', 'zsh', - 'ncat', + 'rename', #pv, #gcp, ]: ensure => $ensure, } + # Not available in some old systems + package { [ + 'ncat', + ]: + ensure => $::lsbdistcodename ? { + 'trusty' => absent, + 'xenial' => absent, + 'bionic' => absent, + default => present, + }, + } + # Not available in some old systems package { [ 'powerline', -- cgit v1.2.3