aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-02-14 12:48:49 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-02-14 12:48:49 -0200
commite9ba0f38558409c6118c49567970eddf54758b60 (patch)
tree1def3df225e8508e2a841b6fe58c1e30f70aec01
parent5c142f6c5a3cfd0ca4154fb770828b59aa5a90bd (diff)
downloadpuppet-nodo-e9ba0f38558409c6118c49567970eddf54758b60.tar.gz
puppet-nodo-e9ba0f38558409c6118c49567970eddf54758b60.tar.bz2
Adding gdm::disabled class
-rw-r--r--manifests/subsystems/gdm.pp19
1 files changed, 19 insertions, 0 deletions
diff --git a/manifests/subsystems/gdm.pp b/manifests/subsystems/gdm.pp
index 7dbf129..5e4da07 100644
--- a/manifests/subsystems/gdm.pp
+++ b/manifests/subsystems/gdm.pp
@@ -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,
+ }
+}