Changeset 641


Ignore:
Timestamp:
Apr 19, 2010, 3:42:39 PM (12 years ago)
Author:
josx@…
Message:

Agregando la posibilidad de ejecutar script para lucid o jaunty para cambiar escritorio del cliente

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/puppet/modules/puppet-escritorio/manifests/classes/gnome.pp

    r640 r641  
    55
    66class escritorio::gnome-theme::xp {
     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"
    713
    814    svn::checkout { gnome-theme-xp:
    915        repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/gnome-theme-xp",
    10         local_path => "/dist/svn-redcta",
    11         local_name => "gnome-theme-xp",
     16        local_path => $local_path,
     17        local_name => $local_name,
    1218    }
    1319
    14     file { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh":
     20    file { "$jaunty_file_path":
    1521        ensure => "present",
    1622        owner => "root", group => "root", mode => "755", checksum => mtime,
     
    1824    }
    1925
     26    file { "$lucid_file_path":
     27        ensure => "present",
     28        owner => "root", group => "root", mode => "755", checksum => mtime,
     29    }
     30
     31
    2032## TODO: exec this when there is a svn checkout
    21     exec { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh":
    22         refreshonly => true,
    23         subscribe => File["/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh"]
     33    case $operatingsystem {
     34        Ubuntu: {
     35            case $lsbdistcodename {
     36                Jaunty: {
     37                    exec { "$jaunty_file_path":
     38#                    refreshonly => true,
     39                    subscribe => File["$jaunty_local_path"]
     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        }   
    2456    }
    2557}
Note: See TracChangeset for help on using the changeset viewer.