-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariable.tf
1065 lines (1029 loc) · 35.6 KB
/
variable.tf
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
variable "name" {
description = "Name to be used on all the resources as identifier"
type = string
default = ""
validation {
condition = length(var.name) > 0
error_message = "The name value must be a valid! Example: example-name"
}
}
variable "project_create" {
description = "Create a new project in Digital Ocean to access all created resources. true = create new project, false = use existing project in DO."
default = true
}
variable "project_name" {
description = "A unique project used in digital ocean to create all resources. When project_create = true or existing project name. When project_create = false."
type = string
default = ""
}
variable "type" {
description = "Type of deployment: single, cluster, autoscaling"
type = string
default = "single"
validation {
condition = var.type == "single" || var.type == "cluster" || var.type == "autoscaling"
error_message = "The type value must be a valid! Example: single, cluster, autoscaling"
}
}
variable "path_to_red5pro_build" {
description = "Path to the Red5 Pro build zip file, absolute path or relative path. https://account.red5pro.com/downloads. Example: /home/ubuntu/red5pro-server-0.0.0.b0-release.zip"
type = string
default = ""
validation {
condition = fileexists(var.path_to_red5pro_build) == true
error_message = "The path_to_red5pro_build value must be a valid! Example: /home/ubuntu/red5pro-server-0.0.0.b0-release.zip"
}
}
# Digital Ocean configuration
variable "digital_ocean_region" {
description = "DO region to deploy the resources"
default = ""
}
variable "digital_ocean_access_token" {
description = "DO token to access the services of cloud"
default = ""
}
# VPC configuration
variable "vpc_cidr_block" {
description = "Digital Ocean VPC IP range for Red5 Pro"
type = string
default = "10.5.0.0/16"
}
variable "vpc_create" {
description = "Create a new VPC or use an existing one. true = create new, false = use existing"
type = bool
default = true
}
variable "vpc_name_existing" {
description = "VPC NAME which is used to configure the droplet."
type = string
default = ""
}
# Red5 Pro Terraform Service properties
variable "terraform_service_instance_create" {
description = "Create a dedicated DO droplet for Red5 pro Terraform Service "
type = bool
default = true
}
variable "terraform_service_api_key" {
description = "API key for Teraform Service to autherize the APIs"
type = string
default = ""
}
variable "terraform_service_parallelism" {
description = "Number of Terraform concurrent operations and used for non-standard rate limiting"
type = string
default = "20"
}
variable "terraform_service_droplet_size" {
description = "Red5 Pro Stream Manager server droplet size"
type = string
default = "s-1vcpu-1gb"
}
# Digital Ocean Firewall Configuration to allow required ports of red5pro stream manager droplet
# Inbound rules for stream manager red5pro
variable "firewall_stream_manager_inbound" {
description = "List of inbound firewall rules"
type = list(object({
protocol = string
port_range = string
source_addresses = list(string)
}))
default = [
{
protocol = "tcp"
port_range = "22"
source_addresses = ["0.0.0.0/0", "::/0"]
},
{
protocol = "tcp"
port_range = "80"
source_addresses = ["0.0.0.0/0", "::/0"]
},
{
protocol = "tcp"
port_range = "5080"
source_addresses = ["0.0.0.0/0", "::/0"]
},
{
protocol = "tcp"
port_range = "8083"
source_addresses = ["0.0.0.0/0", "::/0"]
},
{
protocol = "tcp"
port_range = "9092"
source_addresses = ["0.0.0.0/0", "::/0"]
},
{
protocol = "tcp"
port_range = "443"
source_addresses = ["0.0.0.0/0", "::/0"]
}
]
}
# Outbound rules for stream manager red5pro
variable "firewall_stream_manager_outbound" {
description = "List of outbound firewall rules"
type = list(object({
protocol = string
port_range = string
destination_addresses = list(string)
}))
default = [
{
protocol = "tcp"
port_range = "1-65535"
destination_addresses = ["0.0.0.0/0", "::/0"]
},
{
protocol = "icmp"
port_range = "0"
destination_addresses = ["0.0.0.0/0", "::/0"]
},
{
protocol = "udp"
port_range = "1-65535"
destination_addresses = ["0.0.0.0/0", "::/0"]
}
]
}
# Inbound rules for terraform service
variable "firewall_terraform_service_inbound" {
description = "List of inbound firewall rules"
type = list(object({
protocol = string
port_range = string
source_addresses = list(string)
}))
default = [
{
protocol = "tcp"
port_range = "22"
source_addresses = ["0.0.0.0/0", "::/0"]
},
{
protocol = "tcp"
port_range = "8083"
source_addresses = ["0.0.0.0/0", "::/0"]
},
{
protocol = "tcp"
port_range = "9092"
source_addresses = ["0.0.0.0/0", "::/0"]
}
]
}
# Outbound rules for terraform service
variable "firewall_terraform_service_outbound" {
description = "List of outbound firewall rules"
type = list(object({
protocol = string
port_range = string
destination_addresses = list(string)
}))
default = [
{
protocol = "tcp"
port_range = "1-65535"
destination_addresses = ["0.0.0.0/0", "::/0"]
},
{
protocol = "icmp"
port_range = "0"
destination_addresses = ["0.0.0.0/0", "::/0"]
},
{
protocol = "udp"
port_range = "1-65535"
destination_addresses = ["0.0.0.0/0", "::/0"]
}
]
}
# Digital Ocean Firewall Configuration to allow required ports of red5pro single droplet
variable "inbound_rules" {
description = "List of inbound firewall rules"
type = list(object({
protocol = string
port_range = string
source_addresses = list(string)
}))
default = [
{
protocol = "tcp"
port_range = "22"
source_addresses = ["0.0.0.0/0", "::/0"]
},
{
protocol = "tcp"
port_range = "80"
source_addresses = ["0.0.0.0/0", "::/0"]
},
{
protocol = "tcp"
port_range = "5080"
source_addresses = ["0.0.0.0/0", "::/0"]
},
{
protocol = "tcp"
port_range = "1935"
source_addresses = ["0.0.0.0/0", "::/0"]
},
{
protocol = "tcp"
port_range = "8554"
source_addresses = ["0.0.0.0/0", "::/0"]
},
{
protocol = "tcp"
port_range = "443"
source_addresses = ["0.0.0.0/0", "::/0"]
},
{
protocol = "udp"
port_range = "8000-8001"
source_addresses = ["0.0.0.0/0", "::/0"]
},
{
protocol = "udp"
port_range = "40000-65535"
source_addresses = ["0.0.0.0/0", "::/0"]
}
]
}
variable "outbound_rules" {
description = "List of outbound firewall rules"
type = list(object({
protocol = string
port_range = string
destination_addresses = list(string)
}))
default = [
{
protocol = "tcp"
port_range = "1-65535"
destination_addresses = ["0.0.0.0/0", "::/0"]
},
{
protocol = "icmp"
port_range = "0"
destination_addresses = ["0.0.0.0/0", "::/0"]
},
{
protocol = "udp"
port_range = "1-65535"
destination_addresses = ["0.0.0.0/0", "::/0"]
}
]
}
# Load Balancer Configuration
variable "lb_size" {
description = " The size of the Load Balancer. It must be either lb-small, lb-medium, or lb-large."
type = string
default = "lb-small"
validation {
condition = var.lb_size == "lb-small" || var.lb_size == "lb-medium" || var.lb_size == "lb-large"
error_message = "The value must be a valid! Example: lb-small, lb-medium, lb-large"
}
}
variable "lb_ssl_create" {
description = "Create a new SSL certificate for Load Balancer created in DO (autoscaling)"
type = bool
default = true
}
variable "cert_fullchain" {
description = "If 'lb_ssl_create' = true File path for SSL/TLS CA Certificate Fullchain (autoscaling)"
type = string
default = ""
}
variable "cert_private_key" {
description = "If 'lb_ssl_create' = true File path for SSL/TLS Certificate Private Key (autoscaling)"
type = string
default = ""
}
variable "leaf_public_cert" {
description = "If 'lb_ssl_create' = true File path for SSL/TLS Certificate Public Cert (autoscaling)"
type = string
default = ""
}
# MySQL configuration
variable "mysql_database_create" {
description = "Create a new MySQL Database"
type = bool
default = false
}
variable "mysql_database_size" {
description = "MySQL database size"
type = string
default = "db-s-1vcpu-2gb"
}
variable "mysql_username" {
description = "MySQL user name if mysql_database_create = false"
type = string
default = ""
}
variable "mysql_password" {
description = "MySQL password if mysql_database_create = false"
type = string
default = ""
sensitive = true
}
variable "mysql_port" {
description = "MySQL port if mysql_database_create = false"
type = number
default = 25060
}
# SSH key configuration
variable "ssh_key_create" {
description = "Create a new SSH key pair or use an existing one. true = create new, false = use existing"
type = bool
default = true
}
variable "ssh_key_name" {
description = "SSH key pair name new/existing"
type = string
default = ""
}
variable "ssh_private_key_path" {
description = "SSH private key path existing"
type = string
default = ""
}
# Stream Manager Configuration
variable "stream_managers_amount" {
description = "Total number stream manager required to setup in autoscale."
type = number
default = 1
validation {
condition = var.stream_managers_amount >= 1
error_message = "The stream manager amount should be greater than or equal to '1'. The default count is '1'."
}
}
variable "stream_manager_droplet_size" {
description = "Red5 Pro Stream Manager server droplet size"
type = string
default = "c-4"
}
variable "stream_manager_api_key" {
description = "API Key for Red5Pro Stream Manager"
type = string
default = ""
}
variable "create_reserved_ip_stream_manager" {
description = "Create Reserved IP for Stream Manager"
type = bool
default = true
}
variable "existing_reserved_ip_address_stream_manager" {
description = "Existing reserved IP address for Stream Manager"
type = string
default = ""
}
variable "red5pro_cluster_key" {
description = "Red5Pro Cluster Key"
type = string
default = ""
}
# Red5 Pro single server configuration
variable "single_droplet_size" {
description = "Red5 Pro Single server droplet size"
type = string
default = "c-4"
}
variable "create_reserved_ip_single_server" {
description = "Create the reserved IP for Single server"
type = bool
default = true
}
variable "existing_reserved_ip_address_single_server" {
description = "Use already created reserved IP for Single server"
type = string
default = ""
}
variable "red5pro_license_key" {
description = "Red5 Pro license key (https://www.red5pro.com/docs/installation/installation/license-key/)"
type = string
default = ""
}
variable "red5pro_api_enable" {
description = "Red5 Pro Server API enable/disable (https://www.red5pro.com/docs/development/api/overview/)"
type = bool
default = true
}
variable "red5pro_api_key" {
description = "Red5 Pro server API key"
type = string
default = ""
}
variable "red5pro_inspector_enable" {
description = "Red5 Pro Single server Inspector enable/disable (https://www.red5pro.com/docs/troubleshooting/inspector/overview/)"
type = bool
default = false
}
variable "red5pro_restreamer_enable" {
description = "Red5 Pro Single server Restreamer enable/disable (https://www.red5pro.com/docs/special/restreamer/overview/)"
type = bool
default = false
}
variable "red5pro_socialpusher_enable" {
description = "Red5 Pro Single server SocialPusher enable/disable (https://www.red5pro.com/docs/special/social-media-plugin/rest-api/)"
type = bool
default = false
}
variable "red5pro_suppressor_enable" {
description = "Red5 Pro Single server Suppressor enable"
type = bool
default = false
}
variable "red5pro_hls_enable" {
description = "Red5 Pro Single server HLS enable/disable (https://www.red5pro.com/docs/protocols/hls-plugin/overview/)"
type = bool
default = false
}
variable "red5pro_round_trip_auth_enable" {
description = "Round trip authentication on the red5pro server enable/disable - Auth server should be deployed separately (https://www.red5pro.com/docs/special/round-trip-auth/overview/)"
type = bool
default = false
}
variable "red5pro_round_trip_auth_host" {
description = "Round trip authentication server host"
type = string
default = ""
}
variable "red5pro_round_trip_auth_port" {
description = "Round trip authentication server port"
type = number
default = 3000
}
variable "red5pro_round_trip_auth_protocol" {
description = "Round trip authentication server protocol"
type = string
default = "http"
}
variable "red5pro_round_trip_auth_endpoint_validate" {
description = "Round trip authentication server endpoint for validate"
type = string
default = "/validateCredentials"
}
variable "red5pro_round_trip_auth_endpoint_invalidate" {
description = "Round trip authentication server endpoint for invalidate"
type = string
default = "/invalidateCredentials"
}
# HTTPS/SSL variables for single/cluster
variable "https_letsencrypt_enable" {
description = "Enable HTTPS and get SSL certificate using Let's Encrypt automaticaly (single/cluster/autoscale) (https://www.red5pro.com/docs/installation/ssl/overview/)"
type = bool
default = false
}
variable "https_letsencrypt_certificate_domain_name" {
description = "Domain name for Let's Encrypt ssl certificate (single/cluster/autoscale)"
type = string
default = ""
}
variable "https_letsencrypt_certificate_email" {
description = "Email for Let's Encrypt ssl certificate (single/cluster/autoscale)"
type = string
default = ""
}
variable "https_letsencrypt_certificate_password" {
description = "Password for Let's Encrypt ssl certificate (single/cluster/autoscale)"
type = string
default = ""
}
variable "path_to_terraform_cloud_controller" {
description = "Path to the Terraform Cloud Controller jar file, absolute path or relative path. https://account.red5pro.com/downloads. Example: /home/ubuntu/terraform-do-red5pro/terraform-cloud-controller-0.0.0.jar"
type = string
default = ""
}
variable "path_to_terraform_service_build" {
description = "Path to the Terraform Service build zip file, absolute path or relative path. https://account.red5pro.com/downloads. Example: /home/ubuntu/terraform-do-red5pro/terraform-service-0.0.0.zip"
type = string
default = ""
}
########################################################
# Red5 Pro autoscaling Origin node image configuration
########################################################
variable "origin_image_create" {
description = "Create new Origin node image true/false. (Default:true) (https://www.red5pro.com/docs/special/relays/overview/#origin-and-edge-nodes)"
type = bool
default = false
}
variable "origin_image_droplet_size" {
description = "Origin node image - droplet size"
type = string
default = "c-4"
}
variable "origin_image_red5pro_inspector_enable" {
description = "Origin node image - Inspector enable/disable (https://www.red5pro.com/docs/troubleshooting/inspector/overview/)"
type = bool
default = false
}
variable "origin_image_red5pro_restreamer_enable" {
description = "Origin node image - Restreamer enable/disable (https://www.red5pro.com/docs/special/restreamer/overview/)"
type = bool
default = false
}
variable "origin_image_red5pro_socialpusher_enable" {
description = "Origin node image - SocialPusher enable/disable (https://www.red5pro.com/docs/special/social-media-plugin/rest-api/)"
type = bool
default = false
}
variable "origin_image_red5pro_suppressor_enable" {
description = "Origin node image - Suppressor enable/disable"
type = bool
default = false
}
variable "origin_image_red5pro_hls_enable" {
description = "Origin node image - HLS enable/disable (https://www.red5pro.com/docs/protocols/hls-plugin/overview/)"
type = bool
default = false
}
variable "origin_image_red5pro_round_trip_auth_enable" {
description = "Origin node image - Round trip authentication on the enable/disable - Auth server should be deployed separately (https://www.red5pro.com/docs/special/round-trip-auth/overview/)"
type = bool
default = false
}
variable "origin_image_red5pro_round_trip_auth_host" {
description = "Origin node image - Round trip authentication server host"
type = string
default = ""
}
variable "origin_image_red5pro_round_trip_auth_port" {
description = "Origin node image - Round trip authentication server port"
type = number
default = 3000
}
variable "origin_image_red5pro_round_trip_auth_protocol" {
description = "Origin node image - Round trip authentication server protocol"
type = string
default = "http"
}
variable "origin_image_red5pro_round_trip_auth_endpoint_validate" {
description = "Origin node image - Round trip authentication server endpoint for validate"
type = string
default = "/validateCredentials"
}
variable "origin_image_red5pro_round_trip_auth_endpoint_invalidate" {
description = "Origin node image - Round trip authentication server endpoint for invalidate"
type = string
default = "/invalidateCredentials"
}
# Red5 Pro Edge node image configuration
variable "edge_image_create" {
description = "Create new Edge node image true/false. (Default:true) (https://www.red5pro.com/docs/special/relays/overview/#origin-and-edge-nodes)"
type = bool
default = false
}
variable "edge_image_droplet_size" {
description = "Edge node image - droplet_size"
type = string
default = "c-4"
}
variable "edge_image_red5pro_inspector_enable" {
description = "Edge node image - Inspector enable/disable (https://www.red5pro.com/docs/troubleshooting/inspector/overview/)"
type = bool
default = false
}
variable "edge_image_red5pro_restreamer_enable" {
description = "Edge node image - Restreamer enable/disable (https://www.red5pro.com/docs/special/restreamer/overview/)"
type = bool
default = false
}
variable "edge_image_red5pro_socialpusher_enable" {
description = "Edge node image - SocialPusher enable/disable (https://www.red5pro.com/docs/special/social-media-plugin/rest-api/)"
type = bool
default = false
}
variable "edge_image_red5pro_suppressor_enable" {
description = "Edge node image - Suppressor enable/disable"
type = bool
default = false
}
variable "edge_image_red5pro_hls_enable" {
description = "Edge node image - HLS enable/disable (https://www.red5pro.com/docs/protocols/hls-plugin/overview/)"
type = bool
default = false
}
variable "edge_image_red5pro_round_trip_auth_enable" {
description = "Edge node image - Round trip authentication on the enable/disable - Auth server should be deployed separately (https://www.red5pro.com/docs/special/round-trip-auth/overview/)"
type = bool
default = false
}
variable "edge_image_red5pro_round_trip_auth_host" {
description = "Edge node image - Round trip authentication server host"
type = string
default = ""
}
variable "edge_image_red5pro_round_trip_auth_port" {
description = "Edge node image - Round trip authentication server port"
type = number
default = 3000
}
variable "edge_image_red5pro_round_trip_auth_protocol" {
description = "Edge node image - Round trip authentication server protocol"
type = string
default = "http"
}
variable "edge_image_red5pro_round_trip_auth_endpoint_validate" {
description = "Edge node image - Round trip authentication server endpoint for validate"
type = string
default = "/validateCredentials"
}
variable "edge_image_red5pro_round_trip_auth_endpoint_invalidate" {
description = "Edge node image - Round trip authentication server endpoint for invalidate"
type = string
default = "/invalidateCredentials"
}
# Red5 Pro Transcoder node image configuration
variable "transcoder_image_create" {
description = "Create new Transcoder node image true/false. (Default:true) (https://www.red5pro.com/docs/special/relays/overview/#origin-and-edge-nodes)"
type = bool
default = false
}
variable "transcoder_image_droplet_size" {
description = "Transcoder node image - droplet_size"
type = string
default = "c-4"
}
variable "transcoder_image_red5pro_inspector_enable" {
description = "Transcoder node image - Inspector enable/disable (https://www.red5pro.com/docs/troubleshooting/inspector/overview/)"
type = bool
default = false
}
variable "transcoder_image_red5pro_restreamer_enable" {
description = "Transcoder node image - Restreamer enable/disable (https://www.red5pro.com/docs/special/restreamer/overview/)"
type = bool
default = false
}
variable "transcoder_image_red5pro_socialpusher_enable" {
description = "Transcoder node image - SocialPusher enable/disable (https://www.red5pro.com/docs/special/social-media-plugin/rest-api/)"
type = bool
default = false
}
variable "transcoder_image_red5pro_suppressor_enable" {
description = "Transcoder node image - Suppressor enable/disable"
type = bool
default = false
}
variable "transcoder_image_red5pro_hls_enable" {
description = "Transcoder node image - HLS enable/disable (https://www.red5pro.com/docs/protocols/hls-plugin/overview/)"
type = bool
default = false
}
variable "transcoder_image_red5pro_round_trip_auth_enable" {
description = "Transcoder node image - Round trip authentication on the enable/disable - Auth server should be deployed separately (https://www.red5pro.com/docs/special/round-trip-auth/overview/)"
type = bool
default = false
}
variable "transcoder_image_red5pro_round_trip_auth_host" {
description = "Transcoder node image - Round trip authentication server host"
type = string
default = ""
}
variable "transcoder_image_red5pro_round_trip_auth_port" {
description = "Transcoder node image - Round trip authentication server port"
type = number
default = 3000
}
variable "transcoder_image_red5pro_round_trip_auth_protocol" {
description = "Transcoder node image - Round trip authentication server protocol"
type = string
default = "http"
}
variable "transcoder_image_red5pro_round_trip_auth_endpoint_validate" {
description = "Transcoder node image - Round trip authentication server endpoint for validate"
type = string
default = "/validateCredentials"
}
variable "transcoder_image_red5pro_round_trip_auth_endpoint_invalidate" {
description = "Transcoder node image - Round trip authentication server endpoint for invalidate"
type = string
default = "/invalidateCredentials"
}
# Red5 Pro Relay node image configuration
variable "relay_image_create" {
description = "Create new Relay node image true/false. (Default:true) (https://www.red5pro.com/docs/special/relays/overview/#origin-and-edge-nodes)"
type = bool
default = false
}
variable "relay_image_droplet_size" {
description = "Relay node image - droplet size"
type = string
default = "c-4"
}
variable "relay_image_red5pro_inspector_enable" {
description = "Relay node image - Inspector enable/disable (https://www.red5pro.com/docs/troubleshooting/inspector/overview/)"
type = bool
default = false
}
variable "relay_image_red5pro_restreamer_enable" {
description = "Relay node image - Restreamer enable/disable (https://www.red5pro.com/docs/special/restreamer/overview/)"
type = bool
default = false
}
variable "relay_image_red5pro_socialpusher_enable" {
description = "Relay node image - SocialPusher enable/disable (https://www.red5pro.com/docs/special/social-media-plugin/rest-api/)"
type = bool
default = false
}
variable "relay_image_red5pro_suppressor_enable" {
description = "Relay node image - Suppressor enable/disable"
type = bool
default = false
}
variable "relay_image_red5pro_hls_enable" {
description = "Relay node image - HLS enable/disable (https://www.red5pro.com/docs/protocols/hls-plugin/overview/)"
type = bool
default = false
}
variable "relay_image_red5pro_round_trip_auth_enable" {
description = "Relay node image - Round trip authentication on the enable/disable - Auth server should be deployed separately (https://www.red5pro.com/docs/special/round-trip-auth/overview/)"
type = bool
default = false
}
variable "relay_image_red5pro_round_trip_auth_host" {
description = "Relay node image - Round trip authentication server host"
type = string
default = ""
}
variable "relay_image_red5pro_round_trip_auth_port" {
description = "Relay node image - Round trip authentication server port"
type = number
default = 3000
}
variable "relay_image_red5pro_round_trip_auth_protocol" {
description = "Relay node image - Round trip authentication server protocol"
type = string
default = "http"
}
variable "relay_image_red5pro_round_trip_auth_endpoint_validate" {
description = "Relay node image - Round trip authentication server endpoint for validate"
type = string
default = "/validateCredentials"
}
variable "relay_image_red5pro_round_trip_auth_endpoint_invalidate" {
description = "Relay node image - Round trip authentication server endpoint for invalidate"
type = string
default = "/invalidateCredentials"
}
# Red5 Pro autoscaling Node group - (Optional)
variable "node_group_create" {
description = "Create new node group. Linux or Mac OS only."
type = bool
default = false
}
variable "node_group_name" {
description = "Node group name"
type = string
default = ""
}
variable "node_group_origins_min" {
description = "Number of minimum Origins"
type = number
default = 1
}
variable "node_group_origins_max" {
description = "Number of maximum Origins"
type = number
default = 20
}
variable "node_group_origins_droplet_type" {
description = "Droplet type for Origins"
type = string
default = "c-4"
}
variable "node_group_origins_capacity" {
description = "Connections capacity for Origins"
type = number
default = 30
}
variable "node_group_edges_min" {
description = "Number of minimum Edges"
type = number
default = 1
}
variable "node_group_edges_max" {
description = "Number of maximum Edges"
type = number
default = 40
}
variable "node_group_edges_droplet_type" {
description = "Droplet type for Edges"
type = string
default = "c-4"
}
variable "node_group_edges_capacity" {
description = "Connections capacity for Edges"
type = number
default = 300
}
variable "node_group_transcoders_min" {
description = "Number of minimum Transcoders"
type = number
default = 1
}
variable "node_group_transcoders_max" {
description = "Number of maximum Transcoders"
type = number
default = 20
}
variable "node_group_transcoders_droplet_type" {
description = "Droplet type for Transcoders"
type = string
default = "c-4"
}
variable "node_group_transcoders_capacity" {
description = "Connections capacity for Transcoders"
type = number
default = 30
}
variable "node_group_relays_min" {
description = "Number of minimum Relays"
type = number
default = 1
}
variable "node_group_relays_max" {
description = "Number of maximum Relays"
type = number
default = 20
}
variable "node_group_relays_droplet_type" {
description = "Droplet type for Relays"
type = string
default = "c-4"
}
variable "node_group_relays_capacity" {
description = "Connections capacity for Relays"
type = number
default = 30
}
# Video on demand using Cloud Storage
variable "red5pro_cloudstorage_enable" {
description = "Red5 Pro server cloud storage enable/disable (https://www.red5.net/docs/special/cloudstorage-plugin/digital-ocean-storage/)"
type = bool
default = false
}
variable "red5pro_cloudstorage_digitalocean_spaces_access_key" {
description = "Red5 Pro server cloud storage - Digital Ocean space access key (DO Spaces)"
type = string
default = ""
}
variable "red5pro_cloudstorage_digitalocean_spaces_secret_key" {
description = "Red5 Pro server cloud storage - Digital Ocean space secret key (DO Spaces)"
type = string
default = ""
}
variable "red5pro_cloudstorage_digitalocean_spaces_name" {
description = "Red5 Pro server cloud storage - Digital Ocean space name (DO Spaces)"
type = string
default = ""
}
variable "red5pro_cloudstorage_digitalocean_spaces_region" {
description = "Red5 Pro server cloud storage - Digital Ocean space region (DO Spaces)"
type = string
default = ""
}
variable "red5pro_cloudstorage_postprocessor_enable" {
description = "Red5 Pro server cloud storage - enable/disable Red5 Pro server postprocessor (https://www.red5.net/docs/special/cloudstorage-plugin/server-configuration/)"
type = bool
default = false
}
variable "red5pro_cloudstorage_spaces_file_access" {
description = "Red5 Pro server cloud storage files public access"
type = bool
default = false
}
variable "red5pro_cloudstorage_postprocessor_mp4_enable" {
description = "Red5 Pro server cloud storage - enable/disable Red5 Pro server postprocessor to convert flv to MP4 (https://www.red5.net/docs/protocols/converting/overview/)"
type = bool
default = false
}
variable "origin_red5pro_cloudstorage_enable" {
description = "Red5 Pro server cloud storage enable/disable (https://www.red5.net/docs/special/cloudstorage-plugin/digital-ocean-storage/)"
type = bool
default = false
}
variable "origin_red5pro_cloudstorage_digitalocean_spaces_access_key" {
description = "Red5 Pro server cloud storage - Digital Ocean space access key (DO Spaces)"
type = string
default = ""
}
variable "origin_red5pro_cloudstorage_digitalocean_spaces_secret_key" {
description = "Red5 Pro server cloud storage - Digital Ocean space secret key (DO Spaces)"
type = string
default = ""
}
variable "origin_red5pro_cloudstorage_digitalocean_spaces_name" {
description = "Red5 Pro server cloud storage - Digital Ocean space name (DO Spaces)"
type = string
default = ""
}
variable "origin_red5pro_cloudstorage_digitalocean_spaces_region" {
description = "Red5 Pro server cloud storage - Digital Ocean space region (DO Spaces)"
type = string
default = ""
}
variable "origin_red5pro_cloudstorage_postprocessor_enable" {
description = "Red5 Pro server cloud storage - enable/disable Red5 Pro server postprocessor (https://www.red5.net/docs/special/cloudstorage-plugin/server-configuration/)"
type = bool
default = false
}
variable "origin_red5pro_cloudstorage_spaces_file_access" {
description = "Red5 Pro server cloud storage files public access"
type = bool
default = false
}
variable "origin_red5pro_cloudstorage_postprocessor_mp4_enable" {
description = "Red5 Pro server cloud storage - enable/disable Red5 Pro server postprocessor to convert flv to MP4 (https://www.red5.net/docs/protocols/converting/overview/)"
type = bool
default = false
}
variable "transcoder_red5pro_cloudstorage_enable" {
description = "Red5 Pro server cloud storage enable/disable (https://www.red5.net/docs/special/cloudstorage-plugin/digital-ocean-storage/)"
type = bool
default = false
}
variable "transcoder_red5pro_cloudstorage_digitalocean_spaces_access_key" {
description = "Red5 Pro server cloud storage - Digital Ocean space access key (DO Spaces)"
type = string
default = ""
}
variable "transcoder_red5pro_cloudstorage_digitalocean_spaces_secret_key" {
description = "Red5 Pro server cloud storage - Digital Ocean space secret key (DO Spaces)"
type = string
default = ""
}
variable "transcoder_red5pro_cloudstorage_digitalocean_spaces_name" {
description = "Red5 Pro server cloud storage - Digital Ocean space name (DO Spaces)"
type = string
default = ""
}
variable "transcoder_red5pro_cloudstorage_digitalocean_spaces_region" {
description = "Red5 Pro server cloud storage - Digital Ocean space region (DO Spaces)"
type = string
default = ""
}