diff options
-rw-r--r-- | manifests/utils.pp | 11 | ||||
-rw-r--r-- | manifests/utils/base.pp | 11 |
2 files changed, 20 insertions, 2 deletions
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', |