Skip to content
Snippets Groups Projects
Commit 79648956 authored by Martin van Es's avatar Martin van Es
Browse files

Configure test hosts

parent f887426f
Branches
Tags
No related merge requests found
{
"ttl": 60,
"max_hosts": 1,
"data": {
"": {
"a": [
[ "193.224.22.78", 10 ]
]
},
"srv1": {
"a": [
[ "193.224.22.78", 10 ]
]
},
"srv1-signer": {
"a": [
[ "193.224.22.78", 10 ]
]
},
"srv1-proxy": {
"a": [
[ "193.224.22.78", 10 ]
]
},
"srv2": {
"a": [
[ "145.100.180.185", 10 ]
]
},
"srv2-signer": {
"a": [
[ "145.100.180.185", 10 ]
]
},
"srv2-proxy": {
"a": [
[ "145.100.180.185", 10 ]
]
},
"srv3": {
"a": [
[ "62.217.72.109", 10 ]
]
},
"srv3-signer": {
"a": [
[ "62.217.72.109", 10 ]
]
},
"srv3-proxy": {
"a": [
[ "62.217.72.109", 10 ]
]
},
"signer": {
"a": [
[ "193.224.22.78", 10 ],
[ "145.100.180.185", 10 ],
[ "62.217.72.109", 10 ]
]
},
"signer.nl": {
"a": [
[ "145.100.180.185", 10 ]
]
},
"proxy": {
"a": [
[ "193.224.22.78", 10 ],
[ "145.100.180.185", 10 ],
[ "62.217.72.109", 10 ]
]
},
"proxy-eg": {
"a": [
[ "193.224.22.78", 10 ],
[ "145.100.180.185", 10 ],
[ "62.217.72.109", 10 ]
]
},
"proxy-tst": {
"a": [
[ "193.224.22.78", 10 ],
[ "145.100.180.185", 10 ],
[ "62.217.72.109", 10 ]
]
},
"proxy.nl": {
"a": [
[ "62.217.72.109", 10 ]
]
}
}
}
---
ttl: 60
max_hosts: 1
data:
"":
"a":
- [ "193.224.22.78" ]
- [ "145.100.180.185" ]
- [ "62.217.72.109" ]
- [ "145.100.181.134" ]
"srv1":
"a":
- [ "193.224.22.78" ]
"srv1-signer":
"a":
- [ "193.224.22.78" ]
"srv1-proxy":
"a":
- [ "193.224.22.78" ]
"srv2":
"a":
- [ "145.100.180.185" ]
"srv2-signer":
"a":
- [ "145.100.180.185" ]
"srv2-proxy":
"a":
- [ "145.100.180.185" ]
"srv3":
"a":
- [ "62.217.72.109" ]
"srv3-signer":
"a":
- [ "62.217.72.109" ]
"srv3-proxy":
"a":
- [ "62.217.72.109" ]
"srv4":
"a":
- [ "145.100.181.134" ]
"srv4-signer":
"a":
- [ "145.100.181.134" ]
"srv4-proxy":
"a":
- [ "145.100.181.134" ]
"signer":
"a":
- [ "193.224.22.78" ]
- [ "145.100.180.185" ]
- [ "62.217.72.109" ]
"signer.nl":
"a":
- [ "145.100.180.185" ]
"proxy":
"a":
- [ "193.224.22.78" ]
- [ "145.100.180.185" ]
- [ "62.217.72.109" ]
"proxy-eg":
"a":
- [ "193.224.22.78" ]
- [ "145.100.180.185" ]
- [ "62.217.72.109" ]
"proxy-tst":
"a":
- [ "193.224.22.78" ]
- [ "145.100.180.185" ]
- [ "62.217.72.109" ]
"proxy.nl":
"a":
- [ "62.217.72.109" ]
--- ---
tlds:
- srv.mdx.incubator.geant.org
hosts: hosts:
et2.gndev.hexaa.eu:
hostname: srv1
tld: srv.mdx.incubator.geant.org
mdserver:
test:
signer: hsm_signer
metadir: metadata/test
mdproxy:
test:
signer: 'http://localhost:5001'
edugain:
signer: 'http://srv2-signer.srv.mdx.incubator.geant.org'
mdxcdn.pt-38.utr.surfcloud.nl:
hostname: srv2
tld: srv.mdx.incubator.geant.org
mdserver:
edugain:
signer: hsm_signer
metadir: metadata/edugain
mdproxy:
test:
signer: 'http://srv1-signer.srv.mdx.incubator.geant.org'
edugain:
signer: 'http://localhost:5001'
62.217.72.109:
hostname: srv3
tld: srv.mdx.incubator.geant.org
mdproxy:
test:
signer: 'http://srv1-signer.srv.mdx.incubator.geant.org'
edugain:
signer: 'http://srv2-signer.srv.mdx.incubator.geant.org'
alternative-mdx.pt-76.utr.surfcloud.nl: alternative-mdx.pt-76.utr.surfcloud.nl:
hostname: srv4 hostname: srv4
tld: srv.mdx.incubator.geant.org
mdserver: mdserver:
test: test:
signer: normal_signer signer: normal_signer
...@@ -10,4 +44,3 @@ hosts: ...@@ -10,4 +44,3 @@ hosts:
mdproxy: mdproxy:
test: test:
signer: 'http://localhost:5001' signer: 'http://localhost:5001'
[mdserver] [mdserver]
et2.gndev.hexaa.eu
mdxcdn.pt-38.utr.surfcloud.nl
alternative-mdx.pt-76.utr.surfcloud.nl alternative-mdx.pt-76.utr.surfcloud.nl
[mdproxy] [mdproxy]
et2.gndev.hexaa.eu
mdxcdn.pt-38.utr.surfcloud.nl
alternative-mdx.pt-76.utr.surfcloud.nl alternative-mdx.pt-76.utr.surfcloud.nl
62.217.72.109
[geodns] [geodns]
alternative-mdx.pt-76.utr.surfcloud.nl et2.gndev.hexaa.eu
mdxcdn.pt-38.utr.surfcloud.nl
[all:children] [all:children]
mdserver mdserver
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
gather_facts: false gather_facts: false
roles: roles:
- {role: apache, tags: ['apache']} - {role: apache, tags: ['apache']}
- {role: alternate-mdx, tags: ['altmdx']}
- {role: mdserver, tags: ['mdserver']} - {role: mdserver, tags: ['mdserver']}
- name: MDProxy - name: MDProxy
...@@ -23,5 +22,4 @@ ...@@ -23,5 +22,4 @@
gather_facts: false gather_facts: false
roles: roles:
- {role: apache, tags: ['apache']} - {role: apache, tags: ['apache']}
- {role: alternate-mdx, tags: ['altmdx']}
- {role: mdproxy, tags: ['mdproxy']} - {role: mdproxy, tags: ['mdproxy']}
<VirtualHost *:80> <VirtualHost *:80>
ServerName {{ hosts[inventory_hostname]['hostname'] }}-signer.srv.mdx.incubator.geant.org ServerName {{ hosts[inventory_hostname]['hostname'] }}-signer.{{ hosts[inventory_hostname]['tld'] }}
ServerAlias signer.srv.mdx.incubator.geant.org ServerAlias signer.srv.mdx.incubator.geant.org
DocumentRoot /var/www/html DocumentRoot /var/www/html
AllowEncodedSlashes NoDecode AllowEncodedSlashes NoDecode
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
ProxyPassReverse "/" "http://127.0.0.1:5001/" ProxyPassReverse "/" "http://127.0.0.1:5001/"
</VirtualHost> </VirtualHost>
<VirtualHost *:80> <VirtualHost *:80>
ServerName {{ hosts[inventory_hostname]['hostname'] }}-proxy.srv.mdx.incubator.geant.org ServerName {{ hosts[inventory_hostname]['hostname'] }}-proxy.{{ hosts[inventory_hostname]['tld'] }}
ServerAlias proxy.srv.mdx.incubator.geant.org ServerAlias proxy.srv.mdx.incubator.geant.org
DocumentRoot /var/www/html DocumentRoot /var/www/html
AllowEncodedSlashes NoDecode AllowEncodedSlashes NoDecode
......
...@@ -43,11 +43,12 @@ ...@@ -43,11 +43,12 @@
- name: Copy geoDNS config - name: Copy geoDNS config
ansible.builtin.copy: ansible.builtin.copy:
src: "srv.mdx.incubator.geant.org.json" content: "{{ lookup('file', item + '.yaml') | from_yaml | to_nice_json }}"
dest: "{{ geo_dns_config }}" dest: "{{ geo_dns_config }}/{{ item }}.json"
mode: '0644' mode: '0644'
notify: notify:
- "enable geodns job" - "enable geodns job"
with_list: "{{ tlds }}"
- name: Copy GeoLite2DB's - name: Copy GeoLite2DB's
ansible.builtin.copy: ansible.builtin.copy:
......
...@@ -5,7 +5,7 @@ After=syslog.target network.target ...@@ -5,7 +5,7 @@ After=syslog.target network.target
[Service] [Service]
Type=simple Type=simple
WorkingDirectory={{ geodns_dir }} WorkingDirectory={{ geodns_dir }}
ExecStart=/opt/geodns/geodns -config={{ geo_dns_config }} -log -interface 0.0.0.0 -port 53 ExecStart=/opt/geodns/geodns -config={{ geo_dns_config }} -log -interface {{ ansible_facts.default_ipv4.address }} -port 53
ExecReload=/bin/kill -HUP $MAINPID ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure Restart=on-failure
RestartSec=10 RestartSec=10
......
--- ---
- name: Import alternate-mdx role
import_role:
name: alternate-mdx
- name: Create mdproxy config - name: Create mdproxy config
ansible.builtin.template: ansible.builtin.template:
src: "mdproxy.yaml.j2" src: "mdproxy.yaml.j2"
......
--- ---
- name: Import alternate-mdx role
import_role:
name: alternate-mdx
- name: Create mdserver config - name: Create mdserver config
ansible.builtin.template: ansible.builtin.template:
src: "mdserver.yaml.j2" src: "mdserver.yaml.j2"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment