1 | # copyright albertorosenberg @ cta.org.ar |
---|
2 | # copyright sebas @ cta.org.ar |
---|
3 | # Licence: GPL |
---|
4 | # |
---|
5 | |
---|
6 | class escritorio::tb { |
---|
7 | |
---|
8 | package { [ |
---|
9 | "thunderbird", |
---|
10 | "thunderbird-locale-es-ar", |
---|
11 | "thunderbird-gnome-support" |
---|
12 | ]: ensure => installed |
---|
13 | } |
---|
14 | } |
---|
15 | |
---|
16 | class escritorio::tb2conf { |
---|
17 | |
---|
18 | include escritorio::tb |
---|
19 | |
---|
20 | file { "/usr/share/thunderbird/defaults/pref/mailnews.js": |
---|
21 | owner => root, |
---|
22 | group => root, |
---|
23 | mode => 644, |
---|
24 | source => "puppet:///escritorio/tb2conf/mailnews.js", |
---|
25 | require => Package["thunderbird"] |
---|
26 | } |
---|
27 | } |
---|
28 | |
---|
29 | class escritorio::tb3conf { |
---|
30 | include escritorio::tb |
---|
31 | |
---|
32 | file { "/etc/thunderbird/pref/thunderbird.js": ensure => present, checksum => mtime } |
---|
33 | |
---|
34 | |
---|
35 | define add_pref($pref_present, $pref_absent) { |
---|
36 | line { "off$name": |
---|
37 | file => "/etc/thunderbird/pref/thunderbird.js", |
---|
38 | line => $pref_absent, |
---|
39 | ensure => absent, |
---|
40 | require => Package["thunderbird"] |
---|
41 | } |
---|
42 | line { "on$name": |
---|
43 | file => "/etc/thunderbird/pref/thunderbird.js", |
---|
44 | line => $pref_present, |
---|
45 | ensure => present, |
---|
46 | require => Package["thunderbird"] |
---|
47 | } |
---|
48 | } |
---|
49 | |
---|
50 | add_pref { "prefencias": |
---|
51 | pref_present => 'pref("mailnews.database.global.indexer.enabled", false);', |
---|
52 | pref_absent => 'pref("mailnews.database.global.indexer.enabled", true);' |
---|
53 | } |
---|
54 | |
---|
55 | add_pref { "autosync_imap": |
---|
56 | pref_present => 'pref("mail.server.default.autosync_offline_stores",false);', |
---|
57 | pref_absent => 'pref("mail.server.default.autosync_offline_stores",true);' |
---|
58 | } |
---|
59 | add_pref { "offline": |
---|
60 | pref_present => 'pref("mail.server.default.offline_download",false);', |
---|
61 | pref_absent => 'pref("mail.server.default.offline_download",true);' |
---|
62 | } |
---|
63 | |
---|
64 | } |
---|
65 | |
---|
66 | class escritorio::tb2::extensions { |
---|
67 | |
---|
68 | svn::checkout { thunderbird-extension: |
---|
69 | repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/thunderbird", |
---|
70 | local_path => "/dist/svn-redcta", |
---|
71 | local_name => "thunderbid-extensions" |
---|
72 | } |
---|
73 | |
---|
74 | file { "/usr/share/thunderbird/isp/example-isp.rdf": |
---|
75 | ensure => "/dist/svn-redcta/thunderbid-extensions/agregados/sources/isp/example-isp.rdf" |
---|
76 | } |
---|
77 | |
---|
78 | # TODO: hacer lo andar bien... |
---|
79 | # file { "/usr/lib/thunderbird/extensions/syncmlplugin@funambol.com": |
---|
80 | # ensure => "/dist/svn-redcta/thunderbid-extensions/funambol/dist" |
---|
81 | # } |
---|
82 | } |
---|
83 | |
---|