source: trunk/puppet/manifests/classes/estacion-de-trabajo.pp @ 186

Last change on this file since 186 was 186, checked in by sebas, 15 years ago

nueva clase para thunderbird

File size: 2.9 KB
Line 
1class estacion-de-trabajo {
2
3## lo basico
4    package { [ "ubuntu-desktop", "ubuntu-restricted-extras", "cups" ]: ensure => installed }
5
6## utile
7##    package { [ 'gconf2', 'locales', 'screen', 'less', 'vim' ]: ensure => installed, }
8
9## security
10    package { [ "libnss3-tools" ]: ensure => installed }
11
12## correo electronico
13    package { [ "thunderbird", "thunderbird-gnome-support" ]: ensure => installed }
14
15## grafico
16    package { [ "inkscape" ]: ensure => installed }
17
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
46
47
48
49#   question de creer le repertoire avant de faire le checkout
50    file { ["/dist", "/dist/svn-redcta"]:
51      ensure => directory,
52      owner => root,
53      group => root
54    }
55
56    include estacion-de-trabajo::gnome-desktop::xp
57
58    include estacion-de-trabajo::thunderbird::extensions
59
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
69}
70
71class 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
79    file { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh":
80        ensure => "present",
81        owner => "root", group => "root", mode => "755"
82    }
83
84    exec { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh":
85        refreshonly => true,
86        subscribe => File["/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh"],
87    }
88}
89
90#syncmlplugin@funambol.com -> /dist/svn-redcta/thunderbid-extension//funambol
91#root@walsh:/usr/lib/thunderbird/extensions#
92
93class estacion-de-trabajo::thunderbird::extensions {
94
95    svn::checkout { thunderbird-extension:
96       repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/thunderbird",
97       local_path => "/dist/svn-redcta",
98       local_name => "thunderbid-extensions"
99    }
100
101    create::symblink { link-thunderbird-extension:
102       target => "/dist/svn-redcta/thunderbid-extensions/agregados/sources/isp/example-isp.rdf",
103       linkname => "/usr/share/thunderbird/isp/example-isp.rdf",
104    }
105
106}
Note: See TracBrowser for help on using the repository browser.