Pi-hole - install requisites and clone Pi-hole repo

This commit is contained in:
unman 2022-08-05 12:29:21 +00:00
parent 4f7f14de12
commit dee9ffba3f
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C

View File

@ -12,6 +12,7 @@
- repl: 'https://'
- flags: [ 'IGNORECASE', 'MULTILINE' ]
{% set IP = salt['cmd.shell']('qubesdb-read /qubes-ip') %}
{% set GW = salt['cmd.shell']('qubesdb-read /qubes-gateway') %}
@ -45,4 +46,34 @@ Pihole_update:
pkg.uptodate:
- refresh: True
Pihole_installed:
pkg.installed:
- pkgs:
- qubes-core-agent-networking
- qubes-core-agent-passwordless-root
- curl
- dnsutils
- firefox-esr
- git
- idn2
- lighttpd
- netcat-openbsd
- php-cgi
- php-common
- php-intl
- php-json
- php-sqlite3
- php-xml
- unzip
Pihole-systemd-mask:
cmd.run:
- name: systemctl disable systemd-resolved
https://github.com/pi-hole/pi-hole.git:
git.latest:
- name: https://github.com/pi-hole/pi-hole.git
- user: root
- target: /root/pi-hole
{% endif %}