Ubuntu Pastebin

Paste from hole at Tue, 13 Dec 2016 21:21:39 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: pihole
version: 2.9.6
summary: A black hole for Internet advertisements
description: |
  Pi-hole is a DNS-based, platform-agnostic, network-wide ad blocker.
# icon: setup/gui/Vortex.png
grade: devel
confinement: devmode

apps:
  # Pi-hole is a DNS server at it's core, so we need to install a resolver
  # dnsmasq apps/parts forked from https://github.com/lool/dnsmasq-snap
  dnsmasq:
    command: bin/dnsmasq
    daemon: simple
    # The DNS server needs access to the network to function properly
    plugs:
      - network
      - network-bind
      - network-control

parts:
  dnsmasq:
    plugin: make
    source: git://thekelleys.org.uk/dnsmasq.git
    organize:
      usr/local/sbin/dnsmasq: bin/dnsmasq
    # A list of files from a part’s installation to expose in the snap
    snap:
      - bin/dnsmasq
  files-to-copy:
    # We need several supplemental files for the DNS and Web servers
    # Just use the dump plugin to copy them over
    plugin: dump
    source: .
    organize:
      # We need a custom config file for the DNS server
      dnsmasq.conf: /var/snap/pihole/common/dnsmasq.conf
Download as text