]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Ensure network-manager is stopped depending on hiera config at nodo::utils::desktop...
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 9 Aug 2014 13:44:24 +0000 (10:44 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 9 Aug 2014 13:44:24 +0000 (10:44 -0300)
manifests/utils/desktop/gnome.pp

index 95b8211accc78b3bb78135ce4707547cdb920d7c..a853530b59c6441239f3e754127e925c6f9ecc25 100644 (file)
@@ -3,7 +3,7 @@ class nodo::utils::desktop::gnome {
     ensure => installed,
   }
 
-  $network_manager = hiera('nodo::utils::laptop::debian::network_manager', 'absent')
+  $network_manager = hiera('nodo::utils::laptop::debian::network_manager', 'installed')
 
   # Network manager is a gnome dependency and we should disable it if the machine
   # is using gnome but other networking tool to avoid conflicts.
@@ -13,4 +13,10 @@ class nodo::utils::desktop::gnome {
       enable => false,
     }
   }
+  else {
+    service { 'network-manager':
+      ensure => running,
+      enable => true,
+    }
+  }
 }