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