aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-07-09 18:40:27 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-07-09 18:40:27 -0300
commit803cecd4e5a081d7dc986fc5b38fa1663447628c (patch)
tree3d3201ccbaff98fb7fb48f21b0653377a36ffa29 /manifests
parent780549cc4bee974b458cd907bd7c74692f445d02 (diff)
downloadpuppet-nodo-803cecd4e5a081d7dc986fc5b38fa1663447628c.tar.gz
puppet-nodo-803cecd4e5a081d7dc986fc5b38fa1663447628c.tar.bz2
Adding gdm class
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp1
-rw-r--r--manifests/personal.pp1
-rw-r--r--manifests/subsystems/gdm.pp59
-rw-r--r--manifests/subsystems/utils/interface.pp7
4 files changed, 64 insertions, 4 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 42df0d3..fc71290 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -65,6 +65,7 @@ import "subsystems/websites.pp"
import "subsystems/munin.pp"
import "subsystems/pam.pp"
import "subsystems/xorg.pp"
+import "subsystems/gdm.pp"
import "subsystems/modprobe.pp"
import "subsystems/hosts.pp"
import "subsystems/locales.pp"
diff --git a/manifests/personal.pp b/manifests/personal.pp
index d2be8a3..916d0cd 100644
--- a/manifests/personal.pp
+++ b/manifests/personal.pp
@@ -9,6 +9,7 @@ class nodo::personal {
include utils::personal
include pam
include xorg
+ include gdm
# Currently tor management just works for debian
case $operatingsystem {
diff --git a/manifests/subsystems/gdm.pp b/manifests/subsystems/gdm.pp
new file mode 100644
index 0000000..d9c729b
--- /dev/null
+++ b/manifests/subsystems/gdm.pp
@@ -0,0 +1,59 @@
+class gdm {
+ package { 'gdm':
+ ensure => installed,
+ }
+
+ service { 'gdm':
+ ensure => running,
+ require => Package['gdm'],
+ }
+
+ file { '/etc/gdm/gdm.conf':
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 0644,
+ notify => Service['gdm'],
+ source => [ "puppet:///modules/site-nodo/etc/gdm/$domain/gdm.conf",
+ "puppet:///modules/nodo/etc/gdm/gdm.conf", ]
+ }
+
+ file { '/usr/share/gdm/themes/crunchbang':
+ ensure => directory,
+ recurse => true,
+ purge => true,
+ force => true,
+ owner => "root",
+ group => "root",
+ # This mode will also apply to files from the source directory
+ mode => 0644,
+ # Puppet will automatically set +x for directories
+ source => 'puppet:///modules/nodo/etc/gdm/themes/crunchbag',
+ }
+
+ file { '/usr/share/gdm/themes/Tuxtastic:
+ ensure => directory,
+ recurse => true,
+ purge => true,
+ force => true,
+ owner => "root",
+ group => "root",
+ # This mode will also apply to files from the source directory
+ mode => 0644,
+ # Puppet will automatically set +x for directories
+ source => 'puppet:///modules/nodo/etc/gdm/themes/Tuxtastic',
+ }
+
+ file { '/usr/share/gdm/themes/dasUberMini:
+ ensure => directory,
+ recurse => true,
+ purge => true,
+ force => true,
+ owner => "root",
+ group => "root",
+ # This mode will also apply to files from the source directory
+ mode => 0644,
+ # Puppet will automatically set +x for directories
+ source => 'puppet:///modules/nodo/etc/gdm/themes/dasUberMini',
+ }
+}
diff --git a/manifests/subsystems/utils/interface.pp b/manifests/subsystems/utils/interface.pp
index 609acf6..f5ed070 100644
--- a/manifests/subsystems/utils/interface.pp
+++ b/manifests/subsystems/utils/interface.pp
@@ -1,9 +1,8 @@
class utils::interface {
# Interface
- package { [ 'awesome', 'eterm', 'fluxbox', 'gdm', 'conky',
- 'xterm', 'bash-completion', 'xfonts-terminus', 'xscreensaver', 'rxvt-unicode',
- 'mc', 'gtk-theme-switch', 'gtk-smooth-themes', 'rxvt', 'lxappearance',
- 'gnome-terminal' ]:
+ package { [ 'awesome', 'eterm', 'fluxbox', 'gnome-terminal', 'conky',
+ 'xterm', 'bash-completion', 'xfonts-terminus', 'xscreensaver', 'rxvt-unicode',
+ 'mc', 'gtk-theme-switch', 'gtk-smooth-themes', 'rxvt', 'lxappearance' ]:
ensure => installed,
}
}