Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Trust and Identity Incubator
mdx-saas-config
Commits
12436e7c
Commit
12436e7c
authored
May 06, 2022
by
Martin van Es
Browse files
Add all_martin.yml all.yaml file
parent
39cf89fa
Changes
10
Hide whitespace changes
Inline
Side-by-side
files/
geodns
.yaml
→
files/
srv.mdx.incubator.geant.org
.yaml
View file @
12436e7c
File moved
inventory/group_vars/all_martin.yml
0 → 100644
View file @
12436e7c
---
tld
:
srv.mdx.incubator.geant.org
all_yaml
:
https://gitlab.geant.org/TI_Incubator/mdx-saas-config/-/raw/main/inventory/group_vars/all_martin.yml
proxies
:
et2
:
hostname
:
srv1
alias
:
'
server-md2.et2.com'
mdproxy
:
test
:
signer
:
'
http://localhost:5001'
realm_alias
:
'
test-md.et2.com'
edugain
:
signer
:
'
http://srv2-signer.srv.mdx.incubator.geant.org'
realm_alias
:
'
edugain-md.et2.com'
mdxcdn
:
hostname
:
srv2
alias
:
'
server-md2.et2.com'
mdproxy
:
test
:
signer
:
'
http://srv1-signer.srv.mdx.incubator.geant.org'
realm_alias
:
'
test-md.foobar.com'
edugain
:
signer
:
'
http://localhost:5001'
okeanos
:
hostname
:
srv3
mdproxy
:
test
:
signer
:
'
http://srv1-signer.srv.mdx.incubator.geant.org'
realm_alias
:
'
test-md.barfoo.com'
edugain
:
signer
:
'
http://srv2-signer.srv.mdx.incubator.geant.org'
alternative-mdx
:
hostname
:
srv4
alias
:
'
server-md.example.com'
mdproxy
:
edugain
:
signer
:
'
http://srv2-signer.srv.mdx.incubator.geant.org'
realm_alias
:
'
edugain-md.blabla.com'
inventory/group_vars/mdsigner.yml.example
View file @
12436e7c
...
...
@@ -26,5 +26,5 @@ signers:
key_spec: "test.key"
cert_spec: "test.crt"
foobar:
nam
e: hsm_signer
typ
e: hsm_signer
key_spec: pkcs11:///usr/lib/softhsm/libsofthsm2.so/test?pin=secret
roles/apache/templates/md.conf.j2
View file @
12436e7c
{% if signers is defined and signers
[
inventory_hostname
]
.get('mdsigner') %}
{% if signers is defined and signers
.get(
inventory_hostname
, {})
.get('mdsigner') %}
# Signer configuration
<VirtualHost *:80>
ServerName {{ signers[inventory_hostname]['hostname'] }}-signer.{{ tld }}
...
...
@@ -12,9 +12,7 @@
</VirtualHost>
{% endif %}
{% if proxies is defined and proxies.get(inventory_hostname) %}
{% if proxies is defined and proxies[inventory_hostname].get('mdproxy') %}
{% if proxies is defined and proxies.get(inventory_hostname, {}).get('mdproxy') %}
# Global proxy configuration
<VirtualHost *:80>
ServerName {{ proxies[inventory_hostname]['hostname'] }}-proxy.{{ tld }}
...
...
@@ -42,5 +40,3 @@
</VirtualHost>
{% endfor %}
{% endif %}
{% endif %}
roles/geodns/handlers/main.yml
View file @
12436e7c
---
-
name
:
enable geodns job
-
name
:
enable geodns job
s
systemd
:
name
:
"
{{
item
}}"
enabled
:
true
...
...
roles/geodns/tasks/main.yml
View file @
12436e7c
...
...
@@ -36,7 +36,7 @@
chdir
:
"
{{
geodns_dir
}}"
when
:
geodns_git.changed or not geodns.stat.exists
notify
:
-
"
enable
geodns
job"
-
"
enable
geodns
job
s
"
-
name
:
Create config dirs if it does not exist
ansible.builtin.file
:
...
...
@@ -49,11 +49,11 @@
-
name
:
Copy geoDNS config
ansible.builtin.copy
:
src
:
"
geodns
.yaml"
dest
:
"
{{
geodns_config
}}/
geodns
.yaml"
src
:
"
{{
tld
}}
.yaml"
dest
:
"
{{
geodns_config
}}/
{{
tld
}}
.yaml"
mode
:
'
0644'
notify
:
-
"
enable
geodns
job"
-
"
enable
geodns
job
s
"
-
name
:
Copy geoDNS config parser
ansible.builtin.copy
:
...
...
@@ -61,7 +61,7 @@
dest
:
"
{{
geodns_config
}}/geoconfig.py"
mode
:
'
0755'
notify
:
-
"
enable
geodns
job"
-
"
enable
geodns
job
s
"
-
name
:
Download GeoLite2DB's
ansible.builtin.unarchive
:
...
...
@@ -75,7 +75,7 @@
-
GeoLite2-City
-
GeoLite2-Country
notify
:
-
"
enable
geodns
job"
-
"
enable
geodns
job
s
"
when
:
geodns_licence is defined
-
name
:
Create geoDNS config
...
...
@@ -83,7 +83,7 @@
src
:
"
geodns.conf.j2"
dest
:
"
{{
geodns_config
}}/geodns.conf"
notify
:
-
"
enable
geodns
job"
-
"
enable
geodns
job
s
"
-
name
:
Run GeoDns config job once
command
:
...
...
@@ -101,4 +101,4 @@
-
geodns-update.service
-
geodns-update.timer
notify
:
-
"
enable
geodns
job"
-
"
enable
geodns
job
s
"
roles/local/tasks/main.yml
View file @
12436e7c
...
...
@@ -12,6 +12,12 @@
src
:
"
local.j2"
dest
:
"
{{
mdxsaas_dir
}}/inventory/local"
-
name
:
Copy mdproxy all.yaml
ansible.builtin.get_url
:
url
:
"
{{
all_yaml
}}"
dest
:
"
{{
mdxsaas_dir
}}/inventory/group_vars/all.yaml"
mode
:
'
0644'
-
name
:
Write MDX-SAAS repo version
shell
:
cmd
:
"
git
rev-parse
HEAD
>
/tmp/mdx-saas-revision"
...
...
roles/mdproxy/handlers/main.yml
View file @
12436e7c
---
-
name
:
enable mdproxy job
-
name
:
enable mdproxy job
s
systemd
:
name
:
"
{{
item
}}"
enabled
:
true
...
...
roles/mdproxy/tasks/main.yml
View file @
12436e7c
...
...
@@ -9,7 +9,7 @@
src
:
"
mdproxy.yaml.j2"
dest
:
"
{{
altmdx_dir
}}/mdproxy.yaml"
notify
:
-
"
enable
mdproxy
job"
-
"
enable
mdproxy
job
s
"
-
name
:
Copy mdproxy service files
ansible.builtin.template
:
...
...
@@ -20,4 +20,4 @@
-
mdproxy-update.service
-
mdproxy-update.timer
notify
:
-
"
enable
mdproxy
job"
-
"
enable
mdproxy
job
s
"
roles/mdsigner/templates/mdsigner.yaml.j2
View file @
12436e7c
...
...
@@ -3,7 +3,7 @@
{% for realm, values in mdsigners.items() %}
{{ realm }}:
signer:
nam
e: {{ values.type }}
typ
e: {{ values.type }}
key_spec: {{ values.key_spec }}
cert_spec: {{ values.get('cert_spec') }}
metadir: metadata/{{ realm }}
...
...
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