New scripts and sudo rules. Implement qemu session mode.
This commit is contained in:
parent
91aab8e75b
commit
7871936a67
19 changed files with 176 additions and 67 deletions
|
@ -58,11 +58,10 @@
|
|||
group: root
|
||||
mode: '0700'
|
||||
loop:
|
||||
- lmn-mounthome-sudo
|
||||
- lmn-create-clone-sudo
|
||||
- lmn-sync-vm-sudo
|
||||
- lmn-create-vm-sudo
|
||||
- lmn-rebase-vm-sudo
|
||||
- lmn-mounthome
|
||||
- lmn-sync-vm
|
||||
- lmn-link-images
|
||||
- lmn-startvirtiofsd
|
||||
|
||||
- name: deploy mount home script
|
||||
copy:
|
||||
|
@ -78,6 +77,27 @@
|
|||
- create-clone.sh
|
||||
- run-vm.sh
|
||||
- sync-vm.sh
|
||||
- link-images.sh
|
||||
- start-virtiofsd.sh
|
||||
|
||||
- name: Deploy bridge.conf needed for qemu session mode
|
||||
lineinfile:
|
||||
path: /etc/qemu/bridge.conf
|
||||
line: 'allow virbr0'
|
||||
create: True
|
||||
mode: '0655'
|
||||
|
||||
- name: Deploy rsync.secret
|
||||
lineinfile:
|
||||
path: /etc/rsync.secret
|
||||
line: "{{ rsyncsecret }}"
|
||||
create: True
|
||||
mode: '0600'
|
||||
|
||||
- name: Allow users to attach to bridge
|
||||
file:
|
||||
path: /usr/lib/qemu/qemu-bridge-helper
|
||||
mode: '4755'
|
||||
|
||||
- name: deploy http proxy config
|
||||
copy:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue