Add salt states for Debian templates

This commit is contained in:
unman 2022-05-17 12:28:03 +00:00
parent b7865a9400
commit 0b9eeda29e
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C
4 changed files with 64 additions and 0 deletions

29
debian-11-minimal.spec Normal file
View 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
View 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

View File

@ -0,0 +1,3 @@
debian-11-minimal:
qvm.template_installed:
- name: debian-11-minimal

View File

@ -0,0 +1,3 @@
debian-11:
qvm.template_installed:
- name: debian-11