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