mirror of
https://github.com/unman/shaker.git
synced 2024-12-25 07:19:35 -05:00
Salt disposable multimedia qube
This commit is contained in:
parent
6aa035dc0c
commit
9c6f5ccbdc
9
multimedia/clone.sls
Normal file
9
multimedia/clone.sls
Normal file
@ -0,0 +1,9 @@
|
||||
include:
|
||||
- template-debian-10-minimal
|
||||
|
||||
qvm-clone-id:
|
||||
qvm.clone:
|
||||
- require:
|
||||
- sls: template-debian-10-minimal
|
||||
- name: template-multimedia
|
||||
- source: debian-10-minimal
|
4
multimedia/clone.top
Normal file
4
multimedia/clone.top
Normal file
@ -0,0 +1,4 @@
|
||||
base:
|
||||
dom0:
|
||||
- match: nodegroup
|
||||
- multimedia.clone
|
53
multimedia/create.sls
Normal file
53
multimedia/create.sls
Normal file
@ -0,0 +1,53 @@
|
||||
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
|
||||
|
||||
multimedia-features:
|
||||
qvm.features:
|
||||
- name: multimedia
|
||||
- appemenus-dispvm: True
|
||||
- disable:
|
||||
- service.cups
|
||||
|
||||
update_policy_file:
|
||||
file.prepend:
|
||||
- name: /etc/qubes-rpc/policy/qubes.OpenInVM
|
||||
- text: media $dispvm allow,target=multimedia
|
4
multimedia/create.top
Normal file
4
multimedia/create.top
Normal file
@ -0,0 +1,4 @@
|
||||
base:
|
||||
dom0:
|
||||
- match: nodegroup
|
||||
- multimedia.create
|
43
multimedia/install.sls
Normal file
43
multimedia/install.sls
Normal file
@ -0,0 +1,43 @@
|
||||
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
|
||||
#
|
||||
#
|
||||
|
||||
/etc/apt/sources.list:
|
||||
file.replace:
|
||||
- pattern: 'https:'
|
||||
- repl: 'http://HTTPS/'
|
||||
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||
|
||||
/etc/apt/sources.list.d/qubes-r4.list:
|
||||
file.replace:
|
||||
- pattern: 'https:'
|
||||
- repl: 'http://HTTPS/'
|
||||
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||
|
||||
allow-testing:
|
||||
file.uncomment:
|
||||
- name: /etc/apt/sources.list.d/qubes-r4.list
|
||||
- regex: ^deb\s.*qubes-os.org.*-testing
|
||||
- backup: false
|
||||
|
||||
vlc.packages:
|
||||
pkg.installed:
|
||||
- pkgs:
|
||||
- vlc
|
||||
- pulseaudio-qubes
|
||||
|
||||
/usr/lib/x86_64-linux-gnu/libdvdcss.so.2.2.0:
|
||||
file.managed:
|
||||
- source:
|
||||
- salt://multimedia/libdvdcss.so.2.2.0
|
||||
- user: root
|
||||
- group: root
|
||||
|
||||
ln -s /usr/lib/x86_64-linux-gnu/libdvdcss.so.2.2.0 /usr/lib/x86_64-linux-gnu/libdvdcss.so:
|
||||
cmd.run
|
||||
|
||||
ln -s /usr/lib/x86_64-linux-gnu/libdvdcss.so.2.2.0 /usr/lib/x86_64-linux-gnu/libdvdcss.so.2:
|
||||
cmd.run
|
||||
|
||||
apt-get clean:
|
||||
cmd.run
|
25
multimedia/install.sls.bak
Normal file
25
multimedia/install.sls.bak
Normal file
@ -0,0 +1,25 @@
|
||||
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
|
||||
#
|
||||
#
|
||||
allow-testing:
|
||||
file.uncomment:
|
||||
- name: /etc/apt/sources.list.d/qubes-r4.list
|
||||
- regex: ^deb\s.*qubes-os.org.*-testing
|
||||
- backup: false
|
||||
|
||||
/home/user/Downloads/vlc-key:
|
||||
file.managed:
|
||||
- source:
|
||||
- salt://multimedia/vlc-key
|
||||
- user: user
|
||||
- group: user
|
||||
|
||||
/usr/bin/apt-key add /home/user/Downloads/vlc-key:
|
||||
cmd.run:
|
||||
- runas: root
|
||||
|
||||
vlc.packages:
|
||||
pkg.installed:
|
||||
- pkgs:
|
||||
- vlc
|
||||
- pulseaudio-qubes
|
5
multimedia/install.top
Normal file
5
multimedia/install.top
Normal file
@ -0,0 +1,5 @@
|
||||
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
|
||||
|
||||
base:
|
||||
template-multimedia:
|
||||
- multimedia.install
|
BIN
multimedia/libdvdcss.so.2.2.0
Normal file
BIN
multimedia/libdvdcss.so.2.2.0
Normal file
Binary file not shown.
32
multimedia/vlc-key
Normal file
32
multimedia/vlc-key
Normal file
@ -0,0 +1,32 @@
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
xsBNBFIcm2kBCADL5XxrZ27r2z3qqV6r3FUfg90UvM58wvxryAaoXr+y+W0Joh/m
|
||||
7+Vtxv0DBekTrACuGy7Vg1NzsFHNzEuAbPctpbZgffNSwxgrToFERenEbF14f7Ff
|
||||
xDkF3vLgyll5frNozE2csAaj19lTQLBTNZbhkEys0V844zQSDN9/UYp5BWWXRFt8
|
||||
xHtocGayloFPdVOcWA+B8gO6hBWyZa7QaMKVvzEiHyqzmxVINJ1k1P3PFqMuHGOF
|
||||
JsPY4ARRZzQ+JYfrtgoqtAh9LYMQAfKmn7F3nlQyUuocEsKuhS0kIDtvLxTdjkef
|
||||
ZYcmQXWxPSxUan6lqP3LGrkMdEmLrzwnFkujABEBAAHNMFZpZGV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Fi7jzw1t83EnAVgTvBR+bQqBpB69EtY2WUykABMnjMj9t0Y6eFwARAQABwsBf
|
||||
BBgBAgAJBQJSHJtpAhsMAAoJEGvKXk24QojZNMIH/3YE92QZ22YYdl6TchMDswsB
|
||||
FXvsS2/W0xhvKvG5YuyCKoUKYCornK74YrsRURAhYAOvOfrcWeq+wtmUmXrhNvZ2
|
||||
Qz370hS2EW6Db7FnMdu188LrVZS0AmC1ztu8/DlwRcRF4e05CVgwUMngG2RiAuZN
|
||||
1ZYQiHJwU2444/Vm+ny/YD55I+RUmKFW69iAvWnJrz5QzohoeZefr48c3FU1glKY
|
||||
E3OtJK/T+/nOVzt+Kzjw8mmrtkZqck/ZVpA51ikcTRSpyLw5ioLpzLFbB/Ew+Dx3
|
||||
CzFOZhG9UxBV08BOw9a30090OhxPDoKBu210T3tBW9XWmFPohT2fsg5OXZHvp/Q=
|
||||
=H4/P
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
Loading…
Reference in New Issue
Block a user