Store - offline storage with thunar

This commit is contained in:
unman 2024-02-12 23:00:13 +00:00
parent ffc57008ca
commit 74b34bad5d
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C
4 changed files with 75 additions and 0 deletions

15
store/clone.sls Normal file
View File

@ -0,0 +1,15 @@
store_precursor:
qvm.template_installed:
- name: debian-12-minimal
store_clone:
qvm.clone:
- name: template-store
- source: debian-12-minimal
store_menu:
qvm.features:
- name: template-store
- set:
- menu-items: "thunar.desktop debian-xterm.desktop"
- default-menu-items: "thunar.desktop debian-xterm.desktop"

4
store/clone.top Normal file
View File

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

51
store/install.sls Normal file
View File

@ -0,0 +1,51 @@
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
#
#
#
{% if salt['pillar.get']('update_proxy:caching') %}
{% 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-thunar
- edbrowse
- thunar
- install_recommends: False
{% endif %}

5
store/install.top Normal file
View File

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