]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Use of wicd or network-manager can be configurable
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 12 Sep 2013 17:43:37 +0000 (14:43 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 12 Sep 2013 17:43:37 +0000 (14:43 -0300)
manifests/utils/laptop/debian.pp

index fc21e5ea58ba71ea7526f0402ee3219f46449979..4b3e930ba31cd4f4fc815df41480e1e17b280091 100644 (file)
@@ -11,16 +11,19 @@ class nodo::utils::laptop::debian {
     ensure => installed,
   }
 
+  $wicd            = hiera('nodo::utils::laptop::debian::wicd',            'installed')
+  $network_manager = hiera('nodo::utils::laptop::debian::network_manager', 'absent')
+
   # Wicd
   package { [ 'wicd', 'wicd-curses', 'wicd-gtk' ]:
-    ensure => installed,
+    ensure => wicd,
   }
 
-  # Wheezy specific packages
+  # Network manager
   package { 'network-manager':
     ensure => $::lsbdistcodename ? {
       'squeeze' => absent,
-       default  => absent,
+       default  => $network_manager,
     }
   }