feat: initial sonarr terraform configuration
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
locals {
|
||||
config_files = fileset(".", "**/*.yaml")
|
||||
|
||||
all_configs = {
|
||||
for file_path in local.config_files :
|
||||
file_path => yamldecode(file(file_path))
|
||||
}
|
||||
|
||||
config = {
|
||||
custom_formats = {
|
||||
for file_path, content in local.all_configs :
|
||||
trimsuffix(basename(file_path), ".yaml") => content
|
||||
if startswith(file_path, "custom_format/")
|
||||
}
|
||||
quality_profiles = {
|
||||
for file_path, content in local.all_configs :
|
||||
trimsuffix(basename(file_path), ".yaml") => content
|
||||
if startswith(file_path, "quality_profile/")
|
||||
}
|
||||
download_clients = {
|
||||
for file_path, content in local.all_configs :
|
||||
trimsuffix(basename(file_path), ".yaml") => content
|
||||
if startswith(file_path, "download_client/")
|
||||
}
|
||||
indexers = {
|
||||
for file_path, content in local.all_configs :
|
||||
trimsuffix(basename(file_path), ".yaml") => content
|
||||
if startswith(file_path, "indexer/")
|
||||
}
|
||||
notifications = {
|
||||
for file_path, content in local.all_configs :
|
||||
trimsuffix(basename(file_path), ".yaml") => content
|
||||
if startswith(file_path, "notification/")
|
||||
}
|
||||
delay_profiles = {
|
||||
for file_path, content in local.all_configs :
|
||||
trimsuffix(basename(file_path), ".yaml") => content
|
||||
if startswith(file_path, "delay_profile/")
|
||||
}
|
||||
root_folders = {
|
||||
for file_path, content in local.all_configs :
|
||||
trimsuffix(basename(file_path), ".yaml") => content
|
||||
if startswith(file_path, "root_folder/")
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
include_custom_format_when_renaming: false
|
||||
specifications:
|
||||
- name: av1
|
||||
implementation: ReleaseTitleSpecification
|
||||
negate: false
|
||||
required: false
|
||||
fields:
|
||||
- name: value
|
||||
value: "av1"
|
||||
@@ -0,0 +1,9 @@
|
||||
include_custom_format_when_renaming: false
|
||||
specifications:
|
||||
- name: x264
|
||||
implementation: ReleaseTitleSpecification
|
||||
negate: false
|
||||
required: false
|
||||
fields:
|
||||
- name: value
|
||||
value: "(x|h)\\.?264"
|
||||
@@ -0,0 +1,9 @@
|
||||
include_custom_format_when_renaming: false
|
||||
specifications:
|
||||
- name: x265
|
||||
implementation: ReleaseTitleSpecification
|
||||
negate: false
|
||||
required: false
|
||||
fields:
|
||||
- name: value
|
||||
value: "(((x|h)\\.?265)|(HEVC))"
|
||||
@@ -0,0 +1,23 @@
|
||||
include_custom_format_when_renaming: false
|
||||
specifications:
|
||||
- name: hdr10
|
||||
implementation: ReleaseTitleSpecification
|
||||
negate: false
|
||||
required: true
|
||||
fields:
|
||||
- name: value
|
||||
value: "hdr10"
|
||||
- name: x265
|
||||
implementation: ReleaseTitleSpecification
|
||||
negate: false
|
||||
required: true
|
||||
fields:
|
||||
- name: value
|
||||
value: "(((x|h)\\.?265)|(HEVC))"
|
||||
- name: Surround Sound
|
||||
implementation: ReleaseTitleSpecification
|
||||
negate: false
|
||||
required: true
|
||||
fields:
|
||||
- name: value
|
||||
value: "DTS.?(HD|ES|X(?!\\D))|TRUEHD|ATMOS|DD(\\+|P).?([5-9])|EAC3.?([5-9])"
|
||||
@@ -0,0 +1,30 @@
|
||||
include_custom_format_when_renaming: false
|
||||
specifications:
|
||||
- name: 10bit
|
||||
implementation: ReleaseTitleSpecification
|
||||
negate: false
|
||||
required: true
|
||||
fields:
|
||||
- name: value
|
||||
value: "10bit"
|
||||
- name: hvec
|
||||
implementation: ReleaseTitleSpecification
|
||||
negate: false
|
||||
required: false
|
||||
fields:
|
||||
- name: value
|
||||
value: "hvec"
|
||||
- name: x265
|
||||
implementation: ReleaseTitleSpecification
|
||||
negate: false
|
||||
required: true
|
||||
fields:
|
||||
- name: value
|
||||
value: "(((x|h)\\.?265)|(HEVC))"
|
||||
- name: "release_iVy: iVy"
|
||||
implementation: ReleaseGroupSpecification
|
||||
negate: false
|
||||
required: true
|
||||
fields:
|
||||
- name: value
|
||||
value: "-iVy$"
|
||||
@@ -0,0 +1,9 @@
|
||||
include_custom_format_when_renaming: false
|
||||
specifications:
|
||||
- name: "AsmoFuscated "
|
||||
implementation: ReleaseGroupSpecification
|
||||
negate: false
|
||||
required: false
|
||||
fields:
|
||||
- name: value
|
||||
value: "AsmoFuscated$"
|
||||
@@ -0,0 +1,9 @@
|
||||
include_custom_format_when_renaming: false
|
||||
specifications:
|
||||
- name: d3g
|
||||
implementation: ReleaseGroupSpecification
|
||||
negate: false
|
||||
required: false
|
||||
fields:
|
||||
- name: value
|
||||
value: "d3g$"
|
||||
@@ -0,0 +1,9 @@
|
||||
include_custom_format_when_renaming: false
|
||||
specifications:
|
||||
- name: iVy
|
||||
implementation: ReleaseGroupSpecification
|
||||
negate: false
|
||||
required: false
|
||||
fields:
|
||||
- name: value
|
||||
value: "iVy$"
|
||||
@@ -0,0 +1,9 @@
|
||||
include_custom_format_when_renaming: false
|
||||
specifications:
|
||||
- name: 1080p
|
||||
implementation: ResolutionSpecification
|
||||
negate: false
|
||||
required: false
|
||||
fields:
|
||||
- name: value
|
||||
value: "1080"
|
||||
@@ -0,0 +1,9 @@
|
||||
include_custom_format_when_renaming: false
|
||||
specifications:
|
||||
- name: 2160p
|
||||
implementation: ResolutionSpecification
|
||||
negate: false
|
||||
required: false
|
||||
fields:
|
||||
- name: value
|
||||
value: "2160"
|
||||
@@ -0,0 +1,9 @@
|
||||
include_custom_format_when_renaming: false
|
||||
specifications:
|
||||
- name: 720p
|
||||
implementation: ResolutionSpecification
|
||||
negate: false
|
||||
required: false
|
||||
fields:
|
||||
- name: value
|
||||
value: "720"
|
||||
@@ -0,0 +1,11 @@
|
||||
include_custom_format_when_renaming: false
|
||||
specifications:
|
||||
- name: size_0_800
|
||||
implementation: SizeSpecification
|
||||
negate: false
|
||||
required: false
|
||||
fields:
|
||||
- name: min
|
||||
value: "0"
|
||||
- name: max
|
||||
value: "0.8"
|
||||
@@ -0,0 +1,11 @@
|
||||
include_custom_format_when_renaming: false
|
||||
specifications:
|
||||
- name: size_1500_3000
|
||||
implementation: SizeSpecification
|
||||
negate: false
|
||||
required: false
|
||||
fields:
|
||||
- name: min
|
||||
value: "1.5"
|
||||
- name: max
|
||||
value: "3"
|
||||
@@ -0,0 +1,11 @@
|
||||
include_custom_format_when_renaming: false
|
||||
specifications:
|
||||
- name: size_3000_6000
|
||||
implementation: SizeSpecification
|
||||
negate: false
|
||||
required: false
|
||||
fields:
|
||||
- name: min
|
||||
value: "3"
|
||||
- name: max
|
||||
value: "6"
|
||||
@@ -0,0 +1,11 @@
|
||||
include_custom_format_when_renaming: false
|
||||
specifications:
|
||||
- name: size_6000_10000
|
||||
implementation: SizeSpecification
|
||||
negate: false
|
||||
required: false
|
||||
fields:
|
||||
- name: min
|
||||
value: "6"
|
||||
- name: max
|
||||
value: "10"
|
||||
@@ -0,0 +1,11 @@
|
||||
include_custom_format_when_renaming: false
|
||||
specifications:
|
||||
- name: size_800_1500
|
||||
implementation: SizeSpecification
|
||||
negate: false
|
||||
required: false
|
||||
fields:
|
||||
- name: min
|
||||
value: "0.8"
|
||||
- name: max
|
||||
value: "1.5"
|
||||
@@ -0,0 +1,9 @@
|
||||
include_custom_format_when_renaming: false
|
||||
specifications:
|
||||
- name: bluray
|
||||
implementation: SourceSpecification
|
||||
negate: false
|
||||
required: false
|
||||
fields:
|
||||
- name: value
|
||||
value: "6"
|
||||
@@ -0,0 +1,9 @@
|
||||
include_custom_format_when_renaming: false
|
||||
specifications:
|
||||
- name: hdtv
|
||||
implementation: SourceSpecification
|
||||
negate: false
|
||||
required: false
|
||||
fields:
|
||||
- name: value
|
||||
value: "1"
|
||||
@@ -0,0 +1,16 @@
|
||||
include_custom_format_when_renaming: false
|
||||
specifications:
|
||||
- name: webdl
|
||||
implementation: SourceSpecification
|
||||
negate: false
|
||||
required: false
|
||||
fields:
|
||||
- name: value
|
||||
value: "3"
|
||||
- name: webrip
|
||||
implementation: SourceSpecification
|
||||
negate: false
|
||||
required: false
|
||||
fields:
|
||||
- name: value
|
||||
value: "4"
|
||||
@@ -0,0 +1,9 @@
|
||||
enable_usenet: true
|
||||
enable_torrent: true
|
||||
preferred_protocol: usenet
|
||||
usenet_delay: 0
|
||||
torrent_delay: 0
|
||||
bypass_if_highest_quality: true
|
||||
bypass_if_above_custom_format_score: false
|
||||
minimum_custom_format_score: 0
|
||||
tags: []
|
||||
@@ -0,0 +1,10 @@
|
||||
enable: true
|
||||
priority: 1
|
||||
host: nzbget.service.consul
|
||||
port: 443
|
||||
use_ssl: true
|
||||
username: svc_nzbsubmit
|
||||
password: ""
|
||||
tv_category: tvseries
|
||||
remove_completed_downloads: true
|
||||
remove_failed_downloads: true
|
||||
@@ -0,0 +1,15 @@
|
||||
enable_automatic_search: true
|
||||
enable_interactive_search: true
|
||||
enable_rss: true
|
||||
priority: 25
|
||||
base_url: "https://api.nzbgeek.info"
|
||||
api_path: "/api"
|
||||
api_key: ""
|
||||
categories:
|
||||
- 5040
|
||||
- 5045
|
||||
- 5060
|
||||
- 5070
|
||||
- 5080
|
||||
anime_categories: []
|
||||
season_search_maximum_single_episode_age: 0
|
||||
@@ -0,0 +1,17 @@
|
||||
enable_automatic_search: true
|
||||
enable_interactive_search: true
|
||||
enable_rss: true
|
||||
priority: 25
|
||||
base_url: "https://prowlarr.service.consul/1/"
|
||||
api_path: "/api"
|
||||
api_key: ""
|
||||
categories:
|
||||
- 5000
|
||||
- 5020
|
||||
- 5030
|
||||
- 5040
|
||||
- 5045
|
||||
- 5050
|
||||
anime_categories:
|
||||
- 5070
|
||||
season_search_maximum_single_episode_age: 0
|
||||
@@ -0,0 +1,15 @@
|
||||
host: jellyfin.service.consul
|
||||
port: 443
|
||||
use_ssl: true
|
||||
api_key: ""
|
||||
notify: false
|
||||
update_library: true
|
||||
on_grab: true
|
||||
on_download: true
|
||||
on_upgrade: true
|
||||
on_rename: true
|
||||
on_series_add: true
|
||||
on_series_delete: true
|
||||
on_episode_file_delete: true
|
||||
on_episode_file_delete_for_upgrade: true
|
||||
on_application_update: true
|
||||
@@ -0,0 +1,105 @@
|
||||
upgrade_allowed: true
|
||||
cutoff: 7
|
||||
cutoff_format_score: 5000
|
||||
min_format_score: 0
|
||||
quality_groups:
|
||||
- id: 4
|
||||
qualities:
|
||||
- id: 4
|
||||
name: HDTV-720p
|
||||
source: television
|
||||
resolution: 720
|
||||
- id: 9
|
||||
qualities:
|
||||
- id: 9
|
||||
name: HDTV-1080p
|
||||
source: television
|
||||
resolution: 1080
|
||||
- id: 14
|
||||
qualities:
|
||||
- id: 14
|
||||
name: WEBRip-720p
|
||||
source: webRip
|
||||
resolution: 720
|
||||
- id: 5
|
||||
qualities:
|
||||
- id: 5
|
||||
name: WEBDL-720p
|
||||
source: web
|
||||
resolution: 720
|
||||
- id: 6
|
||||
qualities:
|
||||
- id: 6
|
||||
name: Bluray-720p
|
||||
source: bluray
|
||||
resolution: 720
|
||||
- id: 15
|
||||
qualities:
|
||||
- id: 15
|
||||
name: WEBRip-1080p
|
||||
source: webRip
|
||||
resolution: 1080
|
||||
- id: 3
|
||||
qualities:
|
||||
- id: 3
|
||||
name: WEBDL-1080p
|
||||
source: web
|
||||
resolution: 1080
|
||||
- id: 7
|
||||
qualities:
|
||||
- id: 7
|
||||
name: Bluray-1080p
|
||||
source: bluray
|
||||
resolution: 1080
|
||||
format_items:
|
||||
- name: release_AsmoFuscated
|
||||
format: release_AsmoFuscated
|
||||
score: 50
|
||||
- name: release_d3g
|
||||
format: release_d3g
|
||||
score: 50
|
||||
- name: release_iVy
|
||||
format: release_iVy
|
||||
score: 2000
|
||||
- name: format_av1
|
||||
format: format_av1
|
||||
score: -1000
|
||||
- name: size_0_800
|
||||
format: size_0_800
|
||||
score: 50
|
||||
- name: source_hdtv
|
||||
format: source_hdtv
|
||||
score: 50
|
||||
- name: source_webdl
|
||||
format: source_webdl
|
||||
score: 100
|
||||
- name: source_bluray
|
||||
format: source_bluray
|
||||
score: 200
|
||||
- name: size_3000_6000
|
||||
format: size_3000_6000
|
||||
score: 100
|
||||
- name: size_1500_3000
|
||||
format: size_1500_3000
|
||||
score: 200
|
||||
- name: size_800_1500
|
||||
format: size_800_1500
|
||||
score: 600
|
||||
- name: hvec_10bit
|
||||
format: hvec_10bit
|
||||
score: 100
|
||||
- name: resolution_2160p
|
||||
format: resolution_2160p
|
||||
score: -1000
|
||||
- name: resolution_720p
|
||||
format: resolution_720p
|
||||
score: 50
|
||||
- name: resolution_1080p
|
||||
format: resolution_1080p
|
||||
score: 500
|
||||
- name: format_x264
|
||||
format: format_x264
|
||||
score: -500
|
||||
- name: format_x265
|
||||
format: format_x265
|
||||
score: 1000
|
||||
@@ -0,0 +1,132 @@
|
||||
upgrade_allowed: true
|
||||
cutoff: 19
|
||||
cutoff_format_score: 5000
|
||||
min_format_score: 0
|
||||
quality_groups:
|
||||
- id: 4
|
||||
qualities:
|
||||
- id: 4
|
||||
name: HDTV-720p
|
||||
source: television
|
||||
resolution: 720
|
||||
- id: 9
|
||||
qualities:
|
||||
- id: 9
|
||||
name: HDTV-1080p
|
||||
source: television
|
||||
resolution: 1080
|
||||
- id: 14
|
||||
qualities:
|
||||
- id: 14
|
||||
name: WEBRip-720p
|
||||
source: webRip
|
||||
resolution: 720
|
||||
- id: 5
|
||||
qualities:
|
||||
- id: 5
|
||||
name: WEBDL-720p
|
||||
source: web
|
||||
resolution: 720
|
||||
- id: 6
|
||||
qualities:
|
||||
- id: 6
|
||||
name: Bluray-720p
|
||||
source: bluray
|
||||
resolution: 720
|
||||
- id: 15
|
||||
qualities:
|
||||
- id: 15
|
||||
name: WEBRip-1080p
|
||||
source: webRip
|
||||
resolution: 1080
|
||||
- id: 3
|
||||
qualities:
|
||||
- id: 3
|
||||
name: WEBDL-1080p
|
||||
source: web
|
||||
resolution: 1080
|
||||
- id: 7
|
||||
qualities:
|
||||
- id: 7
|
||||
name: Bluray-1080p
|
||||
source: bluray
|
||||
resolution: 1080
|
||||
- id: 16
|
||||
qualities:
|
||||
- id: 16
|
||||
name: HDTV-2160p
|
||||
source: television
|
||||
resolution: 2160
|
||||
- id: 17
|
||||
qualities:
|
||||
- id: 17
|
||||
name: WEBRip-2160p
|
||||
source: webRip
|
||||
resolution: 2160
|
||||
- id: 18
|
||||
qualities:
|
||||
- id: 18
|
||||
name: WEBDL-2160p
|
||||
source: web
|
||||
resolution: 2160
|
||||
- id: 19
|
||||
qualities:
|
||||
- id: 19
|
||||
name: Bluray-2160p
|
||||
source: bluray
|
||||
resolution: 2160
|
||||
format_items:
|
||||
- name: hdr10
|
||||
format: hdr10
|
||||
score: 2000
|
||||
- name: release_AsmoFuscated
|
||||
format: release_AsmoFuscated
|
||||
score: 600
|
||||
- name: release_d3g
|
||||
format: release_d3g
|
||||
score: 1000
|
||||
- name: release_iVy
|
||||
format: release_iVy
|
||||
score: 400
|
||||
- name: format_av1
|
||||
format: format_av1
|
||||
score: -2000
|
||||
- name: source_hdtv
|
||||
format: source_hdtv
|
||||
score: 50
|
||||
- name: source_webdl
|
||||
format: source_webdl
|
||||
score: 100
|
||||
- name: source_bluray
|
||||
format: source_bluray
|
||||
score: 200
|
||||
- name: size_3000_6000
|
||||
format: size_3000_6000
|
||||
score: 300
|
||||
- name: size_6000_10000
|
||||
format: size_6000_10000
|
||||
score: 400
|
||||
- name: size_1500_3000
|
||||
format: size_1500_3000
|
||||
score: 200
|
||||
- name: size_800_1500
|
||||
format: size_800_1500
|
||||
score: 100
|
||||
- name: hvec_10bit
|
||||
format: hvec_10bit
|
||||
score: 500
|
||||
- name: resolution_2160p
|
||||
format: resolution_2160p
|
||||
score: 500
|
||||
- name: resolution_720p
|
||||
format: resolution_720p
|
||||
score: 50
|
||||
- name: resolution_1080p
|
||||
format: resolution_1080p
|
||||
score: 150
|
||||
- name: format_x265
|
||||
format: format_x265
|
||||
score: 1000
|
||||
- name: format_x264
|
||||
format: format_x264
|
||||
score: -1000
|
||||
@@ -0,0 +1,29 @@
|
||||
upgrade_allowed: false
|
||||
cutoff: 1
|
||||
cutoff_format_score: 0
|
||||
min_format_score: 0
|
||||
quality_groups:
|
||||
- id: 1
|
||||
qualities:
|
||||
- id: 1
|
||||
name: SDTV
|
||||
source: television
|
||||
resolution: 480
|
||||
- id: 1000
|
||||
name: "WEB 480p"
|
||||
qualities:
|
||||
- id: 12
|
||||
name: WEBRip-480p
|
||||
source: webRip
|
||||
resolution: 480
|
||||
- id: 8
|
||||
name: WEBDL-480p
|
||||
source: web
|
||||
resolution: 480
|
||||
- id: 2
|
||||
qualities:
|
||||
- id: 2
|
||||
name: DVD
|
||||
source: dvd
|
||||
resolution: 480
|
||||
format_items: []
|
||||
@@ -0,0 +1 @@
|
||||
path: "/shared/media/tvseries"
|
||||
Reference in New Issue
Block a user