[159] | 1 | class estacion-de-trabajo { |
---|
[180] | 2 | |
---|
| 3 | ## lo basico |
---|
[182] | 4 | package { [ "ubuntu-desktop", "ubuntu-restricted-extras", "cups" ]: ensure => installed } |
---|
[180] | 5 | |
---|
[184] | 6 | ## utile |
---|
| 7 | ## package { [ 'gconf2', 'locales', 'screen', 'less', 'vim' ]: ensure => installed, } |
---|
| 8 | |
---|
[182] | 9 | ## security |
---|
| 10 | package { [ "libnss3-tools" ]: ensure => installed } |
---|
| 11 | |
---|
| 12 | ## correo electronico |
---|
[180] | 13 | package { [ "thunderbird", "thunderbird-gnome-support" ]: ensure => installed } |
---|
| 14 | |
---|
[182] | 15 | ## grafico |
---|
| 16 | package { [ "inkscape" ]: ensure => installed } |
---|
[180] | 17 | |
---|
[182] | 18 | ## IM |
---|
| 19 | package { [ "amsn" ]: ensure => installed } |
---|
| 20 | |
---|
| 21 | ## juegos |
---|
| 22 | package { [ "tuxtype" ]: ensure => installed } |
---|
| 23 | |
---|
| 24 | ## cups (browse) - to see other printers |
---|
| 25 | line { cupsbrowseoff: |
---|
| 26 | file => "/etc/cups/cupsd.conf", |
---|
| 27 | line => 'Browsing Off', |
---|
| 28 | ensure => absent, |
---|
| 29 | require => Package["cups"] |
---|
| 30 | } |
---|
| 31 | line { cupsbrowseon: |
---|
| 32 | file => "/etc/cups/cupsd.conf", |
---|
| 33 | line => 'Browsing On', |
---|
| 34 | ensure => present, |
---|
| 35 | require => Package["cups"] |
---|
| 36 | } |
---|
| 37 | ## TODO: restart cups after a change of config |
---|
| 38 | # service { |
---|
| 39 | # "cups": |
---|
| 40 | # enable => true, |
---|
| 41 | # ensure => running, |
---|
| 42 | # # not sure if i'm correct with the last statement... about line. |
---|
| 43 | # subscribe => [ Package["cups"], line["cupsbrowseon"] ], |
---|
| 44 | # } |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | |
---|
[180] | 49 | # question de creer le repertoire avant de faire le checkout |
---|
| 50 | file { ["/dist", "/dist/svn-redcta"]: |
---|
| 51 | ensure => directory, |
---|
| 52 | owner => root, |
---|
| 53 | group => root |
---|
| 54 | } |
---|
[184] | 55 | |
---|
| 56 | include estacion-de-trabajo::gnome-desktop::xp |
---|
| 57 | |
---|
[180] | 58 | svn::checkout { thunderbird-extension: |
---|
| 59 | repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/thunderbird", |
---|
| 60 | local_path => "/dist/svn-redcta", |
---|
| 61 | local_name => "thunderbid-extension" |
---|
| 62 | } |
---|
| 63 | |
---|
| 64 | create::symblink { link-thunderbird-extension: |
---|
| 65 | target => "/dist/svn-redcta/thunderbid-extension/agregados/sources/isp/example-isp.rdf", |
---|
| 66 | linkname => "/usr/share/thunderbird/isp/example-isp.rdf", |
---|
| 67 | } |
---|
| 68 | |
---|
| 69 | |
---|
| 70 | # define create::symblink ( $target, $linkname ) { |
---|
| 71 | # exec { "createsymblink": |
---|
| 72 | # command => "ln -s $target $linkname", |
---|
| 73 | # path => "/bin", |
---|
| 74 | # creates => "$linkname", |
---|
| 75 | # } |
---|
| 76 | |
---|
| 77 | #} |
---|
| 78 | |
---|
[184] | 79 | } |
---|
[180] | 80 | |
---|
[184] | 81 | class estacion-de-trabajo::gnome-desktop::xp { |
---|
| 82 | |
---|
| 83 | svn::checkout { gnome-theme-xp: |
---|
| 84 | repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/gnome-theme-xp", |
---|
| 85 | local_path => "/dist/svn-redcta", |
---|
| 86 | local_name => "gnome-theme-xp", |
---|
| 87 | } |
---|
| 88 | |
---|
| 89 | file { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh": |
---|
| 90 | ensure => "present", |
---|
| 91 | owner => "root", group => "root", mode => "755" |
---|
| 92 | } |
---|
| 93 | |
---|
| 94 | exec { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh": |
---|
| 95 | refreshonly => true, |
---|
| 96 | subscribe => File["/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh"], |
---|
| 97 | } |
---|
[159] | 98 | } |
---|
| 99 | |
---|