mirror of
https://github.com/natelandau/ansible-homelab-config.git
synced 2025-11-18 01:43:40 -05:00
fix(recyclarr): move config to Nomad task template
This commit is contained in:
@@ -32,7 +32,8 @@ job "recyclarr" {
|
|||||||
task "recyclarr" {
|
task "recyclarr" {
|
||||||
|
|
||||||
env {
|
env {
|
||||||
TZ = "America/New_York"
|
TZ = "America/New_York"
|
||||||
|
RECYCLARR_APP_DATA = "/local"
|
||||||
}
|
}
|
||||||
|
|
||||||
// user = "${meta.PUID}:${meta.PGID}"
|
// user = "${meta.PUID}:${meta.PGID}"
|
||||||
@@ -41,95 +42,167 @@ job "recyclarr" {
|
|||||||
image = "ghcr.io/recyclarr/recyclarr:4"
|
image = "ghcr.io/recyclarr/recyclarr:4"
|
||||||
hostname = "${NOMAD_TASK_NAME}"
|
hostname = "${NOMAD_TASK_NAME}"
|
||||||
init = true
|
init = true
|
||||||
volumes = [
|
|
||||||
"${meta.nfsStorageRoot}/pi-cluster/${NOMAD_TASK_NAME}:/config"
|
|
||||||
]
|
|
||||||
} // docker config
|
} // docker config
|
||||||
|
|
||||||
// template {
|
template {
|
||||||
// destination = "local/recyclarr.yml"
|
destination = "local/recyclarr.yml"
|
||||||
// env = false
|
env = false
|
||||||
// change_mode = "restart"
|
change_mode = "restart"
|
||||||
// perms = "644"
|
perms = "644"
|
||||||
// data = <<-EOH
|
data = <<-EOH
|
||||||
// ---
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/recyclarr/recyclarr/master/schemas/config-schema.json
|
||||||
// # yaml-language-server: $schema=https://raw.githubusercontent.com/recyclarr/recyclarr/master/schemas/config-schema.json
|
|
||||||
|
|
||||||
// # A starter config to use with Recyclarr. Most values are set to "reasonable defaults". Update the
|
# A starter config to use with Recyclarr. Most values are set to "reasonable defaults". Update the
|
||||||
// # values below as needed for your instance. You will be required to update the API Key and URL for
|
# values below as needed for your instance. You will be required to update the API Key and URL for
|
||||||
// # each instance you want to use.
|
# each instance you want to use.
|
||||||
// #
|
#
|
||||||
// # Many optional settings have been omitted to keep this template simple.
|
# Many optional settings have been omitted to keep this template simple. Note that there's no "one
|
||||||
// #
|
# size fits all" configuration. Please refer to the guide to understand how to build the appropriate
|
||||||
// # For more details on the configuration, see the Configuration Reference on the wiki here:
|
# configuration based on your hardware setup and capabilities.
|
||||||
// # https://github.com/recyclarr/recyclarr/wiki/Configuration-Reference
|
#
|
||||||
|
# For any lines that mention uncommenting YAML, you simply need to remove the leading hash (`#`).
|
||||||
|
# The YAML comments will already be at the appropriate indentation.
|
||||||
|
#
|
||||||
|
# For more details on the configuration, see the Configuration Reference on the wiki here:
|
||||||
|
# https://recyclarr.dev/wiki/reference/config-reference
|
||||||
|
|
||||||
// # Configuration specific to Sonarr
|
# Configuration specific to Sonarr
|
||||||
// sonarr:
|
sonarr:
|
||||||
// # Set the URL/API Key to your actual instance
|
series:
|
||||||
|
base_url: https://sonarr.{{ homelab_domain_name }}/
|
||||||
|
api_key: a6cedb325b5645eeb08acb06a42b7746
|
||||||
|
delete_old_custom_formats: true
|
||||||
|
|
||||||
// {% raw -%}
|
# Quality definitions from the guide to sync to Sonarr. Choices: series, anime
|
||||||
// - base_url: http://{{ range service "sonarr" }}{{ .Address }}:{{ .Port }}{{ end }}
|
quality_definition:
|
||||||
// api_key: f7e74ba6c80046e39e076a27af5a8444
|
type: series
|
||||||
// {% endraw -%}
|
|
||||||
|
|
||||||
// # Quality definitions from the guide to sync to Sonarr. Choice: anime, series, hybrid
|
# Release profiles from the guide to sync to Sonarr v3 (Sonarr v4 does not use this!)
|
||||||
// quality_definition: series
|
# Use `recyclarr list release-profiles` for values you can put here.
|
||||||
|
# https://trash-guides.info/Sonarr/Sonarr-Release-Profile-RegEx/
|
||||||
|
release_profiles:
|
||||||
|
- trash_ids:
|
||||||
|
- EBC725268D687D588A20CBC5F97E538B # Low Quality Groups
|
||||||
|
- 1B018E0C53EC825085DD911102E2CA36 # Release Sources (Streaming Service)
|
||||||
|
- 71899E6C303A07AF0E4746EFF9873532 # P2P Groups + Repack/Proper
|
||||||
|
strict_negative_scores: false
|
||||||
|
|
||||||
// # Release profiles from the guide to sync to Sonarr.
|
- trash_ids:
|
||||||
// # You can optionally add tags and make negative scores strictly ignored
|
- 76e060895c5b8a765c310933da0a5357 # Optionals
|
||||||
// release_profiles:
|
filter:
|
||||||
// # Series
|
include:
|
||||||
// - trash_ids:
|
- cec8880b847dd5d31d29167ee0112b57 # Golden rule
|
||||||
// - EBC725268D687D588A20CBC5F97E538B # Low Quality Groups
|
- 436f5a7d08fbf02ba25cb5e5dfe98e55 # Ignore Dolby Vision without HDR10 fallback.
|
||||||
// - 1B018E0C53EC825085DD911102E2CA36 # Release Sources (Streaming Service)
|
# - f3f0f3691c6a1988d4a02963e69d11f2 # Ignore The Group -SCENE
|
||||||
// - 71899E6C303A07AF0E4746EFF9873532 # P2P Groups + Repack/Proper
|
# - 5bc23c3a055a1a5d8bbe4fb49d80e0cb # Ignore so called scene releases
|
||||||
// # Anime (Uncomment below if you want it)
|
- 538bad00ee6f8aced8e0db5218b8484c # Ignore Bad Dual Audio Groups
|
||||||
// # - trash_ids:
|
- 4861d8238f9234606df6721df6e27deb # Ignore AV1
|
||||||
// # - d428eda85af1df8904b4bbe4fc2f537c # Anime - First release profile
|
- bc7a6383cbe88c3ee2d6396e1aacc0b3 # Prefer HDR
|
||||||
// # - 6cd9e10bb5bb4c63d2d7cd3279924c7b # Anime - Second release profile
|
- 6f2aefa61342a63387f2a90489e90790 # Dislike retags: rartv, rarbg, eztv, TGx
|
||||||
|
- 19cd5ecc0a24bf493a75e80a51974cdd # Dislike retagged groups
|
||||||
|
- 6a7b462c6caee4a991a9d8aa38ce2405 # Dislike release ending: en
|
||||||
|
- 236a3626a07cacf5692c73cc947bc280 # Dislike release containing: 1-
|
||||||
|
# - fa47da3377076d82d07c4e95b3f13d07 # Prefer Dolby Vision
|
||||||
|
|
||||||
// # Configuration specific to Radarr.
|
# Configuration specific to Radarr.
|
||||||
// radarr:
|
radarr:
|
||||||
// # Set the URL/API Key to your actual instance
|
movies:
|
||||||
// {% raw -%}
|
# Set the URL/API Key to your actual instance
|
||||||
// - base_url: http://{{ range service "radarr" }}{{ .Address }}:{{ .Port }}{{ end }}
|
base_url: https://radarr.{{ homelab_domain_name }}/
|
||||||
// api_key: f7e74ba6c80046e39e076a27af5a8444
|
api_key: 53060417cccf4978bf7384c7869616f1
|
||||||
// {% endraw -%}
|
delete_old_custom_formats: true
|
||||||
|
|
||||||
// # Which quality definition in the guide to sync to Radarr. Only choice right now is 'movie'
|
# Which quality definition in the guide to sync to Radarr. Only choice right now is 'movie'
|
||||||
// quality_definition:
|
quality_definition:
|
||||||
// type: movie
|
type: movie
|
||||||
|
preferred_ratio: 0.5
|
||||||
|
|
||||||
// # Set to 'true' to automatically remove custom formats from Radarr when they are removed from
|
custom_formats:
|
||||||
// # the guide or your configuration. This will NEVER delete custom formats you manually created!
|
# Use `recyclarr list custom-formats radarr` for values you can put here.
|
||||||
// delete_old_custom_formats: false
|
# https://trash-guides.info/Radarr/Radarr-collection-of-custom-formats/
|
||||||
|
|
||||||
// custom_formats:
|
- trash_ids:
|
||||||
// # A list of custom formats to sync to Radarr. Must match the "trash_id" in the guide JSON.
|
# Movie versions
|
||||||
// - trash_ids:
|
- eca37840c13c6ef2dd0262b141a5482f # 4K Remaster
|
||||||
// - ed38b889b31be83fda192888e2286d83 # BR-DISK
|
- 570bc9ebecd92723d2d21500f4be314c # Remaster
|
||||||
// - 90cedc1fea7ea5d11298bebd3d1d3223 # EVO (no WEBDL)
|
- 0f12c086e289cf966fa5948eac571f44 # Hybrid
|
||||||
// - 90a6f9a284dff5103f6346090e6280c8 # LQ
|
- 9d27d9d2181838f76dee150882bdc58c # Masters of Cinema
|
||||||
// - dc98083864ea246d05a42df0d05f81cc # x265 (720/1080p)
|
- e0c07d59beb37348e975a930d5e50319 # Criterion Collection
|
||||||
// - b8cd450cbfa689c0259a01d9e29ba3d6 # 3D
|
- 957d0f44b592285f26449575e8b1167e # Special Edition
|
||||||
|
- eecf3a857724171f968a66cb5719e152 # IMAX
|
||||||
|
- 9f6cbff8cfe4ebbc1bde14c7b7bec0de # IMAX Enhanced
|
||||||
|
# Unwanted
|
||||||
|
- b8cd450cbfa689c0259a01d9e29ba3d6 # 3D
|
||||||
|
- ed38b889b31be83fda192888e2286d83 # BR-DISK
|
||||||
|
- 90a6f9a284dff5103f6346090e6280c8 # LQ
|
||||||
|
- bfd8eb01832d646a0a89c4deb46f8564 # Upscaled
|
||||||
|
- 90cedc1fea7ea5d11298bebd3d1d3223 # EVO (no WEBDL)
|
||||||
|
- 923b6abef9b17f937fab56cfcf89e1f1 # DV (WEBDL)
|
||||||
|
- b6832f586342ef70d9c128d40c07b872 # Bad Dual Groups
|
||||||
|
- ae9b7c9ebde1f3bd336a8cbd1ec4c5e5 # No-RlsGroup
|
||||||
|
- 7357cf5161efbf8c4d5d0c30b4815ee2 # Obfuscated
|
||||||
|
- 5c44f52a8714fdd79bb4d98e2673be1f # Retags
|
||||||
|
- c465ccc73923871b3eb1802042331306 # Line/Mic Dubbed
|
||||||
|
# Misc
|
||||||
|
- e7718d7a3ce595f289bfee26adc178f5 # Repack/Proper
|
||||||
|
- ae43b294509409a6a13919dedd4764c4 # Repack2
|
||||||
|
# HQ Release Groups
|
||||||
|
- ed27ebfef2f323e964fb1f61391bcb35 # HD Bluray Tier 01
|
||||||
|
- c20c8647f2746a1f4c4262b0fbbeeeae # HD Bluray Tier 02
|
||||||
|
- c20f169ef63c5f40c2def54abaf4438e # WEB Tier 01
|
||||||
|
- 403816d65392c79236dcb6dd591aeda4 # WEB Tier 02
|
||||||
|
- af94e0fe497124d1f9ce732069ec8c3b # WEB Tier 03
|
||||||
|
quality_profiles:
|
||||||
|
- name: "720p/1080p"
|
||||||
|
reset_unmatched_scores: true
|
||||||
|
- name: "720p/1080p Remux"
|
||||||
|
reset_unmatched_scores: true
|
||||||
|
|
||||||
// # Uncomment the below properties to specify one or more quality profiles that should be
|
# HDR FORMATS
|
||||||
// # updated with scores from the guide for each custom format. Without this, custom formats
|
# ########################
|
||||||
// # are synced to Radarr but no scores are set in any quality profiles.
|
- trash_ids:
|
||||||
// # quality_profiles:
|
- 3a3ff47579026e76d6504ebea39390de # Remux Tier 01
|
||||||
// # - name: Quality Profile 1
|
- 9f98181fe5a3fbeb0cc29340da2a468a # Remux Tier 02
|
||||||
// # - name: Quality Profile 2
|
- e61e28db95d22bedcadf030b8f156d96 # HDR
|
||||||
// # #score: -9999 # Optional score to assign to all CFs. Overrides scores in the guide.
|
- 2a4d9069cc1fe3242ff9bdaebed239bb # HDR (undefined)
|
||||||
// # #reset_unmatched_scores: true # Optionally set other scores to 0 if they are not listed in 'names' above.
|
quality_profiles:
|
||||||
// EOH
|
- name: "720p/1080p"
|
||||||
// }
|
score: -100
|
||||||
|
- name: "720p/1080p Remux"
|
||||||
|
|
||||||
|
# AUDIO FORMATS
|
||||||
|
# ########################
|
||||||
|
- trash_ids:
|
||||||
|
- 6fd7b090c3f7317502ab3b63cc7f51e3 # 6.1 Surround
|
||||||
|
- e77382bcfeba57cb83744c9c5449b401 # 7.1 Surround
|
||||||
|
- f2aacebe2c932337fe352fa6e42c1611 # 9.1 Surround
|
||||||
|
quality_profiles:
|
||||||
|
- name: "720p/1080p"
|
||||||
|
score: -50
|
||||||
|
- name: "720p/1080p Remux"
|
||||||
|
score: -50
|
||||||
|
|
||||||
|
- trash_ids:
|
||||||
|
- 89dac1be53d5268a7e10a19d3c896826 # 2.0 Stereo
|
||||||
|
quality_profiles:
|
||||||
|
- name: "720p/1080p"
|
||||||
|
score: 120
|
||||||
|
|
||||||
|
- trash_ids:
|
||||||
|
- 77ff61788dfe1097194fd8743d7b4524 # 5.1 Surround
|
||||||
|
quality_profiles:
|
||||||
|
- name: "720p/1080p"
|
||||||
|
score: 80
|
||||||
|
- name: "720p/1080p Remux"
|
||||||
|
score: 80
|
||||||
|
EOH
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// resources {
|
resources {
|
||||||
// cpu = 100 # MHz
|
cpu = 100 # MHz
|
||||||
// memory = 300 # MB
|
memory = 300 # MB
|
||||||
// } // resources
|
} // resources
|
||||||
|
|
||||||
} // task
|
} // task
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user