feat: initial prowlarr terraform configuration
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
locals {
|
||||
config_files = fileset(".", "**/*.yaml")
|
||||
|
||||
all_configs = {
|
||||
for file_path in local.config_files :
|
||||
file_path => yamldecode(file(file_path))
|
||||
}
|
||||
|
||||
config = {
|
||||
indexers = {
|
||||
for file_path, content in local.all_configs :
|
||||
trimsuffix(basename(file_path), ".yaml") => content
|
||||
if startswith(file_path, "indexer/")
|
||||
}
|
||||
download_clients = {
|
||||
for file_path, content in local.all_configs :
|
||||
trimsuffix(basename(file_path), ".yaml") => content
|
||||
if startswith(file_path, "download_client/")
|
||||
}
|
||||
tags = {
|
||||
for file_path, content in local.all_configs :
|
||||
trimsuffix(basename(file_path), ".yaml") => content
|
||||
if startswith(file_path, "tag/")
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
enable: true
|
||||
priority: 1
|
||||
host: nzbget.service.consul
|
||||
port: 443
|
||||
use_ssl: true
|
||||
username: ""
|
||||
password: ""
|
||||
category: unknown
|
||||
tags: []
|
||||
categories:
|
||||
- name: tvseries
|
||||
categories:
|
||||
- 5000
|
||||
- name: movies
|
||||
categories:
|
||||
- 2000
|
||||
- name: books
|
||||
categories:
|
||||
- 3030
|
||||
- 7000
|
||||
- name: music
|
||||
categories:
|
||||
- 3010
|
||||
- 3040
|
||||
- 3050
|
||||
- 3060
|
||||
@@ -0,0 +1,17 @@
|
||||
enable: true
|
||||
app_profile_id: 1
|
||||
implementation: Newznab
|
||||
config_contract: NewznabSettings
|
||||
protocol: usenet
|
||||
tags: []
|
||||
fields:
|
||||
- name: baseUrl
|
||||
text_value: "https://api.nzbgeek.info"
|
||||
- name: apiPath
|
||||
text_value: "/api"
|
||||
- name: apiKey
|
||||
sensitive_value: ""
|
||||
- name: vipExpiration
|
||||
text_value: ""
|
||||
- name: baseSettings.limitsUnit
|
||||
number_value: 0
|
||||
@@ -0,0 +1 @@
|
||||
label: nzb
|
||||
Reference in New Issue
Block a user