Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
slapos
Commits
28b83c5a
Commit
28b83c5a
authored
Mar 26, 2020
by
Bryton Lacquement
🚪
Committed by
Thomas Gambier
Jul 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
powerdns: use GeoLite2-Country.mmdb as database
parent
a49a171a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
+9
-5
component/powerdns/buildout.cfg
component/powerdns/buildout.cfg
+4
-3
software/powerdns/buildout.hash.cfg
software/powerdns/buildout.hash.cfg
+2
-2
software/powerdns/instance-powerdns.cfg
software/powerdns/instance-powerdns.cfg
+1
-0
software/powerdns/template/pdns.conf.jinja2
software/powerdns/template/pdns.conf.jinja2
+2
-0
No files found.
component/powerdns/buildout.cfg
View file @
28b83c5a
...
...
@@ -11,6 +11,7 @@ extends =
# For geoip backend
# https://doc.powerdns.com/authoritative/backends/geoip.html
../geoip2/buildout.cfg
../yaml-cpp/buildout.cfg
parts =
...
...
@@ -30,9 +31,9 @@ configure-options =
--disable-lua-records
pkg_config_depends = ${yaml-cpp:location}/lib/pkgconfig
environment =
PATH=${autoconf:location}/bin:${automake:location}/bin:${libtool:location}/bin:${make:location}/bin:${pkgconfig:location}/bin:%(PATH)s
LDFLAGS=-L${boost-lib:location}/lib -Wl,-rpath=${boost-lib:location}/lib -L${openssl:location}/lib -Wl,-rpath=${openssl:location}/lib -L${yaml-cpp:location}/lib -Wl,-rpath=${yaml-cpp:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib
CPPFLAGS=-I${boost-lib:location}/include -I${yaml-cpp:location}/include
PATH=${autoconf:location}/bin:${automake:location}/bin:${lib
maxminddb:location}/bin:${lib
tool:location}/bin:${make:location}/bin:${pkgconfig:location}/bin:%(PATH)s
LDFLAGS=-L${boost-lib:location}/lib -Wl,-rpath=${boost-lib:location}/lib -L${
libmaxminddb:location}/lib -Wl,-rpath=${libmaxminddb:location}/lib -L${
openssl:location}/lib -Wl,-rpath=${openssl:location}/lib -L${yaml-cpp:location}/lib -Wl,-rpath=${yaml-cpp:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib
CPPFLAGS=-I${boost-lib:location}/include -I${
libmaxminddb:location}/include -I${
yaml-cpp:location}/include
PKG_CONFIG_PATH=${:pkg_config_depends}
# XXX: Override the default value "-Llib -lyaml-cpp"; "-Llib" is a problem
YAML_LIBS = -lyaml-cpp
...
...
software/powerdns/buildout.hash.cfg
View file @
28b83c5a
...
...
@@ -18,11 +18,11 @@ md5sum = 863fdbee998fd4f69fe359667768e33c
[template-powerdns]
filename = instance-powerdns.cfg
md5sum =
681cd9564e491d1f7b7ccb810f8ca7df
md5sum =
708e52e8161d64e6d826c630cfa70d5c
[template-pdns-configuration]
_update_hash_filename_ = template/pdns.conf.jinja2
md5sum =
7934b7037344678eff3031e1e73e0bb2
md5sum =
8f3e1bd21480f5e9d8cefa33d4527516
[template-dns-replicate]
_update_hash_filename_ = instance-powerdns-replicate.cfg.jinja2
...
...
software/powerdns/instance-powerdns.cfg
View file @
28b83c5a
...
...
@@ -65,6 +65,7 @@ webserver-port = 8088
[geo]
ip-map-zonefile = ${iso-list:target}
geo-maps = $${pdns-directory:geo-maps}
database = ${geolite2-country:location}/GeoLite2-Country.mmdb
[pdns-directory]
recipe = slapos.cookbook:mkdirectory
...
...
software/powerdns/template/pdns.conf.jinja2
View file @
28b83c5a
...
...
@@ -88,4 +88,6 @@ geo-ip-map-zonefile={{ geo.get('ip-map-zonefile') }}
# assume you chose a directory.
geo-maps={{ geo.get('geo-maps') }}
geoip-database-files={{ geo['database'] }}
# -------------------------------------------------------------------------
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment