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