aboutsummaryrefslogtreecommitdiff
path: root/manifests/utils/multimedia/shockwave.pp
blob: 6ff22edee8a0af234b5695a199adaf681d2db632 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class nodo::utils::multimedia::shockwave (
  $ensure = 'installed',
) {
  # See also https://github.com/i-rinat/freshplayerplugin
  package { [
    'flashplugin-nonfree',
  ]:
    ensure => $ensure,
  }

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