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