source: trunk/puppet/modules/puppet-escritorio/manifests/classes/tbconf.pp @ 761

Last change on this file since 761 was 757, checked in by josx@…, 14 years ago

Agregamos descativar la sincronizacion local de los mensaje

File size: 2.3 KB
RevLine 
[600]1# copyright albertorosenberg @ cta.org.ar
2# copyright sebas @ cta.org.ar
3# Licence: GPL
4#
5
[679]6class escritorio::tb {
[600]7
8    package { [
9        "thunderbird",
[645]10        "thunderbird-locale-es-ar",
[612]11        "thunderbird-gnome-support"
[600]12        ]: ensure => installed
13    }
[679]14}
[600]15
[679]16class escritorio::tb2conf {
17
18    include escritorio::tb
19
[600]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",
[612]25        require => Package["thunderbird"]
[600]26    }
27}
28
[735]29class escritorio::tb3conf {
30    include escritorio::tb
[736]31
[757]32    file { "/etc/thunderbird/pref/thunderbird.js": ensure => present, checksum => mtime }
33
34
[736]35    define add_pref($pref_present, $pref_absent) {
[757]36        line { "off$name":
[736]37            file => "/etc/thunderbird/pref/thunderbird.js",
38            line => $pref_absent,
39            ensure => absent,
40            require => Package["thunderbird"]
41        }
[757]42        line { "on$name":
[736]43            file => "/etc/thunderbird/pref/thunderbird.js",
44            line => $pref_present,
45            ensure => present,
46            require => Package["thunderbird"]
47        }
[735]48    }
[736]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);'
[735]53    }
[736]54
[757]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
[735]64}
65
[600]66class 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
Note: See TracBrowser for help on using the repository browser.