mirror of
https://github.com/unman/shaker.git
synced 2025-06-24 22:30:29 -04:00
Reader qube - useful software.
Make it default template, and base for debian-11-dvm
This commit is contained in:
parent
90921f472a
commit
c002fc13bc
4 changed files with 85 additions and 0 deletions
16
reader/clone.sls
Normal file
16
reader/clone.sls
Normal 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
4
reader/clone.top
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
base:
|
||||||
|
dom0:
|
||||||
|
- match: nodegroup
|
||||||
|
- reader.clone
|
60
reader/install.sls
Normal file
60
reader/install.sls
Normal 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
5
reader/install.top
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
|
||||||
|
|
||||||
|
base:
|
||||||
|
'*':
|
||||||
|
- reader.install
|
Loading…
Add table
Add a link
Reference in a new issue