-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmetadata.rb
150 lines (117 loc) · 4.88 KB
/
metadata.rb
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
name 'ow_media_capture'
maintainer 'OpenWatch FPC'
maintainer_email '[email protected]'
license 'All rights reserved'
description 'Installs/Configures ow_media_capture'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.1.0'
recipe "ow_media_capture", "Pulls the OpenWatch NodeMediaCapture code, specifies appropriate user permissions to its root, npm installs packages.json, creates default.yaml from the provided template and starts the application as a service"
recipe "ow_media_capture::sync", "Pulls the specified OpenWatch NodeMediaCapture code, npm installs packages.json, creates default.yaml from the provided template and restarts the application service"
%w{ ubuntu }.each do |os|
supports os
end
depends "nginx"
depends "git_ssh_wrapper"
depends "user", "~> 0.3.0"
depends "npm"
# System
attribute "capture/app_root",
:display_name => "App root directory",
:description => "Location to checkout application to",
:default => "/var/www/NodeMediaCapture"
attribute "capture/config_path",
:display_name => "configuration file path",
:description => "filepath of the configuration file within app_root",
:default => "/config/default.yaml"
attribute "capture/git_user",
:display_name => "Git user",
:description => "username to run git commands as",
:default => "git"
attribute "capture/service_user",
:display_name => "service user",
:description => "username to run app service as",
:default => "media-capture"
attribute "capture/service_user_gid",
:display_name => "service user groupid",
:description => "group for user running service",
:default => "500"
attribute "capture/service_name",
:display_name => "Service name",
:description => "The name of the service responsible for running the capture app",
:default => "ow_media_capture"
attribute "capture/git_url",
:display_name => "Git repository url",
:description => "URL of the git repository to checkout",
:default => "[email protected]:OpenWatch/NodeMediaCapture.git"
attribute "capture/git_rev",
:display_name => "Git revision",
:description => "Revision to checkout with git. Can be 'HEAD', tag name or a SHA hash",
:default => "HEAD"
attribute "capture/git_ssh_wrapper",
:display_name => "Git ssh wrapper location",
:description => "Output location for shell script to prep git user for connection to OpenWatch's git repo",
:default => "/tmp/wrap-ssh4git.sh"
attribute "capture/log_path",
:display_name => "App Log path",
:description => "An absolute path",
:default => "/var/log/ow_media_capture.log"
attribute "capture/run_script",
:display_name => "App run script",
:description => "Script to have upstart call. A path relative to the app root",
:default => "run.sh"
# Nginx
attribute "capture/listen_port",
:display_name => "Public Port",
:description => "Nginx will listen on this port for this application",
:default => "80"
# NodeMediaCapture
attribute "capture/incoming_tmp",
:display_name => "Temporarily Upload Location",
:description => "Where node-formidable copies files before being processed",
:default => "/tmp"
attribute "capture/temp_bucket",
:display_name => "Temporarily Upload Bucket",
:description => "Where files are transferred for processing",
:default => "/internment"
attribute "capture/temp_reject_bucket",
:display_name => "Temporarily Reject Upload Bucket",
:description => "Where duplicate uploads are transferred for later upload to reject bucket",
:default => "/internment-rejected"
attribute "capture/site_domain",
:display_name => "Site domain",
:description => "",
:default => "localhost"
attribute "capture/app_port",
:display_name => "App port",
:description => "",
:default => "5000"
attribute "capture/couch_table_name",
:display_name => "CouchDB tablename",
:description => "media capture database table name",
:default => "recordings"
# NodeMediaProcess
attribute "capture/process_api_schema",
:display_name => "NodeMediaProcess API Schema",
:description => "openwatch NodeMediaProcess service scheme",
:default => "https://"
attribute "capture/process_api_url",
:display_name => "NodeMediaProcess API url",
:description => "openwatch NodeMediaProcess service url",
:default => "alpha.openwatch.net/api/"
# Django
attribute "capture/django_api_schema",
:display_name => "DJango API Schema",
:description => "openwatch django service scheme",
:default => "https://"
attribute "capture/django_api_url",
:display_name => "Django API url",
:description => "openwatch django service url",
:default => "alpha.openwatch.net/api/"
attribute "capture/django_api_user",
:display_name => "Django API username",
:description => "openwatch django service api username",
:default => "test"
attribute "capture/django_api_password",
:display_name => "Django API password",
:description => "openwatch django service api user pass",
:default => "test"