Skip to content

devopsarr/terraform-sonarr-settings

Repository files navigation

terraform-sonarr-settings

Terraform module which creates basic configuration for Sonarr

Usage

It is important to export the provider credentials for this module to work. Following are required.

  1. SONARR_URL
  2. SONARR_API_TOKEN
module "settings" {
  source = "../.."

  preferred_protocol = "torrent"
  languages          = ["English", "Italian"]

  root_folder = "/tmp"
}

Requirements

Name Version
terraform >= 1.0
sonarr >= 2.1.0

Providers

Name Version
sonarr >= 2.1.0

Modules

No modules.

Resources

Name Type
sonarr_delay_profile.this resource
sonarr_download_client.this resource
sonarr_download_client_config.this resource
sonarr_indexer.this resource
sonarr_indexer_config.this resource
sonarr_language_profile.this resource
sonarr_media_management.this resource
sonarr_naming.this resource
sonarr_quality_profile.this resource
sonarr_root_folder.this resource
sonarr_tag.this resource

Inputs

Name Description Type Default Required
download_clients Download client list. map(any) {} no
episode_format Standard episode format. string "{Series Title} - S{season:00}E{episode:00} - {Episode Title} {Quality Full}" no
indexers Indexer list. map(any) {} no
languages List of languages. First one will be the cutoff language. list(string)
[
"English"
]
no
preferred_protocol Delay profile preferred protocol. string "torrent" no
root_folder Root folder. string n/a yes
season_folder_format Series folder naming format. string "Season {season}" no
series_folder_format Series folder naming format. string "{Series Title}" no

Outputs

No outputs.