Add Radarr support

This commit is contained in:
David Stephens 2018-04-10 22:57:28 +01:00
parent 1d84345457
commit 77d62deb76
4 changed files with 48 additions and 8 deletions

View file

@ -3,11 +3,12 @@
After getting burned by broken FreeNAS updates one too many times, I figured I could do a much better job myself using
just a stock Ubuntu install, some clever Ansible config and a bunch of docker containers.
## What This Sets Up
* Any number of Samba shares for you to store your stuff
* A BitTorrent client
* Various media management tools - Sonarr, Sickrage, CouchPotato
* Various media management tools - Sonarr, Sickrage, CouchPotato, Radarr
* A Docker host with Portainer for image and container management
* Various ways to see stats about your NAS - Glances, dashboards in Grafana
* A backup tool - allows scheduled backups to Amazon S3, OneDrive, Dropbox etc
@ -22,6 +23,7 @@ just a stock Ubuntu install, some clever Ansible config and a bunch of docker co
- [Grafana](https://github.com/grafana/grafana) - Dashboarding tool
- [InfluxDB](https://github.com/influxdata/influxdb) - Time series database used for stats collection
- [Portainer](https://portainer.io/) for managing Docker and running custom images
- [Radarr](https://radarr.video/) for organising and downloading movies
- [Sickrage](https://sickrage.github.io/) for managing TV episodes
- [Sonarr](https://sonarr.tv/) for downloading and managing TV episodes
- [Telegraf](https://github.com/influxdata/telegraf) - Metrics collection agent

View file

@ -13,6 +13,7 @@ transmission_enabled: false
sonarr_enabled: true
sickrage_enabled: false
couchpotato_enabled: false
radarr_enabled: true
# System Management
portainer_enabled: true
@ -22,8 +23,9 @@ stats_enabled: true
# Backup & Restore
duplicati_enabled: true
# other stuff
znc_enabled: true
# IRC bouncer
znc_enabled: false
###
@ -146,6 +148,16 @@ sonarr_user_id: 0
sonarr_group_id: 0
###
### Radarr
###
radarr_movies_directory: "{{ movies_root }}"
radarr_download_directory: "{{ downloads_root }}"
radarr_data_directory: "{{ docker_home }}/radarr"
radarr_user_id: 0
radarr_group_id: 0
###
### Couchpotato
###
@ -193,4 +205,4 @@ znc_group_id: 0
telegraf_data_directory: "{{ docker_home }}/telegraf"
influxdb_data_directory: "{{ docker_home }}/influxdb"
grafana_data_directory: "{{ docker_home }}/grafana"
stat_collection_interval: 15s
stat_collection_interval: 15s

View file

@ -21,6 +21,10 @@
when: sonarr_enabled == true
tags: sonarr
- import_tasks: tasks/radarr.yml
when: radarr_enabled == true
tags: radarr
- import_tasks: tasks/glances.yml
when: glances_enabled == true
tags: glances
@ -44,7 +48,3 @@
- import_tasks: tasks/stats.yml
when: stats_enabled == true
tags: stats
roles:
- bertvv.samba
- geerlingguy.docker

26
tasks/radarr.yml Normal file
View file

@ -0,0 +1,26 @@
---
- name: Create Radarr Directories
file:
path: "{{ item }}"
state: directory
with_items:
- "{{ radarr_data_directory }}"
- name: Radarr
docker_container:
name: radarr
image: linuxserver/radarr
pull: true
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "{{ radarr_movies_directory }}:/movies:rw"
- "{{ radarr_download_directory }}/downloads:/downloads:rw"
- "{{ radarr_data_directory }}:/config:rw"
- "/etc/timezone:/etc/timezone:ro"
ports:
- "7878:7878"
env:
PUID: "{{ radarr_user_id }}"
PGID: "{{ radarr_group_id }}"
restart_policy: unless-stopped
memory: 1g