-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathorganization.pp
73 lines (70 loc) · 2.46 KB
/
organization.pp
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# == Define: opencast::organization
# Define a new opencast organization
#
# === Parameters:
#
# [*organization_id*]
# Unique id for the organization
#
# [*organization_name*]
# Name for the organization
#
# [*organization_server*]
# server url that will be used for this organization, this is the url without
# http prefix!
#
# [*organization_port*]
# Server port for this organization
#
# [*organization_enable_episode*]
# Enable or disable the Episode tab in the admin interface.
#
# [*organization_enable_users*]
# Enable or disable the User tab in the admin interface
#
# [*organization_series_prepopulate*]
# Disable or enable prepopulate series metadata when scheduling a recording
#
# [*organization_download_link*]
# Enable or disable the download link in the engage interface
#
# [*organization_annotation_enable*]
# Enable or disable the annotation service in the engage player.
#
# [*organization_media_module_enable*]
# Enable or disable media module
#
# [*organization_mobile_redirect*]
# Enable or disable redirection of mobile users to a different url
#
# [*organization_mobile_redirect_url*]
# Url to redirect mobile users to
#
# [*organization_mobile_redirect_description*] Description for mobile users before redirection
#
define opencast::organization (
$organization_id = $title,
$admin_url = 'http://localhost:8080',
$engage_url = 'http://localhost:8080',
$organization_name = 'Opencast Project',
$organization_server = 'localhost',
$organization_port = '8080',
$organization_enable_episode = 'true',
$organization_enable_users = 'false',
$organization_series_prepopulate = 'false',
$organization_download_link = 'false',
$organization_annotation_enable = 'true',
$organization_media_module_enable = 'true',
$organization_mobile_redirect = 'false',
$organization_mobile_redirect_url = '',
$organization_mobile_redirect_description = ''
) {
file{"${opencast::configdir}/load/org.opencastproject.organization-${organization_id}.cfg":
ensure => file,
content => template('opencast/load/org.opencastproject.organization-mh_default_org.cfg.erb'),
owner => $opencast::user,
group => $opencast::group,
mode => '0644',
require => Package[$opencast::opencast_pkg]
}
}