Skip to content

Instantly share code, notes, and snippets.

@jrmoserbaltimore
Created February 5, 2013 18:44
Show Gist options
  • Save jrmoserbaltimore/4716627 to your computer and use it in GitHub Desktop.
Save jrmoserbaltimore/4716627 to your computer and use it in GitHub Desktop.
class wowza::config::license {
$licensekey = $::wowza::licensekey
$licensesource = $::wowza::licensesource
file { '/usr/local/WowzaMediaServer':
ensure => link,
target => "/usr/local/WowzaMediaServer-$wowza_version",
owner => 'root',
group => 'root',
mode => '0777'
}
file { '/usr/local/WowzaMediaServer/conf/Server.license':
ensure => present,
owner => 'root',
group => 'root',
mode => '0400'
}
if ( $licensesource ) {
file { '/usr/local/WowzaMediaServer/conf/Server.license':
source => $licensesource,
}
}
elsif ( $licensekey ) {
file { '/usr/local/WowzaMediaServer/conf/Server.license':
source => $licensesource,
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment