Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions inventory/base/group_vars/all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ iptables_base_public_udp_ports: []
iptables_extra_public_udp_ports: []
iptables_public_udp_ports: "{{ iptables_base_public_udp_ports + iptables_extra_public_udp_ports }}"

unbound_forward_zones: []

# When adding new users, always pick a UID larger than the last UID, do not
# fill in holes in the middle of the range.
all_users:
Expand Down
4 changes: 4 additions & 0 deletions inventory/service/group_vars/otc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
unbound_forward_zones:
- name: "t-systems.com"
opts:
forward-addr: "100.125.4.25"
9 changes: 9 additions & 0 deletions inventory/service/groups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ groups:
apimon-stg:
- bridge.apimon.eco.tsi-dev.tsi-service.com

# OTC environment specific variables
otc:
- executor1.apimon.eco.tsi-dev.otc-service.com
- executor3.apimon.eco.tsi-dev.otc-service.com
- executor4.apimon.eco.tsi-dev.otc-service.com
- scheduler1.apimon.eco.tsi-dev.otc-service.com
- hybrid.apimon.eco.tsi-dev.otc-service.com
- preprod.apimon.eco.tsi-dev.otc-service.com

# Where local statsd should be deployed
statsd:
- scheduler1.apimon.eco.tsi-dev.otc-service.com
Expand Down
9 changes: 9 additions & 0 deletions playbooks/roles/base/unbound/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@
dest: /etc/resolv.conf
mode: 0444

- name: Write unbound forward file
template:
src: "unbound.confd.conf.j2"
dest: "/etc/unbound/conf.d/{{ zone.name }}.conf"
mode: "0644"
loop: "{{ unbound_forward_zones }}"
loop_control:
loop_var: "zone"

- name: Enable unbound
service:
name: unbound
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
forward-zone:
name: {{ zone.name }}
{% for k, v in zone.opts.iteritems() %}
{{ k }}: {{ v }}
{% endfor %}