source: trunk/puppet/modules/puppet-escritorio/manifests/classes/gnome.pp @ 600

Last change on this file since 600 was 600, checked in by sebas@…, 14 years ago

nuevo modulo puppet para manejar el escritorio, gnome, tb, ff, oo

File size: 2.4 KB
Line 
1# copyright <sebas @ koumbit.org>
2# Licence: GPL
3#
4
5class escritorio::gnome-theme::xp {
6
7    svn::checkout { gnome-theme-xp:
8        repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/gnome-theme-xp",
9        local_path => "/dist/svn-redcta",
10        local_name => "gnome-theme-xp",
11    }
12
13    file { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh":
14        ensure => "present",
15        owner => "root", group => "root", mode => "755", checksum => mtime,
16#       require => svn::checkout["gnome-theme-xp"],
17    }
18
19## TODO: exec this when there is a svn checkout
20    exec { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh":
21        refreshonly => true,
22        subscribe => File["/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh"]
23    }
24}
25
26
27class escritorio::iconos {
28
29    file  { "/etc/X11/Xsession.d/65xdg-user-desktop-icons-update":
30        ensure => "/dist/svn-redcta/gnome-theme-xp/Xsession.d/65xdg-user-desktop-icons-update"
31    }
32}
33
34
35class escritorio::fondos::cta {
36
37    svn::checkout { escritorio-fondos-cta:
38        repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/escritorio-fondos-cta",
39        local_path => "/dist/svn-redcta",
40        local_name => "escritorio-fondos-cta"
41    }
42
43    file  { "/usr/share/backgrounds/wpiedras-hojitas.jpg":
44        ensure => "/dist/svn-redcta/escritorio-fondos-cta/wpiedras-hojitas.jpg"
45    }
46
47    file { "/usr/share/backgrounds/wpiedras-verdecito.jpg":
48        ensure => "/dist/svn-redcta/escritorio-fondos-cta/wpiedras-verdecito.jpg"
49    }
50}
51
52
53class escritorio::autostart-off {
54
55    define deshabilita_servicios($archivos) {
56        deshabilita_servicio { $archivos: archivo => $name }
57    }
58
59    define deshabilita_servicio($archivo) {
60        file { "${archivo}/$name"  : ensure => present, }
61
62        line { "verdadero$name" :
63            file   => "${archivo}/$name",
64            line   => "X-GNOME-Autostart-enabled=true",
65            ensure => absent,
66        }
67        line { "falso$name":
68            file   => "${archivo}/$name" ,
69            line   => "X-GNOME-Autostart-enabled=false",
70            ensure => present,
71        }
72    }
73
74    deshabilita_servicios { "/etc/xdg/autostart":
75        archivos => [ "vino-server.desktop", "update-notifier.desktop", "bluetooth-applet.desktop", "evolution-alarm-notify.desktop", "jockey-gtk.desktop", "gnome-at-session.desktop", "gnome-power-manager.desktop" ],
76    }
77}
Note: See TracBrowser for help on using the repository browser.