]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Adding gdm::disabled class
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 14 Feb 2013 14:48:49 +0000 (12:48 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 14 Feb 2013 14:48:49 +0000 (12:48 -0200)
manifests/subsystems/gdm.pp

index 7dbf129def41338875fd2398d2c7567032f429e4..5e4da07b722dbd69af71e21a27425c76b95716a1 100644 (file)
@@ -64,3 +64,22 @@ class gdm {
     source  => 'puppet:///modules/nodo/etc/gdm/themes/dasUberMini',
   }
 }
+
+class gdm::disabled inherits gdm {
+  File['/usr/share/gdm/themes/dasUberMini', '/usr/share/gdm/themes/Tuxtastic',
+       '/usr/share/gdm/themes/crunchbang', '/etc/gdm/gdm.conf' ] {
+    ensure => absent,
+  }
+
+  Exec['/usr/sbin/dpkg-reconfigure gdm'] {
+    ensure => absent,
+  }
+
+  Service['gdm'] {
+    ensure => stopped,
+  }
+
+  Package['gdm'] {
+    ensure => absent,
+  }
+}