distribute VM-images with aria2 instead of ctorrent
This commit is contained in:
parent
e30a7032a5
commit
40962fd9de
23 changed files with 444 additions and 434 deletions
|
@ -13,7 +13,8 @@
|
|||
- name: install libvirt packages
|
||||
apt:
|
||||
name:
|
||||
- ctorrent
|
||||
- aria2
|
||||
- mktorrent
|
||||
- libvirt-daemon-system
|
||||
- virt-manager
|
||||
state: latest
|
||||
|
@ -80,6 +81,11 @@
|
|||
system: true
|
||||
create_home: false
|
||||
|
||||
- name: Create /etc/lmn directory
|
||||
file:
|
||||
path: /etc/lmn
|
||||
state: directory
|
||||
|
||||
- name: Create /lmn directory
|
||||
file:
|
||||
path: /lmn
|
||||
|
@ -91,6 +97,12 @@
|
|||
state: directory
|
||||
mode: '1777'
|
||||
|
||||
- name: Create /var/vm directory
|
||||
file:
|
||||
path: /var/vm
|
||||
state: directory
|
||||
mode: '1777'
|
||||
|
||||
- name: Create vm directory
|
||||
file:
|
||||
path: /lmn/vm
|
||||
|
@ -127,10 +139,7 @@
|
|||
mode: '0700'
|
||||
loop:
|
||||
- lmn-mounthome
|
||||
- lmn-sync-vm
|
||||
- lmn-upload-vm
|
||||
- lmn-link-images
|
||||
- lmn-startvirtiofsd
|
||||
- lmn-vm
|
||||
|
||||
- name: Deploy vmimages scripts
|
||||
copy:
|
||||
|
@ -141,33 +150,24 @@
|
|||
mode: '0755'
|
||||
loop:
|
||||
- mounthome.sh
|
||||
- create-vm.sh
|
||||
- rebase-vm.sh
|
||||
- run-vm.sh
|
||||
- upload-vm.sh
|
||||
- sync-vm.sh
|
||||
- link-images.sh
|
||||
- start-virtiofsd.sh
|
||||
- linbo-torrenthelper.sh
|
||||
- vmimage-torrent
|
||||
- vm-create
|
||||
- vm-rebase
|
||||
- vm-run
|
||||
- vm-upload
|
||||
- vm-sync
|
||||
- vm-link-images
|
||||
- vm-virtiofsd
|
||||
- virtiofsd
|
||||
- vm-aria2
|
||||
- uploadseed
|
||||
|
||||
- name: Deploy linbo-torrent defaults
|
||||
- name: Deploy vm configuration file vm.conf
|
||||
copy:
|
||||
src: linbo-torrent
|
||||
dest: /etc/default/
|
||||
src: vm.conf
|
||||
dest: /etc/lmn/vm.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0755'
|
||||
|
||||
- name: Deploy vmimage-torrent.service
|
||||
copy:
|
||||
src: vmimage-torrent.service
|
||||
dest: /etc/systemd/system/
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
notify: "enable vmimage-torrent.service"
|
||||
|
||||
- name: Prepare directory for qemu bridge config
|
||||
ansible.builtin.file:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue