[600] | 1 | # copyright <sebas @ koumbit.org> |
---|
[727] | 2 | # < josx @ inteorganic.com.ar > |
---|
[600] | 3 | # Licence: GPL |
---|
| 4 | # |
---|
| 5 | |
---|
| 6 | class escritorio::oo3conf { |
---|
| 7 | |
---|
| 8 | package { [ |
---|
| 9 | "openoffice.org-common", |
---|
[645] | 10 | "openoffice.org-l10n-es", |
---|
[612] | 11 | "openoffice.org-pdfimport" |
---|
[600] | 12 | ]: ensure => installed |
---|
| 13 | } |
---|
| 14 | } |
---|
| 15 | |
---|
| 16 | |
---|
[690] | 17 | class escritorio::oo3conf::fileformat { |
---|
[600] | 18 | include escritorio::oo3conf |
---|
| 19 | |
---|
| 20 | # we are changing the config file for write, calc and impress for oo3 3.0 |
---|
[663] | 21 | change_oo3_default { [ "writer", "calc", "impress" ]: oo3_version => "-link"; } |
---|
[600] | 22 | |
---|
| 23 | # Configuration file for OO 3.X |
---|
| 24 | define change_oo3_default($oo3_version) { |
---|
| 25 | file { "/usr/lib/openoffice/basis$oo3_version/share/registry/modules/org/openoffice/Setup/Setup-$name.xcu": |
---|
| 26 | owner => root, |
---|
| 27 | group => root, |
---|
| 28 | mode => 644, |
---|
[602] | 29 | source => "puppet:///escritorio/oo30conf/Setup-$name.xcu" |
---|
[663] | 30 | } |
---|
[600] | 31 | } |
---|
| 32 | } |
---|
[727] | 33 | |
---|
| 34 | class escritorio::oo3conf::extensions { |
---|
| 35 | |
---|
| 36 | define add_extension($archivo) { |
---|
| 37 | file { |
---|
| 38 | "/usr/lib/openoffice/share/extension/install/$archivo": |
---|
| 39 | owner => root, |
---|
| 40 | group => root, |
---|
| 41 | mode => 644, |
---|
| 42 | source => "puppet:///escritorio/oo30conf/$archivo" |
---|
| 43 | } |
---|
| 44 | |
---|
| 45 | exec { "add_extension_with_unopkg": |
---|
| 46 | command => "unopkg add -f --shared /usr/lib/openoffice/share/extension/install/$archivo", |
---|
| 47 | path => "/bin:/sbin:/usr/sbin:/usr/bin", |
---|
| 48 | require => Package["openoffice.org-common"] |
---|
| 49 | } |
---|
| 50 | } |
---|
| 51 | |
---|
| 52 | add_extension { "extension": archivo => "Diccionarios-Argentina_1.oxt"; } |
---|
| 53 | |
---|
| 54 | } |
---|