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' => "/usr/lib/flashplugin-nonfree/libflashplayer.so", 'installed' => "/usr/lib/flashplugin-nonfree/libflashplayer.so", default => undef, }, require => Package['flashplugin-nonfree'], } }