Commit 097b2af7 authored by Bryton Lacquement's avatar Bryton Lacquement 🚪 Committed by Thomas Gambier

powerdns: target Python 3

parent c943d15f
...@@ -26,7 +26,7 @@ md5sum = 7934b7037344678eff3031e1e73e0bb2 ...@@ -26,7 +26,7 @@ md5sum = 7934b7037344678eff3031e1e73e0bb2
[template-dns-replicate] [template-dns-replicate]
_update_hash_filename_ = instance-powerdns-replicate.cfg.jinja2 _update_hash_filename_ = instance-powerdns-replicate.cfg.jinja2
md5sum = 46acd4ed071df8d7139dcd0434be42eb md5sum = 670bac1a8463e08814db82a81ddae1bf
[iso-list] [iso-list]
_update_hash_filename_ = template/zz.countries.nexedi.dk.rbldnsd _update_hash_filename_ = template/zz.countries.nexedi.dk.rbldnsd
......
...@@ -60,7 +60,7 @@ context = ...@@ -60,7 +60,7 @@ context =
<= replicate <= replicate
name = {{dns_name}} name = {{dns_name}}
{% set state_key = "-dns-%s-state" % i %} {% set state_key = "-dns-%s-state" % i %}
{% if slapparameter_dict.has_key(state_key) %} {% if state_key in slapparameter_dict %}
state = {{ slapparameter_dict.pop(state_key) }} state = {{ slapparameter_dict.pop(state_key) }}
{% endif%} {% endif%}
config-zone = {{ zone }} config-zone = {{ zone }}
...@@ -95,7 +95,7 @@ monitor-url-list += ...@@ -95,7 +95,7 @@ monitor-url-list +=
<= slap-connection <= slap-connection
recipe = slapos.cookbook:requestoptional recipe = slapos.cookbook:requestoptional
{% set dns_software_url_key = "-dns-software-release-url" %} {% set dns_software_url_key = "-dns-software-release-url" %}
{% if slapparameter_dict.has_key(dns_software_url_key) %} {% if dns_software_url_key in slapparameter_dict %}
software-url = {{ slapparameter_dict.pop(dns_software_url_key) }} software-url = {{ slapparameter_dict.pop(dns_software_url_key) }}
{% else %} {% else %}
software-url = ${slap-connection:software-release-url} software-url = ${slap-connection:software-release-url}
...@@ -104,7 +104,7 @@ software-type = {{dns_type}} ...@@ -104,7 +104,7 @@ software-type = {{dns_type}}
return = private-ipv4 public-ipv4 slave-instance-information-list monitor-base-url return = private-ipv4 public-ipv4 slave-instance-information-list monitor-base-url
config-server-admin = {{ server_admin }} config-server-admin = {{ server_admin }}
config-ns-record = {{ ns_record }} config-ns-record = {{ ns_record }}
{% for parameter, value in slapparameter_dict.iteritems() -%} {% for parameter, value in slapparameter_dict.items() -%}
config-{{parameter}} = {{ value }} config-{{parameter}} = {{ value }}
{% endfor -%} {% endfor -%}
config-{{ slave_list_name }} = {{ json_module.dumps(slave_instance_list) }} config-{{ slave_list_name }} = {{ json_module.dumps(slave_instance_list) }}
......
...@@ -10,6 +10,9 @@ parts = ...@@ -10,6 +10,9 @@ parts =
slapos-cookbook slapos-cookbook
eggs eggs
[python]
part = python3
[gcc] [gcc]
# For old version of PowerDNS and Ragel. # For old version of PowerDNS and Ragel.
part = gcc-5.5 part = gcc-5.5
......
...@@ -13,3 +13,4 @@ eggs -= ...@@ -13,3 +13,4 @@ eggs -=
[template] [template]
extra = extra =
${slapos.test.monitor-setup:setup} ${slapos.test.monitor-setup:setup}
${slapos.test.powerdns-setup:setup}
...@@ -249,7 +249,6 @@ extra = ...@@ -249,7 +249,6 @@ extra =
${slapos.test.htmlvalidatorserver-setup:setup} ${slapos.test.htmlvalidatorserver-setup:setup}
${slapos.test.slapos-master-setup:setup} ${slapos.test.slapos-master-setup:setup}
${slapos.test.plantuml-setup:setup} ${slapos.test.plantuml-setup:setup}
${slapos.test.powerdns-setup:setup}
${slapos.test.proftpd-setup:setup} ${slapos.test.proftpd-setup:setup}
${slapos.test.re6stnet-setup:setup} ${slapos.test.re6stnet-setup:setup}
${slapos.test.seleniumserver-setup:setup} ${slapos.test.seleniumserver-setup:setup}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment