aboutsummaryrefslogtreecommitdiff
path: root/manifests/utils/web/gui.pp
blob: 6e930e65e0e1a4ae92c15e96fb79f77c03d693e3 (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
class nodo::utils::web::gui (
  $ensure = 'installed',
) {
  # Web: GUI
  package { [
    'firefox-esr',
    'chromium',
    'chromium-l10n',
    'xul-ext-https-everywhere',
    'xul-ext-refcontrol',
    #'xul-ext-pentadactyl',
    #'xul-ext-stylish',
    #'maildir-utils',
    #'libical-parser-perl',
    #'geoip-bin',
    #'rig',
    #'mailplate',
    #'sup-mail',
    #'avahi-discover',
    #'mdns-scan',
    #'davfs2',
    #'ssvnc',
    #'mairix',
    #'openvpn',
    #'nicotine',
    #'sshfs',
  ]:
    ensure => $ensure,
  }

  # Browser alternative
  file { "/etc/alternatives/x-www-browser":
    ensure  => $ensure ? {
      'present'   => "/usr/bin/firefox-esr",
      'installed' => "/usr/bin/firefox-esr",
      default               => undef,
    },
    owner   => root,
    group   => root,
    require => Package['firefox-esr'],
  }

  # Browser alternative: manpage
  file { "/etc/alternatives/x-www-browser.1.gz":
    ensure  => $ensure ? {
      'present'   => "/usr/share/man/man1/firefox-esr.1.gz",
      'installed' => "/usr/share/man/man1/firefox-esr.1.gz",
      default               => undef,
    },
    owner   => root,
    group   => root,
    require => Package['firefox-esr'],
  }
}