fix: align config with imported state for zero-drift plan
This commit is contained in:
@@ -3,7 +3,7 @@ priority: 1
|
|||||||
host: nzbget.service.consul
|
host: nzbget.service.consul
|
||||||
port: 443
|
port: 443
|
||||||
use_ssl: true
|
use_ssl: true
|
||||||
username: ""
|
username: "svc_nzbsubmit"
|
||||||
password: ""
|
password: ""
|
||||||
movie_category: movies
|
movie_category: movies
|
||||||
remove_completed_downloads: true
|
remove_completed_downloads: true
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
name: "NZBgeek (Prowlarr)"
|
||||||
enable_automatic_search: true
|
enable_automatic_search: true
|
||||||
enable_interactive_search: true
|
enable_interactive_search: true
|
||||||
enable_rss: true
|
enable_rss: true
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
name: "Emby / Jellyfin"
|
||||||
host: jellyfin.service.consul
|
host: jellyfin.service.consul
|
||||||
port: 443
|
port: 443
|
||||||
use_ssl: true
|
use_ssl: true
|
||||||
|
|||||||
@@ -2,67 +2,62 @@ upgrade_allowed: true
|
|||||||
cutoff: 7
|
cutoff: 7
|
||||||
cutoff_format_score: 5000
|
cutoff_format_score: 5000
|
||||||
min_format_score: 0
|
min_format_score: 0
|
||||||
|
language:
|
||||||
|
id: -2
|
||||||
|
name: Original
|
||||||
quality_groups:
|
quality_groups:
|
||||||
- id: 20
|
- qualities:
|
||||||
qualities:
|
- id: 7
|
||||||
- id: 20
|
name: Bluray-1080p
|
||||||
name: Bluray-480p
|
|
||||||
source: bluray
|
source: bluray
|
||||||
resolution: 480
|
|
||||||
- id: 21
|
|
||||||
qualities:
|
|
||||||
- id: 21
|
|
||||||
name: Bluray-576p
|
|
||||||
source: bluray
|
|
||||||
resolution: 576
|
|
||||||
- id: 4
|
|
||||||
qualities:
|
|
||||||
- id: 4
|
|
||||||
name: HDTV-720p
|
|
||||||
source: tv
|
|
||||||
resolution: 720
|
|
||||||
- id: 5
|
|
||||||
qualities:
|
|
||||||
- id: 5
|
|
||||||
name: WEBDL-720p
|
|
||||||
source: webdl
|
|
||||||
resolution: 720
|
|
||||||
- id: 14
|
|
||||||
qualities:
|
|
||||||
- id: 14
|
|
||||||
name: WEBRip-720p
|
|
||||||
source: webrip
|
|
||||||
resolution: 720
|
|
||||||
- id: 6
|
|
||||||
qualities:
|
|
||||||
- id: 6
|
|
||||||
name: Bluray-720p
|
|
||||||
source: bluray
|
|
||||||
resolution: 720
|
|
||||||
- id: 9
|
|
||||||
qualities:
|
|
||||||
- id: 9
|
|
||||||
name: HDTV-1080p
|
|
||||||
source: tv
|
|
||||||
resolution: 1080
|
resolution: 1080
|
||||||
- id: 3
|
- id: 1002
|
||||||
|
name: "WEB 1080p"
|
||||||
qualities:
|
qualities:
|
||||||
- id: 3
|
- id: 3
|
||||||
name: WEBDL-1080p
|
name: WEBDL-1080p
|
||||||
source: webdl
|
source: webdl
|
||||||
resolution: 1080
|
resolution: 1080
|
||||||
- id: 15
|
|
||||||
qualities:
|
|
||||||
- id: 15
|
- id: 15
|
||||||
name: WEBRip-1080p
|
name: WEBRip-1080p
|
||||||
source: webrip
|
source: webrip
|
||||||
resolution: 1080
|
resolution: 1080
|
||||||
- id: 7
|
- qualities:
|
||||||
qualities:
|
- id: 9
|
||||||
- id: 7
|
name: HDTV-1080p
|
||||||
name: Bluray-1080p
|
source: tv
|
||||||
source: bluray
|
|
||||||
resolution: 1080
|
resolution: 1080
|
||||||
|
- qualities:
|
||||||
|
- id: 6
|
||||||
|
name: Bluray-720p
|
||||||
|
source: bluray
|
||||||
|
resolution: 720
|
||||||
|
- id: 1001
|
||||||
|
name: "WEB 720p"
|
||||||
|
qualities:
|
||||||
|
- id: 5
|
||||||
|
name: WEBDL-720p
|
||||||
|
source: webdl
|
||||||
|
resolution: 720
|
||||||
|
- id: 14
|
||||||
|
name: WEBRip-720p
|
||||||
|
source: webrip
|
||||||
|
resolution: 720
|
||||||
|
- qualities:
|
||||||
|
- id: 4
|
||||||
|
name: HDTV-720p
|
||||||
|
source: tv
|
||||||
|
resolution: 720
|
||||||
|
- qualities:
|
||||||
|
- id: 21
|
||||||
|
name: Bluray-576p
|
||||||
|
source: bluray
|
||||||
|
resolution: 576
|
||||||
|
- qualities:
|
||||||
|
- id: 20
|
||||||
|
name: Bluray-480p
|
||||||
|
source: bluray
|
||||||
|
resolution: 480
|
||||||
format_items:
|
format_items:
|
||||||
- name: x264
|
- name: x264
|
||||||
format: x264
|
format: x264
|
||||||
@@ -76,6 +71,3 @@ format_items:
|
|||||||
- name: 720p
|
- name: 720p
|
||||||
format: 720p
|
format: 720p
|
||||||
score: 200
|
score: 200
|
||||||
language:
|
|
||||||
id: 1
|
|
||||||
name: English
|
|
||||||
|
|||||||
@@ -2,25 +2,26 @@ upgrade_allowed: true
|
|||||||
cutoff: 19
|
cutoff: 19
|
||||||
cutoff_format_score: 5000
|
cutoff_format_score: 5000
|
||||||
min_format_score: 0
|
min_format_score: 0
|
||||||
|
language:
|
||||||
|
id: -2
|
||||||
|
name: Original
|
||||||
quality_groups:
|
quality_groups:
|
||||||
- id: 18
|
- qualities:
|
||||||
|
- id: 19
|
||||||
|
name: Bluray-2160p
|
||||||
|
source: bluray
|
||||||
|
resolution: 2160
|
||||||
|
- id: 1003
|
||||||
|
name: "WEB 2160p"
|
||||||
qualities:
|
qualities:
|
||||||
- id: 18
|
- id: 18
|
||||||
name: WEBDL-2160p
|
name: WEBDL-2160p
|
||||||
source: webdl
|
source: webdl
|
||||||
resolution: 2160
|
resolution: 2160
|
||||||
- id: 17
|
|
||||||
qualities:
|
|
||||||
- id: 17
|
- id: 17
|
||||||
name: WEBRip-2160p
|
name: WEBRip-2160p
|
||||||
source: webrip
|
source: webrip
|
||||||
resolution: 2160
|
resolution: 2160
|
||||||
- id: 19
|
|
||||||
qualities:
|
|
||||||
- id: 19
|
|
||||||
name: Bluray-2160p
|
|
||||||
source: bluray
|
|
||||||
resolution: 2160
|
|
||||||
format_items:
|
format_items:
|
||||||
- name: 2160p
|
- name: 2160p
|
||||||
format: 2160p
|
format: 2160p
|
||||||
@@ -34,6 +35,3 @@ format_items:
|
|||||||
- name: x264
|
- name: x264
|
||||||
format: x264
|
format: x264
|
||||||
score: -5000
|
score: -5000
|
||||||
language:
|
|
||||||
id: 1
|
|
||||||
name: English
|
|
||||||
|
|||||||
@@ -2,9 +2,12 @@ upgrade_allowed: true
|
|||||||
cutoff: 1002
|
cutoff: 1002
|
||||||
cutoff_format_score: 300
|
cutoff_format_score: 300
|
||||||
min_format_score: 300
|
min_format_score: 300
|
||||||
|
language:
|
||||||
|
id: 1
|
||||||
|
name: English
|
||||||
quality_groups:
|
quality_groups:
|
||||||
- id: 1002
|
- id: 1002
|
||||||
name: WEB 1080p
|
name: "WEB 1080p"
|
||||||
qualities:
|
qualities:
|
||||||
- id: 3
|
- id: 3
|
||||||
name: WEBDL-1080p
|
name: WEBDL-1080p
|
||||||
@@ -30,6 +33,3 @@ format_items:
|
|||||||
- name: 720p
|
- name: 720p
|
||||||
format: 720p
|
format: 720p
|
||||||
score: 300
|
score: 300
|
||||||
language:
|
|
||||||
id: 1
|
|
||||||
name: English
|
|
||||||
|
|||||||
+17
-4
@@ -12,6 +12,7 @@ resource "radarr_quality_profile" "this" {
|
|||||||
cutoff = each.value.cutoff
|
cutoff = each.value.cutoff
|
||||||
cutoff_format_score = lookup(each.value, "cutoff_format_score", 0)
|
cutoff_format_score = lookup(each.value, "cutoff_format_score", 0)
|
||||||
min_format_score = lookup(each.value, "min_format_score", 0)
|
min_format_score = lookup(each.value, "min_format_score", 0)
|
||||||
|
min_upgrade_format_score = lookup(each.value, "min_upgrade_format_score", 0)
|
||||||
quality_groups = each.value.quality_groups
|
quality_groups = each.value.quality_groups
|
||||||
language = each.value.language
|
language = each.value.language
|
||||||
|
|
||||||
@@ -26,7 +27,7 @@ resource "radarr_quality_profile" "this" {
|
|||||||
|
|
||||||
resource "radarr_download_client_nzbget" "this" {
|
resource "radarr_download_client_nzbget" "this" {
|
||||||
for_each = var.download_clients
|
for_each = var.download_clients
|
||||||
name = each.key
|
name = lookup(each.value, "name", each.key)
|
||||||
enable = lookup(each.value, "enable", true)
|
enable = lookup(each.value, "enable", true)
|
||||||
priority = lookup(each.value, "priority", 1)
|
priority = lookup(each.value, "priority", 1)
|
||||||
host = each.value.host
|
host = each.value.host
|
||||||
@@ -37,11 +38,15 @@ resource "radarr_download_client_nzbget" "this" {
|
|||||||
movie_category = lookup(each.value, "movie_category", "")
|
movie_category = lookup(each.value, "movie_category", "")
|
||||||
remove_completed_downloads = lookup(each.value, "remove_completed_downloads", true)
|
remove_completed_downloads = lookup(each.value, "remove_completed_downloads", true)
|
||||||
remove_failed_downloads = lookup(each.value, "remove_failed_downloads", true)
|
remove_failed_downloads = lookup(each.value, "remove_failed_downloads", true)
|
||||||
|
|
||||||
|
lifecycle {
|
||||||
|
ignore_changes = [password]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "radarr_indexer_newznab" "this" {
|
resource "radarr_indexer_newznab" "this" {
|
||||||
for_each = var.indexers
|
for_each = var.indexers
|
||||||
name = each.key
|
name = lookup(each.value, "name", each.key)
|
||||||
enable_automatic_search = lookup(each.value, "enable_automatic_search", true)
|
enable_automatic_search = lookup(each.value, "enable_automatic_search", true)
|
||||||
enable_interactive_search = lookup(each.value, "enable_interactive_search", true)
|
enable_interactive_search = lookup(each.value, "enable_interactive_search", true)
|
||||||
enable_rss = lookup(each.value, "enable_rss", true)
|
enable_rss = lookup(each.value, "enable_rss", true)
|
||||||
@@ -50,15 +55,19 @@ resource "radarr_indexer_newznab" "this" {
|
|||||||
api_path = lookup(each.value, "api_path", "/api")
|
api_path = lookup(each.value, "api_path", "/api")
|
||||||
api_key = lookup(each.value, "api_key", "")
|
api_key = lookup(each.value, "api_key", "")
|
||||||
categories = lookup(each.value, "categories", [])
|
categories = lookup(each.value, "categories", [])
|
||||||
|
|
||||||
|
lifecycle {
|
||||||
|
ignore_changes = [api_key]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "radarr_notification_emby" "this" {
|
resource "radarr_notification_emby" "this" {
|
||||||
for_each = var.notifications
|
for_each = var.notifications
|
||||||
name = each.key
|
name = lookup(each.value, "name", each.key)
|
||||||
host = each.value.host
|
host = each.value.host
|
||||||
port = each.value.port
|
port = each.value.port
|
||||||
use_ssl = lookup(each.value, "use_ssl", false)
|
use_ssl = lookup(each.value, "use_ssl", false)
|
||||||
api_key = each.value.api_key
|
api_key = lookup(each.value, "api_key", "")
|
||||||
notify = lookup(each.value, "notify", false)
|
notify = lookup(each.value, "notify", false)
|
||||||
update_library = lookup(each.value, "update_library", true)
|
update_library = lookup(each.value, "update_library", true)
|
||||||
|
|
||||||
@@ -70,6 +79,10 @@ resource "radarr_notification_emby" "this" {
|
|||||||
on_movie_file_delete = lookup(each.value, "on_movie_file_delete", true)
|
on_movie_file_delete = lookup(each.value, "on_movie_file_delete", true)
|
||||||
on_movie_file_delete_for_upgrade = lookup(each.value, "on_movie_file_delete_for_upgrade", true)
|
on_movie_file_delete_for_upgrade = lookup(each.value, "on_movie_file_delete_for_upgrade", true)
|
||||||
on_application_update = lookup(each.value, "on_application_update", true)
|
on_application_update = lookup(each.value, "on_application_update", true)
|
||||||
|
|
||||||
|
lifecycle {
|
||||||
|
ignore_changes = [api_key]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "radarr_delay_profile" "this" {
|
resource "radarr_delay_profile" "this" {
|
||||||
|
|||||||
Reference in New Issue
Block a user