conteneurisation des DNS (2 versions de Dockerfile)
This commit is contained in:
44
dns-v2/primary/Makefile
Normal file
44
dns-v2/primary/Makefile
Normal file
@@ -0,0 +1,44 @@
|
||||
##############################################################################
|
||||
##
|
||||
## PowerDNS configuration
|
||||
##
|
||||
##############################################################################
|
||||
|
||||
# Hosts
|
||||
|
||||
# svoboda, yuuai
|
||||
# SECONDARY_IPS = 129.104.30.37 129.104.30.32
|
||||
SECONDARY_IPS = 129.18.0.43 129.18.0.45
|
||||
|
||||
#############################################################################
|
||||
#
|
||||
# Computed variables
|
||||
#
|
||||
|
||||
GENERATED = bindbackend.conf pdns.d/main.conf
|
||||
|
||||
DOMAINS := $(patsubst pri/%,%,$(wildcard pri/*))
|
||||
|
||||
#############################################################################
|
||||
#
|
||||
# Rules
|
||||
#
|
||||
|
||||
all: $(GENERATED)
|
||||
.PHONY: all
|
||||
|
||||
clean:
|
||||
$(RM) $(GENERATED)
|
||||
.PHONY: clean
|
||||
|
||||
bindbackend.conf: tpl/bindbackend.conf.template
|
||||
$(RM) $@
|
||||
set -e; \
|
||||
for fqdn in $(DOMAINS); do \
|
||||
sed -e "s/@@FQDN@@/$$fqdn/" $< >> $@ ; \
|
||||
done
|
||||
|
||||
pdns.d/main.conf: tpl/main.conf.template
|
||||
sed -e "s/@@SECONDARY_IPS@@/$(SECONDARY_IPS)/" $< > $@
|
||||
|
||||
$(GENERATED): Makefile
|
||||
Reference in New Issue
Block a user