]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
It's libreoffice on wheezy
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 30 Jan 2013 12:35:28 +0000 (10:35 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 30 Jan 2013 12:35:28 +0000 (10:35 -0200)
manifests/subsystems/utils/office.pp

index 0233cae543843ec523801359ff7299a0d962757f..7a40f78cf49d90a5f0794ba7c23990a1e4a3437e 100644 (file)
@@ -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,
+    }
+  }
 }