aboutsummaryrefslogtreecommitdiff
path: root/manifests/utils/office.pp
blob: 47e92a9182147c637a09139440c445841d4d98e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
class nodo::utils::office {
  # Office
  package { [ 'vim-gtk',             'gobby',
              'sc',                  'antiword',            'dia',
              'kalarm',              'pandoc',              'gnumeric',
              'gnucash',             'worklog',             'pdftk',
              'calibre',             'fbreader',            'gobby-0.5',
              'mat',                 'evince',              'jekyll',
              'aewan',               'autocutsel',
              'parcellite' ]:
    ensure => installed,
  }

  package { 'taskwarrior':
    ensure  => present,
    name    => $::lsbdistcodename ? {
      'wheezy' => 'task',
      default  => 'taskwarrior',
    },
  }

  # Finance
  package { [ 'ledger', 'clipf', 'misery' ]:
    ensure  => present,
  }

  # Soon
  #package { 'hledger':
  #  ensure => present,
  #}

  # LaTeX
  package { [ 'texlive-latex-base',  'texlive-latex-recommended', 'texlive-latex-extra', 'texlive-fonts-extra', 'vim-latexsuite', 'pdfjam' ]:
    ensure => present,
  }

  # Squeeze only
  package { 'broffice.org':
    ensure => $::lsbdistcodename ? {
      'squeeze' => installed,
      default   => absent,
    }
  }

  # Wheezy only
  package { 'wyrd':
    ensure => $::lsbdistcodename ? {
      'wheezy' => present,
      default  => absent,
    },
  }

  # Wheezy onwards
  package { 'libreoffice':
    ensure => $::lsbdistcodename ? {
      'squeeze' => absent,
      default   => installed,
    }
  }
}