[600] | 1 | # copyright <sebas @ koumbit.org> |
---|
[640] | 2 | # copyright <josx @ interorganic.com.ar > |
---|
[600] | 3 | # Licence: GPL |
---|
| 4 | # |
---|
| 5 | |
---|
| 6 | class escritorio::gnome-theme::xp { |
---|
[641] | 7 | $local_path = "/dist/svn-redcta" |
---|
| 8 | $local_name = "gnome-theme-xp" |
---|
| 9 | $jaunty_script = "change-default-to-xp.sh" |
---|
| 10 | $lucid_script = "lucid-escritorio-xp.sh" |
---|
| 11 | $jaunty_file_path = "$local_path/$local_name/$jaunty_script" |
---|
| 12 | $lucid_file_path = "$local_path/$local_name/$lucid_script" |
---|
[600] | 13 | |
---|
| 14 | svn::checkout { gnome-theme-xp: |
---|
| 15 | repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/gnome-theme-xp", |
---|
[641] | 16 | local_path => $local_path, |
---|
| 17 | local_name => $local_name, |
---|
[600] | 18 | } |
---|
| 19 | |
---|
[643] | 20 | file { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh": |
---|
[600] | 21 | ensure => "present", |
---|
| 22 | owner => "root", group => "root", mode => "755", checksum => mtime, |
---|
| 23 | # require => svn::checkout["gnome-theme-xp"], |
---|
| 24 | } |
---|
| 25 | |
---|
[641] | 26 | file { "$lucid_file_path": |
---|
| 27 | ensure => "present", |
---|
| 28 | owner => "root", group => "root", mode => "755", checksum => mtime, |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | |
---|
[600] | 32 | ## TODO: exec this when there is a svn checkout |
---|
[641] | 33 | case $operatingsystem { |
---|
| 34 | Ubuntu: { |
---|
| 35 | case $lsbdistcodename { |
---|
| 36 | Jaunty: { |
---|
| 37 | exec { "$jaunty_file_path": |
---|
[644] | 38 | refreshonly => true, |
---|
[643] | 39 | subscribe => File["/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh"] |
---|
[641] | 40 | } |
---|
| 41 | } |
---|
| 42 | Lucid: { |
---|
| 43 | exec { "$lucid_file_path": |
---|
| 44 | # refreshonly => true, |
---|
| 45 | subscribe => File["$lucid_file_path"] |
---|
| 46 | } |
---|
| 47 | } |
---|
| 48 | default: { |
---|
| 49 | err("No hay tema para $operatingsystem - $lsbdistcodename") |
---|
| 50 | } |
---|
| 51 | } |
---|
| 52 | } |
---|
| 53 | default: { |
---|
| 54 | err("No hay tema para $operatingsystem") |
---|
| 55 | } |
---|
[600] | 56 | } |
---|
| 57 | } |
---|
| 58 | |
---|
| 59 | |
---|
| 60 | class escritorio::iconos { |
---|
| 61 | |
---|
| 62 | file { "/etc/X11/Xsession.d/65xdg-user-desktop-icons-update": |
---|
| 63 | ensure => "/dist/svn-redcta/gnome-theme-xp/Xsession.d/65xdg-user-desktop-icons-update" |
---|
| 64 | } |
---|
| 65 | } |
---|
| 66 | |
---|
| 67 | |
---|
| 68 | class escritorio::fondos::cta { |
---|
| 69 | |
---|
| 70 | svn::checkout { escritorio-fondos-cta: |
---|
| 71 | repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/escritorio-fondos-cta", |
---|
| 72 | local_path => "/dist/svn-redcta", |
---|
| 73 | local_name => "escritorio-fondos-cta" |
---|
| 74 | } |
---|
| 75 | |
---|
| 76 | file { "/usr/share/backgrounds/wpiedras-hojitas.jpg": |
---|
| 77 | ensure => "/dist/svn-redcta/escritorio-fondos-cta/wpiedras-hojitas.jpg" |
---|
| 78 | } |
---|
| 79 | |
---|
| 80 | file { "/usr/share/backgrounds/wpiedras-verdecito.jpg": |
---|
| 81 | ensure => "/dist/svn-redcta/escritorio-fondos-cta/wpiedras-verdecito.jpg" |
---|
| 82 | } |
---|
| 83 | } |
---|
| 84 | |
---|
| 85 | |
---|
| 86 | class escritorio::autostart-off { |
---|
| 87 | |
---|
| 88 | define deshabilita_servicios($archivos) { |
---|
| 89 | deshabilita_servicio { $archivos: archivo => $name } |
---|
| 90 | } |
---|
| 91 | |
---|
| 92 | define deshabilita_servicio($archivo) { |
---|
| 93 | file { "${archivo}/$name" : ensure => present, } |
---|
| 94 | |
---|
| 95 | line { "verdadero$name" : |
---|
| 96 | file => "${archivo}/$name", |
---|
| 97 | line => "X-GNOME-Autostart-enabled=true", |
---|
| 98 | ensure => absent, |
---|
| 99 | } |
---|
| 100 | line { "falso$name": |
---|
| 101 | file => "${archivo}/$name" , |
---|
| 102 | line => "X-GNOME-Autostart-enabled=false", |
---|
| 103 | ensure => present, |
---|
| 104 | } |
---|
| 105 | } |
---|
| 106 | |
---|
[640] | 107 | case $operatingsystem { |
---|
| 108 | Ubuntu: { |
---|
| 109 | case $lsbdistcodename { |
---|
| 110 | Jaunty: { |
---|
| 111 | deshabilita_servicios { "/etc/xdg/autostart": |
---|
| 112 | 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" ], |
---|
| 113 | } |
---|
| 114 | } |
---|
| 115 | Lucid: { |
---|
| 116 | deshabilita_servicios { "/etc/xdg/autostart": |
---|
| 117 | archivos => [ "at-spi-registryd.desktop", "bluetooth-applet.desktop", "gwibber.desktop", "evolution-alarm-notify.desktop", "indicator-applet.desktop", "gdu-notification-daemon.desktop", "jockey-gtk.desktop", "gnome-at-session.desktop", "nm-applet.desktop", "gnome-keyring-pkcs11.desktop", "polkit-gnome-authentication-agent-1.desktop", "gnome-keyring-secrets.desktop", "polkit-kde-authentication-agent-1.desktop", "gnome-keyring-ssh.desktop", "print-applet.desktop", "gnome-power-manager.desktop", "pulseaudio.desktop", "update-notifier.desktop", "vino-server.desktop", "user-dirs-update-gtk.desktop", "gnome-settings-daemon.desktop", "gnome-user-share.desktop" ], |
---|
| 118 | } |
---|
| 119 | } |
---|
| 120 | default: { |
---|
| 121 | err("No hay deshabilitacion de servicios para $opertatingsystem - $lsbdistcodename") |
---|
| 122 | } |
---|
| 123 | } |
---|
[600] | 124 | } |
---|
[640] | 125 | default: { |
---|
| 126 | err("No hay deshabilitacion de servicios para $operatingsystem") |
---|
| 127 | } |
---|
| 128 | } |
---|
[600] | 129 | } |
---|
[640] | 130 | |
---|