-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added: * FTL-DNS configuration is now managed. Changed: * Updated defaults to use YAML datatypes for setupVars.conf. This is backwards compatible with existing configurations. * added global pihole_disable_warning to disable warning pause when applying changes; allowing for consumers time to cancel role application if enabled to set updated configurations. * Separated configuration to three files: main, blocklist, ftl. Most users will Use main; more advanced will use blocklist, and very few will use ftl. * 'insert or ignore' migrated to 'insert or replace'; enabling management of the default blocklist (stevenblack); defaults updated to reflect this change.
- Loading branch information
Showing
8 changed files
with
719 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
--- | ||
############################################################################### | ||
# Pi-Hole Adlist Table | ||
############################################################################### | ||
# Define Adlist sources for generating domain blocklists. | ||
# | ||
# pihole_ad_sources: | ||
# - id: int (unique id starting at 1) | ||
# address: str (URL for adlist) | ||
# enabled: bool (enable use) | ||
# comment: str (user comment) | ||
# | ||
# Reference: | ||
# * https://docs.pi-hole.net/database/gravity/#adlist-table-adlist | ||
|
||
# Pi-Hole currently adds the stevenblack adlist when installing, as ID 1. | ||
pihole_ad_sources: | ||
- id: 1 | ||
address: 'https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts' | ||
enabled: true | ||
comment: 'Migrated from /etc/pihole/adlists.list' | ||
|
||
############################################################################### | ||
# Pi-Hole Domain Blocklist Table | ||
############################################################################### | ||
# Define domain blocking behavior (whitelist, blacklist). | ||
# | ||
# pihole_domain_blocklists: | ||
# - id: int (unique id starting at 1) | ||
# type: int (0 = exact whitelist, | ||
# 1 = exact blacklist, | ||
# 2 = regex whitelist, | ||
# 3 = regex blacklist) | ||
# domain: str (domain) | ||
# enabled: bool (enable use) | ||
# comment: str (user comment) | ||
# | ||
# Reference: | ||
# * https://docs.pi-hole.net/database/gravity/#domain-tables-domainlist | ||
|
||
pihole_domain_blocklists: [] | ||
|
||
############################################################################### | ||
# Pi-Hole Clients Table | ||
############################################################################### | ||
# Define Pi-Hole clients. | ||
# | ||
# pihole_clients: | ||
# - id: int (unique id starting at 1) | ||
# ip: str (IPv4,IPv6,CIDR) | ||
# comment: str (user comment) | ||
# | ||
# Reference: | ||
# * https://docs.pi-hole.net/database/gravity/#client-table-client | ||
|
||
pihole_clients: [] | ||
|
||
############################################################################### | ||
# Pi-Hole Groups Table | ||
############################################################################### | ||
# Define Pi-Hole group management. | ||
# | ||
# pihole_groups: | ||
# - id: int (unique id starting at 1) | ||
# enabled: bool (enable use) | ||
# name: str (group name) | ||
# description: str (description) | ||
# | ||
# Reference: | ||
# * https://docs.pi-hole.net/database/gravity/groups/#group-management | ||
|
||
pihole_groups: [] | ||
|
||
############################################################################### | ||
# Pi-Hole Groups Adlist Table | ||
############################################################################### | ||
# Define Pi-Hole group adlist management. | ||
# | ||
# pihole_ad_groups_blocklist: | ||
# - adlist_id: int (existing adlist ID) | ||
# group_id: int (existing group ID) | ||
# | ||
# Reference: | ||
# * https://docs.pi-hole.net/database/gravity/groups/ | ||
|
||
pihole_ad_groups_blocklist: [] | ||
|
||
############################################################################### | ||
# Pi-Hole Groups Clients Table | ||
############################################################################### | ||
# Define Pi-Hole group clients management. | ||
# | ||
# pihole_ad_groups_blocklist: | ||
# - client_id: int (existing client ID) | ||
# group_id: int (existing group ID) | ||
# | ||
# Reference: | ||
# * https://docs.pi-hole.net/database/gravity/groups/ | ||
|
||
pihole_client_groups_blocklist: [] | ||
|
||
############################################################################### | ||
# Pi-Hole Groups Domain Blocklists Table | ||
############################################################################### | ||
# Define Pi-Hole group domain blocklists management. | ||
# | ||
# pihole_ad_groups_blocklist: | ||
# - domainlist_id: int (existing domain blocklist ID) | ||
# group_id: int (existing group ID) | ||
# | ||
# Reference: | ||
# * https://docs.pi-hole.net/database/gravity/groups/ | ||
|
||
pihole_domain_groups_blocklist: [] |
Oops, something went wrong.