Changeset 641 for trunk/puppet/modules
- Timestamp:
- Apr 19, 2010, 3:42:39 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/puppet/modules/puppet-escritorio/manifests/classes/gnome.pp
r640 r641 5 5 6 6 class 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" 7 13 8 14 svn::checkout { gnome-theme-xp: 9 15 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, 12 18 } 13 19 14 file { " /dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh":20 file { "$jaunty_file_path": 15 21 ensure => "present", 16 22 owner => "root", group => "root", mode => "755", checksum => mtime, … … 18 24 } 19 25 26 file { "$lucid_file_path": 27 ensure => "present", 28 owner => "root", group => "root", mode => "755", checksum => mtime, 29 } 30 31 20 32 ## 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 } 24 56 } 25 57 }
Note: See TracChangeset
for help on using the changeset viewer.