]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Adds lightdm support for jessie
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 8 Sep 2015 17:50:49 +0000 (14:50 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 8 Sep 2015 17:50:49 +0000 (14:50 -0300)
manifests/base/personal.pp
manifests/subsystem/gdm3/disabled.pp [new file with mode: 0644]
manifests/subsystem/lightdm.pp [new file with mode: 0644]
manifests/subsystem/lightdm/disabled.pp [new file with mode: 0644]

index 6a3dc4eb2c19a179172d11c95e85635a6fae5c76..14fa34f5ffb67ead49630c154f119d396c230be1 100644 (file)
@@ -13,9 +13,10 @@ class nodo::base::personal {
   elsif $::lsbdistcodename == 'wheezy' {
     include nodo::subsystem::gdm3
   }
-  #else {
-  #  include nodo::subsystem::lightdm
-  #}
+  else {
+    include nodo::subsystem::gdm3::disabled
+    include nodo::subsystem::lightdm
+  }
 
   # Media folders and groups
   include nodo::subsystem::media
diff --git a/manifests/subsystem/gdm3/disabled.pp b/manifests/subsystem/gdm3/disabled.pp
new file mode 100644 (file)
index 0000000..117c530
--- /dev/null
@@ -0,0 +1,13 @@
+class nodo::subsystem::gdm3::disabled {
+  Package['gdm3'] {
+    ensure => absent,
+  }
+
+  Service['gdm3'] {
+    ensure => stopped,
+  }
+
+  File['/etc/gdm3/greeter.gsettings'] {
+    ensure => absent,
+  }
+}
diff --git a/manifests/subsystem/lightdm.pp b/manifests/subsystem/lightdm.pp
new file mode 100644 (file)
index 0000000..ba10159
--- /dev/null
@@ -0,0 +1,10 @@
+class nodo::subsystem::lightdm {
+  package { 'lightdm':
+    ensure => present,
+  }
+
+  service { 'lightdm':
+    ensure  => running,
+    require => Package['lightdm'],
+  }
+}
diff --git a/manifests/subsystem/lightdm/disabled.pp b/manifests/subsystem/lightdm/disabled.pp
new file mode 100644 (file)
index 0000000..4b9e4d2
--- /dev/null
@@ -0,0 +1,9 @@
+class nodo::subsystem::lightdm::disabled {
+  Package['lightdm'] {
+    ensure => absent,
+  }
+
+  Service['lightdm'] {
+    ensure => stopped,
+  }
+}