diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-06-21 16:11:37 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-06-21 16:11:37 -0300 |
commit | a59d1d5e6adc1dad9be75520edd0d2a51f74719a (patch) | |
tree | f9c6b4ae8edc501c381b64f1ba016719ee69fbba /manifests | |
parent | 5b4de4b3701060639b2c09a2e51b9c264d97c724 (diff) | |
download | puppet-nodo-a59d1d5e6adc1dad9be75520edd0d2a51f74719a.tar.gz puppet-nodo-a59d1d5e6adc1dad9be75520edd0d2a51f74719a.tar.bz2 |
Some base packages are not available in some systems
Diffstat (limited to 'manifests')
-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', |