diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2020-07-22 13:49:31 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2020-07-22 13:49:31 -0300 |
commit | c31c7a3f57231c17c7f25da93ace9c3e96ad82b1 (patch) | |
tree | 55d6e4d2a2d6e33ed4d74d02ccaeee48e28b5d85 | |
parent | bc597dabed58bbcf83d41a79d36f4ca2049ccbc5 (diff) | |
download | puppet-nodo-c31c7a3f57231c17c7f25da93ace9c3e96ad82b1.tar.gz puppet-nodo-c31c7a3f57231c17c7f25da93ace9c3e96ad82b1.tar.bz2 |
Utils: adds rename command and some distros doesnt have ncat package
-rw-r--r-- | manifests/utils/base.pp | 14 |
1 files changed, 13 insertions, 1 deletions
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,7 +24,7 @@ class nodo::utils::base ( 'multitail', 'bash-completion', 'zsh', - 'ncat', + 'rename', #pv, #gcp, ]: @@ -33,6 +33,18 @@ class nodo::utils::base ( # 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', ]: ensure => $::lsbdistcodename ? { |