Salt kali template

This commit is contained in:
unman 2021-01-31 14:12:42 +00:00
commit 568ccb02a7
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C
5 changed files with 1815 additions and 0 deletions

13
kali/clone.sls Normal file
View File

@ -0,0 +1,13 @@
include:
- template-debian-10-minimal
qvm-clone-id:
qvm.clone:
- require:
- sls: template-debian-10-minimal
- name: template-kali
- source: template-debian-10-minimal
'qvm-volume extend template-kali:root 60G' :
cmd.run

4
kali/clone.top Normal file
View File

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

78
kali/install.sls Normal file
View File

@ -0,0 +1,78 @@
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
resize2fs /dev/xvda3:
cmd.run:
- runas: root
/etc/apt/sources.list.replace:
file.replace:
- name: '/etc/apt/sources.list'
- 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
uptodate:
pkg.uptodate:
- refresh: True
- dist_upgrade: True
/etc/apt/sources.list.update:
file.replace:
- name: '/etc/apt/sources.list'
- pattern: 'buster'
- repl: 'bullseye'
- flags: [ 'IGNORECASE', 'MULTILINE' ]
/etc/apt/sources.list.security:
file.replace:
- name: '/etc/apt/sources.list'
- pattern: 'bullseye/updates'
- repl: 'bullseye-security'
- flags: [ 'IGNORECASE', 'MULTILINE' ]
/etc/apt/sources.list.d/qubes-r4.list.update:
file.replace:
- name: /etc/apt/sources.list.d/qubes-r4.list
- pattern: 'buster'
- repl: 'bullseye'
- flags: [ 'IGNORECASE', 'MULTILINE' ]
upgrade:
pkg.uptodate:
- refresh: True
- dist_upgrade: True
python3-apt:
pkg.installed:
- refresh: True
kali:
pkgrepo.managed:
- humanname: Kali repository
- name: deb http://HTTPS///http.kali.org/kali kali-rolling main contrib non-free
- file: /etc/apt/sources.list.d/kali.list
- key_url: salt://kali/kali.key
upgrade_again:
pkg.uptodate:
- refresh: True
- dist_upgrade: True
installed:
pkg.installed:
- pkgs:
- qubes-core-agent-networking
- kali-linux-default
- kali-desktop-kde

5
kali/install.top Normal file
View File

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

1715
kali/kali.key Normal file

File diff suppressed because it is too large Load Diff