aboutsummaryrefslogtreecommitdiff
path: root/manifests/utils/multimedia/gnash.pp
blob: f6cee10797a4afb30017441475bbf4a11dd09539 (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
class nodo::utils::multimedia::gnash (
  $ensure = 'installed',
) {
  package { [
    'flashplugin-nonfree',
  ]:
    ensure => purged,
  }

  package { [
    'browser-plugin-gnash',
  ]:
    ensure => $ensure,
  }

  # Flash alternative
  file { "/etc/alternatives/flash-mozilla.so":
    owner   => root,
    group   => root,
    ensure  => $ensure ? {
      'installed','present' => "/usr/lib/gnash/libgnashplugin.so",
      default               => undef,
    },
    require => Package['browser-plugin-gnash'],
  }
}