]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Some base packages are not available in some systems
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 21 Jun 2018 19:11:37 +0000 (16:11 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 21 Jun 2018 19:11:37 +0000 (16:11 -0300)
manifests/utils.pp
manifests/utils/base.pp

index cec181d573e9af707822ca6b8cf43e9de0fcd9cc..6e6ff2e14413fd7072759425038c9cfef74df640 100644 (file)
@@ -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']) {
index 2783aaa555a3c2421bace1d79f584fdaca244063..6ffacc7f3473d71d605e3bdc093ee03dff206497 100644 (file)
@@ -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',