From 1dc48c1016b6096744163e5804f757eef1d0f6a2 Mon Sep 17 00:00:00 2001 From: ripps818 Date: Mon, 6 May 2019 15:51:41 -0500 Subject: [PATCH 01/11] Add pyload: all.yml.dist --- group_vars/all.yml.dist | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/group_vars/all.yml.dist b/group_vars/all.yml.dist index 000773e9..4620cd68 100644 --- a/group_vars/all.yml.dist +++ b/group_vars/all.yml.dist @@ -16,6 +16,9 @@ traefik_enabled: false transmission_with_openvpn_enabled: false transmission_enabled: false +# Downloaders +pyload_enabled: false + # Plex plex_enabled: false tautulli_enabled: false @@ -275,7 +278,6 @@ heimdall_data_directory: "{{ docker_home }}/heimdall" ### Transmission ### transmission_available_externally: "false" -transmission_with_openvpn_available_externally: "false" transmission_config_directory: "{{ docker_home }}/transmission/config" transmission_download_directory: "{{ downloads_root }}" transmission_watch_directory: "{{ torrents_root }}" @@ -283,6 +285,14 @@ transmission_user_id: 0 transmission_group_id: 0 transmission_local_network: "192.168.1.0/24" +### +### pyLoad +### +pyload_available_externally: "false" +pyload_config_directory: "{{ docker_home }}/pyload" +pyload_download_directory: "{{ downloads_root }}" +pyload_user_id: 0 +pyload_group_id: 0 ### ### Plex From 3d799837aca65ee32c1238c0db0fc80ede8699cf Mon Sep 17 00:00:00 2001 From: ripps818 Date: Mon, 6 May 2019 15:55:40 -0500 Subject: [PATCH 02/11] Add pyload: task yml --- tasks/pyload.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 tasks/pyload.yml diff --git a/tasks/pyload.yml b/tasks/pyload.yml new file mode 100644 index 00000000..379e22a7 --- /dev/null +++ b/tasks/pyload.yml @@ -0,0 +1,31 @@ +--- +- name: Create pyLoad Directories + file: + path: "{{ item }}" + state: directory + # mode: 0755 + with_items: + - "{{ pyload_config_directory }}" + - "{{ pyload_download_directory }}" + +- name: pyLoad Docker Container + docker_container: + name: pyload + image: writl/pyload + pull: true + volumes: + - "{{ pyload_config_directory }}:/opt/pyload/pyload-config:rw" + - "{{ pyload_download_directory }}:/opt/pyload/Downloads:rw" + ports: + - "8000:8000" + env: + TZ: "{{ ansible_nas_timezone }}" + UID: "{{ pyload_user_id }}" + GID: "{{ pyload_group_id }}" + restart_policy: unless-stopped + memory: 1g + labels: + traefik.backend: "pyload" + traefik.frontend.rule: "Host:pyload.{{ ansible_nas_domain }}" + traefik.enable: "{{ pyload_available_externally }}" + traefik.port: "8000" From 25d7d806f4acc8078d8b3fe7c77405bb221e518e Mon Sep 17 00:00:00 2001 From: ripps818 Date: Mon, 6 May 2019 15:58:19 -0500 Subject: [PATCH 03/11] Add pyload: update nas.yml --- nas.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nas.yml b/nas.yml index 428872f7..3430c2cd 100644 --- a/nas.yml +++ b/nas.yml @@ -63,6 +63,10 @@ - import_tasks: tasks/transmission_with_openvpn.yml when: (transmission_with_openvpn_enabled | default(False)) tags: transmission + + - import_tasks: tasks/pyload.yml + when: (pyload_enabled | default(False)) + tags: pyload - import_tasks: tasks/thelounge.yml when: (thelounge_enabled | default(False)) From 09ecf49783e4b2f82a1f524bf7b4db05e845cf3e Mon Sep 17 00:00:00 2001 From: ripps818 Date: Mon, 6 May 2019 15:59:37 -0500 Subject: [PATCH 04/11] Add pyload: update traefik.toml --- templates/traefik/traefik.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/traefik/traefik.toml b/templates/traefik/traefik.toml index c863ecc3..81a40385 100644 --- a/templates/traefik/traefik.toml +++ b/templates/traefik/traefik.toml @@ -195,6 +195,7 @@ onDemand = false # create certificate when container is created "nextcloud.{{ ansible_nas_domain }}", "plex.{{ ansible_nas_domain }}", "portainer.{{ ansible_nas_domain }}", + "pyload.{{ ansible_nas_domain }}", "radarr.{{ ansible_nas_domain }}", "sickchill.{{ ansible_nas_domain }}", "sonarr.{{ ansible_nas_domain }}", From 2c2bad20cd138d2ca9dda36d8ea4591a3e1b19c3 Mon Sep 17 00:00:00 2001 From: ripps818 Date: Mon, 6 May 2019 16:04:04 -0500 Subject: [PATCH 05/11] Add pyload: update README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d61899b2..52121e46 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,7 @@ Ansible config and a bunch of Docker containers. * [Nextcloud](https://nextcloud.com/) - A self-hosted Dropbox alternative * [Plex](https://www.plex.tv/) - Plex Media Server * [Portainer](https://portainer.io/) - for managing Docker and running custom images +* [pyLoad](https://pyload.net/) - A download manager with a friendly web-interface * [Radarr](https://radarr.video/) - for organising and downloading movies * [Sickchill](https://sickchill.github.io/) - for managing TV episodes * [Sonarr](https://sonarr.tv/) - for downloading and managing TV episodes From 0acaea55c762315667bb6192d3feee2a3c29e2b9 Mon Sep 17 00:00:00 2001 From: ripps818 Date: Sun, 26 May 2019 13:01:13 -0500 Subject: [PATCH 06/11] Revert accidentally removed line --- group_vars/all.yml.dist | 1 + 1 file changed, 1 insertion(+) diff --git a/group_vars/all.yml.dist b/group_vars/all.yml.dist index 4620cd68..9162f1a4 100644 --- a/group_vars/all.yml.dist +++ b/group_vars/all.yml.dist @@ -278,6 +278,7 @@ heimdall_data_directory: "{{ docker_home }}/heimdall" ### Transmission ### transmission_available_externally: "false" +transmission_with_openvpn_available_externally: "false" transmission_config_directory: "{{ docker_home }}/transmission/config" transmission_download_directory: "{{ downloads_root }}" transmission_watch_directory: "{{ torrents_root }}" From e157ce0920f89bd4ca0e1de147ae0f316859dc5a Mon Sep 17 00:00:00 2001 From: ripps818 Date: Sun, 26 May 2019 13:07:21 -0500 Subject: [PATCH 07/11] add pyLoad doc --- docs/applications/pyload.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 docs/applications/pyload.md diff --git a/docs/applications/pyload.md b/docs/applications/pyload.md new file mode 100644 index 00000000..c4c7d882 --- /dev/null +++ b/docs/applications/pyload.md @@ -0,0 +1,11 @@ +# pyLoad + +Homepage: [https://pyload.net/](https://pyload.net//) + +Free and Open Source download manager written in Python and designed to be extremely lightweight, easily extensible and fully manageable via web +. +## Usage + +Set `pyload_enabled: true` in your `group_vars/all.yml` file. + +Transmission's web interface can be found at http://ansible_nas_host_or_ip:8000 From 165f9f8fc4bae4101d9ed62076823877415c8434 Mon Sep 17 00:00:00 2001 From: ripps818 Date: Sun, 26 May 2019 13:14:23 -0500 Subject: [PATCH 08/11] pyload specific configuration updated --- docs/applications/pyload.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/applications/pyload.md b/docs/applications/pyload.md index c4c7d882..da572154 100644 --- a/docs/applications/pyload.md +++ b/docs/applications/pyload.md @@ -9,3 +9,9 @@ Free and Open Source download manager written in Python and designed to be extre Set `pyload_enabled: true` in your `group_vars/all.yml` file. Transmission's web interface can be found at http://ansible_nas_host_or_ip:8000 + +## Specific Configuration + +Default username is `pyload` and default password is `pyload`. + +In order to add or remove users, you will need to access the container from an interactive shell (can easily be done from portainer, if installed) and enter pyload's home directory `/opt/pyload` and using the command `python pyLoadCore.py -u` and follow the on-screen prompts. More commands to configure and customize pyload can be found on it's website. From 0ea031d2e78b1f40dec79d590b79d49fc470d3ec Mon Sep 17 00:00:00 2001 From: ripps818 Date: Sun, 26 May 2019 13:18:50 -0500 Subject: [PATCH 09/11] fix typos --- docs/applications/pyload.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/applications/pyload.md b/docs/applications/pyload.md index da572154..c4e537b6 100644 --- a/docs/applications/pyload.md +++ b/docs/applications/pyload.md @@ -8,10 +8,10 @@ Free and Open Source download manager written in Python and designed to be extre Set `pyload_enabled: true` in your `group_vars/all.yml` file. -Transmission's web interface can be found at http://ansible_nas_host_or_ip:8000 +pyLoad's web interface can be found at http://ansible_nas_host_or_ip:8000 ## Specific Configuration Default username is `pyload` and default password is `pyload`. -In order to add or remove users, you will need to access the container from an interactive shell (can easily be done from portainer, if installed) and enter pyload's home directory `/opt/pyload` and using the command `python pyLoadCore.py -u` and follow the on-screen prompts. More commands to configure and customize pyload can be found on it's website. +In order to add or remove users, you will need to access the container from an interactive shell (can easily be done from portainer, if installed) and enter pyLoad's home directory `/opt/pyload` and using the command `python pyLoadCore.py -u` and follow the on-screen prompts. More commands to configure and customize pyLoad can be found on it's website. From 77c7e33b1aa378777ce6280df1863eac416d5703 Mon Sep 17 00:00:00 2001 From: ripps818 Date: Sun, 26 May 2019 13:25:28 -0500 Subject: [PATCH 10/11] trailing whitespace? --- nas.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nas.yml b/nas.yml index 3430c2cd..a5ded6f1 100644 --- a/nas.yml +++ b/nas.yml @@ -63,7 +63,7 @@ - import_tasks: tasks/transmission_with_openvpn.yml when: (transmission_with_openvpn_enabled | default(False)) tags: transmission - + - import_tasks: tasks/pyload.yml when: (pyload_enabled | default(False)) tags: pyload From bda69f07c52ab441438876b4118fb6f55fc42ed1 Mon Sep 17 00:00:00 2001 From: ripps818 Date: Mon, 3 Jun 2019 01:55:00 -0500 Subject: [PATCH 11/11] Add pyload port to application ports --- docs/configuration/application_ports.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/configuration/application_ports.md b/docs/configuration/application_ports.md index f3f0569a..3b445ffe 100644 --- a/docs/configuration/application_ports.md +++ b/docs/configuration/application_ports.md @@ -25,6 +25,7 @@ By default, applications can be found on the ports listed below. | Nextcloud | 8080 | | | Plex | 32400 | | | Portainer | 9000 | | +| pyload | 8000 | | | Radarr | 7878 | | | Sickchill | 8081 | | | Sonarr | 8989 | |