mirror of
https://github.com/unman/shaker.git
synced 2024-10-01 01:25:41 -04:00
Salt kali template
This commit is contained in:
commit
568ccb02a7
13
kali/clone.sls
Normal file
13
kali/clone.sls
Normal 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
4
kali/clone.top
Normal file
@ -0,0 +1,4 @@
|
||||
base:
|
||||
dom0:
|
||||
- match: nodegroup
|
||||
- kali.clone
|
78
kali/install.sls
Normal file
78
kali/install.sls
Normal 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
5
kali/install.top
Normal 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
1715
kali/kali.key
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user