From: Silvio Rhatto Date: Thu, 21 Jun 2018 19:11:37 +0000 (-0300) Subject: Some base packages are not available in some systems X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=a59d1d5e6adc1dad9be75520edd0d2a51f74719a;p=puppet-nodo.git Some base packages are not available in some systems --- diff --git a/manifests/utils.pp b/manifests/utils.pp index cec181d..6e6ff2e 100644 --- a/manifests/utils.pp +++ b/manifests/utils.pp @@ -4,13 +4,22 @@ class nodo::utils inherits nodo::utils::base { 'pv', 'vim-nox', 'needrestart', - 'reboot-notifier', #debian-goodies, #clog, ]: ensure => present, } + # Not available in some old systems + package { [ + 'reboot-notifier', + ]: + ensure => $::lsbdistcodename ? { + 'trusty' => absent, + default => present, + }, + } + include nodo::utils::http if !defined(Package['git']) { diff --git a/manifests/utils/base.pp b/manifests/utils/base.pp index 2783aaa..6ffacc7 100644 --- a/manifests/utils/base.pp +++ b/manifests/utils/base.pp @@ -4,7 +4,6 @@ class nodo::utils::base ( package { [ 'screen', 'tmux', - 'powerline', 'less', 'bzip2', 'openssl', @@ -31,6 +30,16 @@ class nodo::utils::base ( ensure => $ensure, } + # Not available in some old systems + package { [ + 'powerline', + ]: + ensure => $::lsbdistcodename ? { + 'trusty' => absent, + default => present, + }, + } + # Not using right now package { [ 'logcheck',