Pi-hole - standalone

This commit is contained in:
unman 2022-08-05 12:13:46 +00:00
parent b0576bab91
commit 6c61d79ac5
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C
2 changed files with 33 additions and 0 deletions

29
pihole/create.sls Normal file
View File

@ -0,0 +1,29 @@
pihole_depends:
qvm.template_installed:
- name: debian-11-minimal
pihole-present-id:
qvm.present:
- name: sys-pihole
- template: debian-11-minimal
- label: green
- class: StandaloneVM
pihole-prefs-id:
qvm.prefs:
- name: sys-pihole
- memory: 300
- maxmem: 800
- vcpus: 2
- netvm: sys-net
- provides-network: true
pihole-features-id:
qvm.features:
- name: sys-pihole
- disable:
- service.cups
- service.cups-browsed
'qvm-volume extend sys-pihole:private 20G':
cmd.run

4
pihole/create.top Normal file
View File

@ -0,0 +1,4 @@
base:
dom0:
- match: nodegroup
- pihole.create