Pi-hole - Unattended install with default settings

This commit is contained in:
unman 2022-08-05 13:00:01 +00:00
parent dee9ffba3f
commit 50fe621d86
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C
2 changed files with 25 additions and 0 deletions

View File

@ -76,4 +76,16 @@ https://github.com/pi-hole/pi-hole.git:
- user: root
- target: /root/pi-hole
/etc/pihole/setupVars.conf:
file.managed:
- source:
- salt://pihole/setupVars.conf
- user: root
- group: root
- makedirs: True
Pihole-setup:
cmd.run:
- name: '/root/pi-hole/automated\ install/basic-install.sh --unattended'
{% endif %}

13
pihole/setupVars.conf Normal file
View File

@ -0,0 +1,13 @@
PIHOLE_INTERFACE=eth0
PIHOLE_DNS_1=9.9.9.9
PIHOLE_DNS_2=149.112.112.112
QUERY_LOGGING=true
INSTALL_WEB_SERVER=true
INSTALL_WEB_INTERFACE=true
LIGHTTPD_ENABLED=true
CACHE_SIZE=10000
DNS_FQDN_REQUIRED=true
DNS_BOGUS_PRIV=true
DNSMASQ_LISTENING=local
WEBPASSWORD=1832d74a8cd6d9b8cb0f9db646500f1ac9733d104ebbf9f9be157391fb051bfb
BLOCKING_ENABLED=true