[159] | 1 | class estacion-de-trabajo { |
---|
[180] | 2 | |
---|
| 3 | ## lo basico |
---|
[213] | 4 | package { [ "ubuntu-desktop", "ubuntu-restricted-extras", "ssh" ]: ensure => installed } |
---|
[180] | 5 | |
---|
[209] | 6 | ## utile - gui |
---|
| 7 | package { [ 'terminator' ]: 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 | |
---|
[197] | 24 | ## creation of home directories with permission 700 (cannot be read by others) |
---|
| 25 | package { [ "adduser" ]: ensure => installed } |
---|
| 26 | line { changehomedirpermissiondefault: |
---|
| 27 | file => "/etc/adduser.conf", |
---|
| 28 | line => "DIR_MODE=0755", |
---|
| 29 | ensure => absent, |
---|
| 30 | require => Package["adduser"] |
---|
| 31 | } |
---|
| 32 | line { homedirpermissionothersout: |
---|
| 33 | file => "/etc/adduser.conf", |
---|
| 34 | line => "DIR_MODE=0700", |
---|
| 35 | ensure => present, |
---|
| 36 | require => Package["adduser"] |
---|
| 37 | } |
---|
[182] | 38 | |
---|
| 39 | |
---|
[180] | 40 | # question de creer le repertoire avant de faire le checkout |
---|
| 41 | file { ["/dist", "/dist/svn-redcta"]: |
---|
| 42 | ensure => directory, |
---|
| 43 | owner => root, |
---|
| 44 | group => root |
---|
| 45 | } |
---|
[184] | 46 | |
---|
| 47 | include estacion-de-trabajo::gnome-desktop::xp |
---|
| 48 | |
---|
[186] | 49 | include estacion-de-trabajo::thunderbird::extensions |
---|
[180] | 50 | |
---|
[197] | 51 | include estacion-de-trabajo::escritorio::fondos::cta |
---|
[184] | 52 | } |
---|
[180] | 53 | |
---|
[184] | 54 | class estacion-de-trabajo::gnome-desktop::xp { |
---|
| 55 | |
---|
| 56 | svn::checkout { gnome-theme-xp: |
---|
| 57 | repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/gnome-theme-xp", |
---|
| 58 | local_path => "/dist/svn-redcta", |
---|
| 59 | local_name => "gnome-theme-xp", |
---|
| 60 | } |
---|
| 61 | |
---|
[202] | 62 | # Not used for now |
---|
| 63 | # file { "/dist/svn-redcta/gnome-theme-xp/": |
---|
| 64 | # ensure => "present", |
---|
| 65 | # } |
---|
| 66 | |
---|
[184] | 67 | file { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh": |
---|
| 68 | ensure => "present", |
---|
[214] | 69 | owner => "root", group => "root", mode => "755", checksum => mtime |
---|
[184] | 70 | } |
---|
| 71 | |
---|
[202] | 72 | ## TODO: exec this when there is a svn checkout |
---|
[184] | 73 | exec { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh": |
---|
| 74 | refreshonly => true, |
---|
[202] | 75 | subscribe => File["/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh"] |
---|
[184] | 76 | } |
---|
[194] | 77 | |
---|
[202] | 78 | |
---|
[194] | 79 | file { "/etc/X11/Xsession.d/65xdg-user-desktop-icons-update": |
---|
| 80 | ensure => "/dist/svn-redcta/gnome-theme-xp/Xsession.d/65xdg-user-desktop-icons-update" |
---|
| 81 | } |
---|
[159] | 82 | } |
---|
| 83 | |
---|
[186] | 84 | class estacion-de-trabajo::thunderbird::extensions { |
---|
| 85 | |
---|
| 86 | svn::checkout { thunderbird-extension: |
---|
| 87 | repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/thunderbird", |
---|
| 88 | local_path => "/dist/svn-redcta", |
---|
| 89 | local_name => "thunderbid-extensions" |
---|
| 90 | } |
---|
| 91 | |
---|
[188] | 92 | file { "/usr/share/thunderbird/isp/example-isp.rdf": |
---|
| 93 | ensure => "/dist/svn-redcta/thunderbid-extensions/agregados/sources/isp/example-isp.rdf" |
---|
[186] | 94 | } |
---|
| 95 | |
---|
[188] | 96 | file { "/usr/lib/thunderbird/extensions/syncmlplugin@funambol.com": |
---|
| 97 | ensure => "/dist/svn-redcta/thunderbid-extensions/funambol/dist" |
---|
| 98 | } |
---|
[186] | 99 | } |
---|
[197] | 100 | |
---|
| 101 | class estacion-de-trabajo::escritorio::fondos::cta { |
---|
| 102 | |
---|
| 103 | svn::checkout { escritorio-fondos-cta: |
---|
| 104 | repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/escritorio-fondos-cta", |
---|
| 105 | local_path => "/dist/svn-redcta", |
---|
| 106 | local_name => "escritorio-fondos-cta" |
---|
| 107 | } |
---|
| 108 | |
---|
[209] | 109 | file { "/usr/share/backgrounds/wpiedras-hojitas.jpg": |
---|
| 110 | ensure => "/dist/svn-redcta/escritorio-fondos-cta/wpiedras-hojitas.jpg" |
---|
| 111 | } |
---|
[197] | 112 | |
---|
[209] | 113 | file { "/usr/share/backgrounds/wpiedras-verdecito.jpg": |
---|
| 114 | ensure => "/dist/svn-redcta/escritorio-fondos-cta/wpiedras-verdecito.jpg" |
---|
| 115 | } |
---|
[197] | 116 | } |
---|