aboutsummaryrefslogtreecommitdiff
path: root/manifests/utils/desktop/gnome.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/utils/desktop/gnome.pp')
-rw-r--r--manifests/utils/desktop/gnome.pp11
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/utils/desktop/gnome.pp b/manifests/utils/desktop/gnome.pp
index 3542f34..95b8211 100644
--- a/manifests/utils/desktop/gnome.pp
+++ b/manifests/utils/desktop/gnome.pp
@@ -2,4 +2,15 @@ class nodo::utils::desktop::gnome {
package { [ 'gnome', 'gnome-backgrounds' ]:
ensure => installed,
}
+
+ $network_manager = hiera('nodo::utils::laptop::debian::network_manager', 'absent')
+
+ # Network manager is a gnome dependency and we should disable it if the machine
+ # is using gnome but other networking tool to avoid conflicts.
+ if ($network_manager == 'absent') {
+ service { 'network-manager':
+ ensure => stopped,
+ enable => false,
+ }
+ }
}