shaker/multimedia/create.sls
unman 7d0383ac5a
Multimedia - Shutdown multimedia qubes after 3 idle minutes.
Refresh packages before installation.
2022-09-24 11:23:12 +00:00

75 lines
1.3 KiB
Plaintext

include:
- multimedia.clone
qvm-present-id:
qvm.present:
- name: multimedia-dvm
- template: template-multimedia
- label: purple
qvm-prefs-id:
qvm.prefs:
- name: multimedia-dvm
- netvm: none
- memory: 300
- maxmem: 800
- vcpus: 2
- template_for_dispvms: True
- include_in_backups: false
qvm-features-id:
qvm.features:
- name: multimedia-dvm
- disable:
- service.cups
- service.cups-browsed
- service.tinyproxy
multimedia:
qvm.present:
- name: multimedia
- template: multimedia-dvm
- class: DispVM
- netvm: none
- label: purple
multimedia-prefs:
qvm.prefs:
- name: multimedia
- autostart: false
- include_in_backups: false
- netvm: none
multimedia-features:
qvm.features:
- name: multimedia
- appemenus-dispvm: True
- disable:
- service.cups
- enable:
- service.shutdown-idle
media-present-id:
qvm.present:
- name: media
- template: debian-11
- label: purple
media-prefs:
qvm.prefs:
- name: media
- autostart: false
- include_in_backups: true
- netvm: none
'qvm-volume extend media:private 40G' :
cmd.run
update_policy_file:
file.prepend:
- name: /etc/qubes/policy.d/30-user.policy
- text: qubes.OpenInVM * media @dispvm allow target=multimedia