Changeset 657 for trunk/puppet


Ignore:
Timestamp:
Apr 26, 2010, 6:35:34 PM (14 years ago)
Author:
josx@…
Message:

Haciendo que se ejecute el svn antes de la ejecucion del script

File:
1 edited

Legend:

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

    r644 r657  
    1212    $lucid_file_path =  "$local_path/$local_name/$lucid_script"
    1313
     14    case $operatingsystem {
     15        Ubuntu: {
     16            case $lsbdistcodename {
     17                Jaunty: {
     18                    $ejecuta = $jaunty_file_path
     19                }
     20                Lucid: {
     21                    $ejecuta = $lucid_file_path
     22                }
     23                default: {
     24                    err("No hay tema para $operatingsystem - $lsbdistcodename")
     25                }   
     26            }
     27        }
     28    }
     29   
    1430    svn::checkout { gnome-theme-xp:
    1531        repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/gnome-theme-xp",
    1632        local_path => $local_path,
    1733        local_name => $local_name,
     34        before => [ File["$ejecuta"] , Exec["$ejecuta"]  ],
    1835    }
    1936
     
    2138        ensure => "present",
    2239        owner => "root", group => "root", mode => "755", checksum => mtime,
    23 #       require => svn::checkout["gnome-theme-xp"],
    2440    }
    2541
     
    2945    }
    3046
    31 
    32 ## TODO: exec this when there is a svn checkout
     47    #   Esto no deberia hacerse, solamente habria usar ejecutar, lo dejo por jaunty
     48    #   ver changeset [643]
     49    #   falta poner refresh = true en lucid
    3350    case $operatingsystem {
    3451        Ubuntu: {
     
    4259                Lucid: {
    4360                    exec { "$lucid_file_path":
    44 #                    refreshonly => true,
     61                    #refreshonly => true,
    4562                    subscribe => File["$lucid_file_path"]
    4663                    }
Note: See TracChangeset for help on using the changeset viewer.