Reader qube - useful software.

Make it default template, and base for debian-11-dvm
This commit is contained in:
unman 2022-09-08 15:18:17 +00:00
parent 90921f472a
commit c002fc13bc
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C
4 changed files with 85 additions and 0 deletions

16
reader/clone.sls Normal file
View File

@ -0,0 +1,16 @@
clone_precursor:
qvm.template_installed:
- name: debian-11
qvm-clone-id:
qvm.clone:
- name: template-reader
- source: debian-11
change_default:
'qubes-prefs default_template template-reader':
cmd.run
change_template:
'qvm-prefs debian-11-dvm template template-reader':
cmd.run

4
reader/clone.top Normal file
View File

@ -0,0 +1,4 @@
base:
dom0:
- match: nodegroup
- reader.clone

60
reader/install.sls Normal file
View File

@ -0,0 +1,60 @@
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
#
#
#
{% if salt['qvm.exists']('cacher') %}
{% if grains['os_family']|lower == 'debian' %}
{% if grains['nodename']|lower != 'host' %}
{% for repo in salt['file.find']('/etc/apt/sources.list.d/', name='*list') %}
{{ repo }}_baseurl:
file.replace:
- name: {{ repo }}
- pattern: 'https://'
- repl: 'http://HTTPS///'
- flags: [ 'IGNORECASE', 'MULTILINE' ]
- backup: False
{% endfor %}
/etc/apt/sources.list:
file.replace:
- name: /etc/apt/sources.list
- pattern: 'https:'
- repl: 'http://HTTPS/'
- flags: [ 'IGNORECASE', 'MULTILINE' ]
- backup: False
{% endif %}
{% endif %}
{% endif %}
{% if grains['nodename'] != 'dom0' %}
allow-testing:
file.uncomment:
- name: /etc/apt/sources.list.d/qubes-r4.list
- regex: ^deb\s.*qubes-os.org.*-testing
- backup: false
installed:
pkg.installed:
- refresh: True
- pkgs:
- qubes-core-agent-networking
- antiword
- edbrowse
- evince
- firefox-esr
- libreoffice
- mutt
- notmuch
- notmuch-mutt
- notmuch-vim
- offlineimap
- orca
- pdf2text
- w3m
{% endif %}

5
reader/install.top Normal file
View File

@ -0,0 +1,5 @@
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
base:
'*':
- reader.install