Seed for VM upload can be configured using the variable vm_uploadseed_pwd
This commit is contained in:
parent
5438151f3d
commit
7a0174838f
4 changed files with 20 additions and 20 deletions
|
@ -14,23 +14,22 @@ VMs based on Qemu/KVM in school network.
|
||||||
Repository with ansible-playbook for seedbox install: https://codeberg.org/digitalsouveraeneschule/...
|
Repository with ansible-playbook for seedbox install: https://codeberg.org/digitalsouveraeneschule/...
|
||||||
* `seedbox`-hostname must be resolvable via DNS
|
* `seedbox`-hostname must be resolvable via DNS
|
||||||
|
|
||||||
## Activation / Default
|
## Configuration / Variables
|
||||||
|
|
||||||
### To enable VM support:
|
|
||||||
|
|
||||||
```
|
|
||||||
vm_support: true
|
|
||||||
```
|
|
||||||
|
|
||||||
Default: `vm_support: false
|
|
||||||
|
|
||||||
### Torrent Server
|
|
||||||
```
|
|
||||||
vm_torrent_srv: "myseedbox.linuxmuster.net"
|
|
||||||
```
|
|
||||||
|
|
||||||
Default: `vm_torrent_srv: "seedbox.{{ domain }}"`
|
|
||||||
|
|
||||||
|
* **vm_support**
|
||||||
|
This flag indicates whether to activate VM support.
|
||||||
|
Type: *Boolean*
|
||||||
|
Values:
|
||||||
|
* `false` <-- (default)
|
||||||
|
* `true`
|
||||||
|
* **vm_torrent_serv**
|
||||||
|
Name of the torrent server.
|
||||||
|
Type: *String*
|
||||||
|
Default: `vm_torrent_serv: "seedbox.{{ domain }}"`
|
||||||
|
* **vm_uploadseed_pwd**
|
||||||
|
Password for upload-seed. Used for image upload to torrent-server.
|
||||||
|
Type: *String*
|
||||||
|
Default: `secret = "token:topsecret"`
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
|
@ -41,5 +40,5 @@ inventory.yml
|
||||||
all:
|
all:
|
||||||
vars:
|
vars:
|
||||||
vm_support: true
|
vm_support: true
|
||||||
vm_torrent_srv: "myseedbox.linuxmuster.net" # default: seedbox.{{ domain }}
|
vm_torrent_serv: "myseedbox.linuxmuster.net" # default: seedbox.{{ domain }}
|
||||||
```
|
```
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
---
|
---
|
||||||
vm_support: false
|
vm_support: false
|
||||||
vm_torrent_srv: "seedbox.{{ domain }}"
|
vm_torrent_serv: "seedbox.{{ domain }}"
|
||||||
|
vm_uploadseed_pwd: secret = "token:topsecret"
|
||||||
|
|
|
@ -169,7 +169,7 @@
|
||||||
group: lmnsynci
|
group: lmnsynci
|
||||||
mode: '0640'
|
mode: '0640'
|
||||||
content: |
|
content: |
|
||||||
{{ uploadseed_pwd }}
|
{{ vm_uploadseed_pwd }}
|
||||||
|
|
||||||
- name: Prepare directory for aria2 dht.dat
|
- name: Prepare directory for aria2 dht.dat
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# variables for LMN VM submodule
|
# variables for LMN VM submodule
|
||||||
|
|
||||||
SEEDBOX_HOST="{{ vm_torrent_srv }}"
|
SEEDBOX_HOST="{{ vm_torrent_serv }}"
|
||||||
SEEDBOX_PORT=6789
|
SEEDBOX_PORT=6789
|
||||||
SEEDBOX_RPC_PORT=6800
|
SEEDBOX_RPC_PORT=6800
|
||||||
SEEDBOX_PWFILE="/etc/lmn/uploadseed.conf"
|
SEEDBOX_PWFILE="/etc/lmn/uploadseed.conf"
|
||||||
|
|
Loading…
Add table
Reference in a new issue