mirror of
https://github.com/iiab/iiab.git
synced 2025-02-14 20:22:08 +00:00
Correct handling strings/numbers in templates, systemd transmission user/group
This commit is contained in:
parent
b5e587df5e
commit
5ec4c5ee2d
4 changed files with 18 additions and 15 deletions
|
@ -42,6 +42,10 @@ $ transmission-remote -a <path_to_the.torrent>
|
||||||
|
|
||||||
Known Issues
|
Known Issues
|
||||||
-------------
|
-------------
|
||||||
|
* Default Transmission user/group (See https://github.com/transmission/transmission/issues/537)
|
||||||
|
Currently you need to set these these in "transmission_user" and "transmission_group" variables. You can check
|
||||||
|
the value for these in transmission-daemon systemd unit file "lib/systemd/system/transmission-daemon.service"
|
||||||
|
* Random Ports
|
||||||
Currently it is not possible to use random ports in the range 65535-49152. It is difficult to open multiple ports in IIAB firewall.
|
Currently it is not possible to use random ports in the range 65535-49152. It is difficult to open multiple ports in IIAB firewall.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -6,13 +6,14 @@ transmission_install: False
|
||||||
transmission_enabled: False
|
transmission_enabled: False
|
||||||
|
|
||||||
# Transmission default download directory.
|
# Transmission default download directory.
|
||||||
transmission_download_dir: /library/transmission
|
transmission_download_dir: "/library/transmission/"
|
||||||
|
|
||||||
# Transmission default web and bittorrent ports http://box:9091/transmission/
|
# Transmission default web and bittorrent ports http://box:9091/transmission/
|
||||||
# TODO: BUG transmission_http_port is not assigned in settings.json?
|
|
||||||
transmission_http_port: 9091
|
transmission_http_port: 9091
|
||||||
transmission_peer_port: 51413
|
transmission_peer_port: 51413
|
||||||
transmission_url : "/transmission/"
|
transmission_url : "/transmission/"
|
||||||
|
transmission_user: debian-transmission
|
||||||
|
transmission_group: root
|
||||||
|
|
||||||
# Provision Transmission with default torrents from http://pantry.learningequality.org/downloads/ka-lite/0.17/content/
|
# Provision Transmission with default torrents from http://pantry.learningequality.org/downloads/ka-lite/0.17/content/
|
||||||
transmission_provision: True
|
transmission_provision: True
|
||||||
|
@ -20,9 +21,9 @@ transmission_kalite_version: 0.17
|
||||||
# Uncomment to enable a language to download.
|
# Uncomment to enable a language to download.
|
||||||
transmission_kalite_languages:
|
transmission_kalite_languages:
|
||||||
- english
|
- english
|
||||||
- french
|
#- french
|
||||||
#- hindi
|
#- hindi
|
||||||
- portugal-portuguese
|
#- portugal-portuguese
|
||||||
#- brazilian-portuguese
|
#- brazilian-portuguese
|
||||||
#- spanish
|
#- spanish
|
||||||
#- swahili
|
#- swahili
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
- name: Create Transmission download directory
|
- name: Create Transmission download directory
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
owner: root
|
owner: "{{ transmission_user }}"
|
||||||
group: root
|
group: "{{ transmission_group }}"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
state: directory
|
state: directory
|
||||||
with_items:
|
with_items:
|
||||||
|
@ -27,8 +27,8 @@
|
||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
mode: "{{ item.mode }}"
|
mode: "{{ item.mode }}"
|
||||||
owner: root
|
owner: "{{ transmission_user }}"
|
||||||
group: root
|
group: "{{ transmission_group }}"
|
||||||
with_items:
|
with_items:
|
||||||
- { src: 'settings.json.j2', dest: '/etc/transmission-daemon/settings.json', mode: '0644' }
|
- { src: 'settings.json.j2', dest: '/etc/transmission-daemon/settings.json', mode: '0644' }
|
||||||
|
|
||||||
|
@ -52,7 +52,6 @@
|
||||||
state: stopped
|
state: stopped
|
||||||
when: not transmission_enabled
|
when: not transmission_enabled
|
||||||
|
|
||||||
|
|
||||||
- name: Add transmission to list of services at /etc/iiab/iiab.ini
|
- name: Add transmission to list of services at /etc/iiab/iiab.ini
|
||||||
ini_file:
|
ini_file:
|
||||||
dest: "{{ service_filelist }}"
|
dest: "{{ service_filelist }}"
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
"blocklist-url": "http://www.example.com/blocklist",
|
"blocklist-url": "http://www.example.com/blocklist",
|
||||||
"cache-size-mb": 4,
|
"cache-size-mb": 4,
|
||||||
"dht-enabled": true,
|
"dht-enabled": true,
|
||||||
"download-dir": {{ transmission_download_dir }},
|
"download-dir": "{{ transmission_download_dir }}",
|
||||||
"download-limit": 100,
|
"download-limit": 100,
|
||||||
"download-limit-enabled": 0,
|
"download-limit-enabled": 0,
|
||||||
"download-queue-enabled": true,
|
"download-queue-enabled": true,
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
"peer-id-ttl-hours": 6,
|
"peer-id-ttl-hours": 6,
|
||||||
"peer-limit-global": 200,
|
"peer-limit-global": 200,
|
||||||
"peer-limit-per-torrent": 50,
|
"peer-limit-per-torrent": 50,
|
||||||
"peer-port": {{ transmission_peer_port }},
|
"peer-port": {{ transmission_peer_port }},
|
||||||
"peer-port-random-high": 65535,
|
"peer-port-random-high": 65535,
|
||||||
"peer-port-random-low": 49152,
|
"peer-port-random-low": 49152,
|
||||||
"peer-port-random-on-start": false,
|
"peer-port-random-on-start": false,
|
||||||
|
@ -48,11 +48,10 @@
|
||||||
"rpc-enabled": true,
|
"rpc-enabled": true,
|
||||||
"rpc-host-whitelist": "",
|
"rpc-host-whitelist": "",
|
||||||
"rpc-host-whitelist-enabled": true,
|
"rpc-host-whitelist-enabled": true,
|
||||||
"rpc-password": {{ transmission_password }},
|
"rpc-password": "{{ transmission_password }}",
|
||||||
# TODO: BUG transmission_http_port is not assigned in settings.json?
|
|
||||||
"rpc-port": {{ transmission_http_port }},
|
"rpc-port": {{ transmission_http_port }},
|
||||||
"rpc-url": {{ transmission_url }},
|
"rpc-url": "{{ transmission_url }}",
|
||||||
"rpc-username": {{ transmission_username }},
|
"rpc-username": "{{ transmission_username }}",
|
||||||
"rpc-whitelist": "127.0.0.1",
|
"rpc-whitelist": "127.0.0.1",
|
||||||
"rpc-whitelist-enabled": true,
|
"rpc-whitelist-enabled": true,
|
||||||
"scrape-paused-torrents-enabled": true,
|
"scrape-paused-torrents-enabled": true,
|
||||||
|
|
Loading…
Reference in a new issue