[159] | 1 | class estacion-de-trabajo { |
---|
[180] | 2 | |
---|
| 3 | ## lo basico |
---|
[182] | 4 | package { [ "ubuntu-desktop", "ubuntu-restricted-extras", "cups" ]: 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 | |
---|
| 31 | ## cups (browse) - to see other printers |
---|
| 32 | line { cupsbrowseoff: |
---|
| 33 | file => "/etc/cups/cupsd.conf", |
---|
| 34 | line => 'Browsing Off', |
---|
| 35 | ensure => absent, |
---|
| 36 | require => Package["cups"] |
---|
| 37 | } |
---|
| 38 | line { cupsbrowseon: |
---|
| 39 | file => "/etc/cups/cupsd.conf", |
---|
| 40 | line => 'Browsing On', |
---|
| 41 | ensure => present, |
---|
| 42 | require => Package["cups"] |
---|
| 43 | } |
---|
| 44 | ## TODO: restart cups after a change of config |
---|
| 45 | # service { |
---|
| 46 | # "cups": |
---|
| 47 | # enable => true, |
---|
| 48 | # ensure => running, |
---|
| 49 | # # not sure if i'm correct with the last statement... about line. |
---|
| 50 | # subscribe => [ Package["cups"], line["cupsbrowseon"] ], |
---|
| 51 | # } |
---|
| 52 | |
---|
[197] | 53 | ## creation of home directories with permission 700 (cannot be read by others) |
---|
| 54 | package { [ "adduser" ]: ensure => installed } |
---|
| 55 | line { changehomedirpermissiondefault: |
---|
| 56 | file => "/etc/adduser.conf", |
---|
| 57 | line => "DIR_MODE=0755", |
---|
| 58 | ensure => absent, |
---|
| 59 | require => Package["adduser"] |
---|
| 60 | } |
---|
| 61 | line { homedirpermissionothersout: |
---|
| 62 | file => "/etc/adduser.conf", |
---|
| 63 | line => "DIR_MODE=0700", |
---|
| 64 | ensure => present, |
---|
| 65 | require => Package["adduser"] |
---|
| 66 | } |
---|
[182] | 67 | |
---|
| 68 | |
---|
[180] | 69 | # question de creer le repertoire avant de faire le checkout |
---|
| 70 | file { ["/dist", "/dist/svn-redcta"]: |
---|
| 71 | ensure => directory, |
---|
| 72 | owner => root, |
---|
| 73 | group => root |
---|
| 74 | } |
---|
[184] | 75 | |
---|
| 76 | include estacion-de-trabajo::gnome-desktop::xp |
---|
| 77 | |
---|
[186] | 78 | include estacion-de-trabajo::thunderbird::extensions |
---|
[180] | 79 | |
---|
[197] | 80 | include estacion-de-trabajo::escritorio::fondos::cta |
---|
| 81 | |
---|
[180] | 82 | # define create::symblink ( $target, $linkname ) { |
---|
| 83 | # exec { "createsymblink": |
---|
| 84 | # command => "ln -s $target $linkname", |
---|
| 85 | # path => "/bin", |
---|
| 86 | # creates => "$linkname", |
---|
| 87 | # } |
---|
| 88 | |
---|
| 89 | #} |
---|
| 90 | |
---|
[184] | 91 | } |
---|
[180] | 92 | |
---|
[184] | 93 | class estacion-de-trabajo::gnome-desktop::xp { |
---|
| 94 | |
---|
| 95 | svn::checkout { gnome-theme-xp: |
---|
| 96 | repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/gnome-theme-xp", |
---|
| 97 | local_path => "/dist/svn-redcta", |
---|
| 98 | local_name => "gnome-theme-xp", |
---|
| 99 | } |
---|
| 100 | |
---|
[202] | 101 | # Not used for now |
---|
| 102 | # file { "/dist/svn-redcta/gnome-theme-xp/": |
---|
| 103 | # ensure => "present", |
---|
| 104 | # } |
---|
| 105 | |
---|
[184] | 106 | file { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh": |
---|
| 107 | ensure => "present", |
---|
| 108 | owner => "root", group => "root", mode => "755" |
---|
| 109 | } |
---|
| 110 | |
---|
[202] | 111 | ## TODO: exec this when there is a svn checkout |
---|
[184] | 112 | exec { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh": |
---|
| 113 | refreshonly => true, |
---|
[202] | 114 | subscribe => File["/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh"] |
---|
[184] | 115 | } |
---|
[194] | 116 | |
---|
[202] | 117 | |
---|
[194] | 118 | file { "/etc/X11/Xsession.d/65xdg-user-desktop-icons-update": |
---|
| 119 | ensure => "/dist/svn-redcta/gnome-theme-xp/Xsession.d/65xdg-user-desktop-icons-update" |
---|
| 120 | } |
---|
[159] | 121 | } |
---|
| 122 | |
---|
[186] | 123 | class estacion-de-trabajo::thunderbird::extensions { |
---|
| 124 | |
---|
| 125 | svn::checkout { thunderbird-extension: |
---|
| 126 | repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/thunderbird", |
---|
| 127 | local_path => "/dist/svn-redcta", |
---|
| 128 | local_name => "thunderbid-extensions" |
---|
| 129 | } |
---|
| 130 | |
---|
[188] | 131 | file { "/usr/share/thunderbird/isp/example-isp.rdf": |
---|
| 132 | ensure => "/dist/svn-redcta/thunderbid-extensions/agregados/sources/isp/example-isp.rdf" |
---|
[186] | 133 | } |
---|
| 134 | |
---|
[188] | 135 | file { "/usr/lib/thunderbird/extensions/syncmlplugin@funambol.com": |
---|
| 136 | ensure => "/dist/svn-redcta/thunderbid-extensions/funambol/dist" |
---|
| 137 | } |
---|
[186] | 138 | } |
---|
[197] | 139 | |
---|
| 140 | class estacion-de-trabajo::escritorio::fondos::cta { |
---|
| 141 | |
---|
| 142 | svn::checkout { escritorio-fondos-cta: |
---|
| 143 | repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/escritorio-fondos-cta", |
---|
| 144 | local_path => "/dist/svn-redcta", |
---|
| 145 | local_name => "escritorio-fondos-cta" |
---|
| 146 | } |
---|
| 147 | |
---|
[209] | 148 | file { "/usr/share/backgrounds/wpiedras-hojitas.jpg": |
---|
| 149 | ensure => "/dist/svn-redcta/escritorio-fondos-cta/wpiedras-hojitas.jpg" |
---|
| 150 | } |
---|
[197] | 151 | |
---|
[209] | 152 | file { "/usr/share/backgrounds/wpiedras-verdecito.jpg": |
---|
| 153 | ensure => "/dist/svn-redcta/escritorio-fondos-cta/wpiedras-verdecito.jpg" |
---|
| 154 | } |
---|
[197] | 155 | } |
---|