mirror of
https://github.com/unman/shaker.git
synced 2024-10-01 01:25:41 -04:00
Add salt states for Debian templates
This commit is contained in:
parent
b7865a9400
commit
0b9eeda29e
29
debian-11-minimal.spec
Normal file
29
debian-11-minimal.spec
Normal file
@ -0,0 +1,29 @@
|
||||
Name: deb11-minimal-salt
|
||||
Version: 1.0
|
||||
Release: 1%{?dist}
|
||||
Summary: Salt debian-11-minimal template in Qubes
|
||||
|
||||
License: GPLv3+
|
||||
SOURCE0: templates
|
||||
|
||||
%description
|
||||
Salt state to implement debian-11-minimal template in Qubes
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
mkdir -p %{buildroot}/srv/salt
|
||||
cp -rv %{SOURCE0}/* %{buildroot}/srv/salt
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
/srv/salt/*
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ]; then
|
||||
qubesctl state.apply template-debian-11-minimal
|
||||
fi
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat May 14 2022 unman <unman@thirdeyesecurity.org> - 1.0
|
||||
- First Build
|
29
debian-11.spec
Normal file
29
debian-11.spec
Normal file
@ -0,0 +1,29 @@
|
||||
Name: debian-11-salt
|
||||
Version: 1.0
|
||||
Release: 1%{?dist}
|
||||
Summary: Salt debian-11-template in Qubes
|
||||
|
||||
License: GPLv3+
|
||||
SOURCE0: templates
|
||||
|
||||
%description
|
||||
Salt state to implement debian-11 template in Qubes
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
mkdir -p %{buildroot}/srv/salt
|
||||
cp -rv %{SOURCE0}/* %{buildroot}/srv/salt
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
/srv/salt/*
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ]; then
|
||||
qubesctl state.apply template-debian-11
|
||||
fi
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun May 15 2022 unman <unman@thirdeyesecurity.org> - 1.0
|
||||
- First Build
|
3
templates/template-debian-11-minimal.sls
Normal file
3
templates/template-debian-11-minimal.sls
Normal file
@ -0,0 +1,3 @@
|
||||
debian-11-minimal:
|
||||
qvm.template_installed:
|
||||
- name: debian-11-minimal
|
3
templates/template-debian-11.sls
Normal file
3
templates/template-debian-11.sls
Normal file
@ -0,0 +1,3 @@
|
||||
debian-11:
|
||||
qvm.template_installed:
|
||||
- name: debian-11
|
Loading…
Reference in New Issue
Block a user