aboutsummaryrefslogtreecommitdiff
path: root/manifests/utils/desktop/gnome.pp
blob: a853530b59c6441239f3e754127e925c6f9ecc25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class nodo::utils::desktop::gnome {
  package { [ 'gnome', 'gnome-backgrounds' ]:
    ensure => installed,
  }

  $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.
  if ($network_manager == 'absent') {
    service { 'network-manager':
      ensure => stopped,
      enable => false,
    }
  }
  else {
    service { 'network-manager':
      ensure => running,
      enable => true,
    }
  }
}