aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-07-22 13:49:31 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-07-22 13:49:31 -0300
commitc31c7a3f57231c17c7f25da93ace9c3e96ad82b1 (patch)
tree55d6e4d2a2d6e33ed4d74d02ccaeee48e28b5d85
parentbc597dabed58bbcf83d41a79d36f4ca2049ccbc5 (diff)
downloadpuppet-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.pp14
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 ? {