distribute VM-images with aria2 instead of ctorrent

This commit is contained in:
Raphael Dannecker 2024-01-19 20:08:19 +01:00
parent e30a7032a5
commit 40962fd9de
23 changed files with 444 additions and 434 deletions

17
roles/lmn_vm/files/lmn-vm Normal file
View file

@ -0,0 +1,17 @@
# vm-sync: Download and synchronize VM-Images and xml-Files
%role-teacher ALL=(lmnsynci) NOPASSWD: /usr/local/bin/vm-sync
%role-student ALL=(lmnsynci) NOPASSWD: /usr/local/bin/vm-sync
%examusers ALL=(lmnsynci) NOPASSWD: /usr/local/bin/vm-sync
# vm-aria2: Start/Stop aria2 as systemd-service for VM-Images
lmnsynci ALL=(root) NOPASSWD: /usr/local/bin/vm-aria2
# vm-link-images: Link VM-Images to User-tmp-directory
%examusers ALL=(root) NOPASSWD: /usr/local/bin/vm-link-images
%role-student ALL=(root) NOPASSWD: /usr/local/bin/vm-link-images
%role-teacher ALL=(root) NOPASSWD: /usr/local/bin/vm-link-images
# start-virtiofsd: Start Virtiofsd as systemd-service
%examusers ALL=(root) NOPASSWD: /usr/local/bin/start-virtiofsd
%role-student ALL=(root) NOPASSWD: /usr/local/bin/start-virtiofsd
%role-teacher ALL=(root) NOPASSWD: /usr/local/bin/start-virtiofsd