From e2ffafb8115f62d2df325b810a70b15cb91855fe Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 30 Jan 2013 10:35:28 -0200 Subject: It's libreoffice on wheezy --- manifests/subsystems/utils/office.pp | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/manifests/subsystems/utils/office.pp b/manifests/subsystems/utils/office.pp index 0233cae..7a40f78 100644 --- a/manifests/subsystems/utils/office.pp +++ b/manifests/subsystems/utils/office.pp @@ -1,13 +1,29 @@ class utils::office { # Office package { [ 'wyrd', 'vim-gtk', 'gobby', - 'sc', 'antiword', 'broffice.org', + 'sc', 'antiword', 'dia', 'kalarm', 'texlive-latex-base', 'texlive-latex-recommended', 'texlive-latex-extra', 'pandoc', 'gnumeric', 'cups-client', 'hplip', 'cups-bsd', 'gnucash', 'worklog', 'pdftk', 'calibre', 'fbreader', 'gobby-0.5', - 'mat', 'dia' ]: + 'mat' ]: ensure => installed, } + + # Squeeze only + package { 'broffice.org': + ensure => $::lsbdistcodename ? { + 'squeeze' => installed, + default => absent, + } + } + + # Wheezy onwards + package { 'libreoffice': + ensure => $::lsbdistcodename ? { + 'squeeze' => absent, + default => installed, + } + } } -- cgit v1.2.3