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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
slapos
Commits
a5c92346
Commit
a5c92346
authored
Jun 29, 2018
by
Guillaume Hervier
Committed by
Rafael Monnerat
Jul 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
powerdns: Add port-redirection config file generation
parent
ee7823cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
software/powerdns/instance-powerdns.cfg
software/powerdns/instance-powerdns.cfg
+12
-0
software/powerdns/software.cfg
software/powerdns/software.cfg
+1
-1
No files found.
software/powerdns/instance-powerdns.cfg
View file @
a5c92346
...
@@ -92,6 +92,17 @@ recipe = slapos.cookbook:wrapper
...
@@ -92,6 +92,17 @@ recipe = slapos.cookbook:wrapper
command-line = ${powerdns:location}/bin/pdns_control reload --config-dir=$${pdns-directory:configuration}
command-line = ${powerdns:location}/bin/pdns_control reload --config-dir=$${pdns-directory:configuration}
wrapper-path = $${directory:etc-run}/pdns-reload
wrapper-path = $${directory:etc-run}/pdns-reload
# Port redirection
[port-redirection]
<= jinja2-template-base
template = inline:
{%- raw %}
[{"srcPort": 53, "destPort": {{ pdns['port'] }}}]
{% endraw -%}
rendered = $${buildout:directory}/.slapos-port-redirect
extra-context =
section pdns pdns
# Promises
# Promises
[pdns-promise-listen-port]
[pdns-promise-listen-port]
recipe = slapos.cookbook:check_port_listening
recipe = slapos.cookbook:check_port_listening
...
@@ -136,6 +147,7 @@ parts =
...
@@ -136,6 +147,7 @@ parts =
pdns-configuration-template
pdns-configuration-template
pdns-server
pdns-server
pdns-reload
pdns-reload
port-redirection
pdns-promise-listen-port
pdns-promise-listen-port
monitor-base
monitor-base
publish-connection-informations
publish-connection-informations
...
...
software/powerdns/software.cfg
View file @
a5c92346
...
@@ -25,7 +25,7 @@ mode = 0644
...
@@ -25,7 +25,7 @@ mode = 0644
[template-powerdns]
[template-powerdns]
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-powerdns.cfg
url = ${:_profile_base_location_}/instance-powerdns.cfg
md5sum =
7710007c0bd1817e3c1485ea9ece1e23
md5sum =
8ef7c87e23dd63c945c7e292fef7385d
output = ${buildout:directory}/template-powerdns.cfg
output = ${buildout:directory}/template-powerdns.cfg
mode = 0644
mode = 0644
...
...
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