🚚 Move entities validation service from pottwal to krypton

This is a service handling member data, so it moves to krypton.
This commit is contained in:
Stefan Haun 2022-09-06 20:31:27 +02:00
parent 2802784e7a
commit feaf052f65
3 changed files with 24 additions and 20 deletions

View file

@ -17,11 +17,11 @@
- server: krypton - server: krypton
hosts: hosts:
- name: entities.svc.n39.eu - name: entities.svc.n39.eu
- name: entities-validation.svc.n39.eu
- server: pottwal - server: pottwal
hosts: hosts:
- name: gitea.n39.eu - name: gitea.n39.eu
- name: uritools.n39.eu - name: uritools.n39.eu
- name: entities-validation.svc.n39.eu
- name: sl.n39.eu - name: sl.n39.eu
- name: pad.n39.eu - name: pad.n39.eu
- name: brotherql-web.n39.eu - name: brotherql-web.n39.eu

View file

@ -18,6 +18,9 @@
ldap_org: "Netz39 e.V." ldap_org: "Netz39 e.V."
ldap_base_dn: "dc=netz39,dc=de" ldap_base_dn: "dc=netz39,dc=de"
entities_validation_svc_host_port: 9001
roles: roles:
- role: docker_setup - role: docker_setup
vars: vars:
@ -28,6 +31,7 @@
vars: vars:
dehydrated_contact_email: "{{ server_admin }}" dehydrated_contact_email: "{{ server_admin }}"
dehydrated_domains: dehydrated_domains:
- name: entities-validation.svc.n39.eu
- role: penguineer.dehydrated_cron - role: penguineer.dehydrated_cron
tasks: tasks:
@ -111,4 +115,23 @@
comment: LDAP Docker Access comment: LDAP Docker Access
loop: "{{ docker_ip_ranges }}" loop: "{{ docker_ip_ranges }}"
- name: Ensure container for entities validation service is running
docker_container:
name: entities_validation_svc
image: netz39/entities_validation_svc:v1.0.0
pull: true
state: started
detach: yes
ports:
- "127.0.0.1:{{ entities_validation_svc_host_port }}:8080"
restart_policy: unless-stopped
- name: Setup proxy site entities-validation.svc.n39.eu
include_role:
name: setup-http-site-proxy
vars:
site_name: entities-validation.svc.n39.eu
proxy_port: "{{ entities_validation_svc_host_port }}"
handlers: handlers:

View file

@ -9,7 +9,6 @@
gitea_host_port: 9091 gitea_host_port: 9091
uritools_host_port: 8080 uritools_host_port: 8080
entities_validation_svc_host_port: 8082
shlink_host_port: 8083 shlink_host_port: 8083
shlink_domain_name: sl.n39.eu shlink_domain_name: sl.n39.eu
@ -28,7 +27,6 @@
dehydrated_domains: dehydrated_domains:
- name: gitea.n39.eu - name: gitea.n39.eu
- name: uritools.n39.eu - name: uritools.n39.eu
- name: entities-validation.svc.n39.eu
- name: sl.n39.eu - name: sl.n39.eu
- name: pad.n39.eu - name: pad.n39.eu
- role: penguineer.dehydrated_cron - role: penguineer.dehydrated_cron
@ -109,23 +107,6 @@
site_name: uritools.n39.eu site_name: uritools.n39.eu
proxy_port: "{{ uritools_host_port }}" proxy_port: "{{ uritools_host_port }}"
- name: Ensure container for entities validation service is running
docker_container:
name: entities_validation_svc
image: netz39/entities_validation_svc:v1.0.0
pull: true
state: started
detach: yes
ports:
- "127.0.0.1:{{ entities_validation_svc_host_port }}:8080"
restart_policy: unless-stopped
- name: Setup proxy site entities-validation.svc.n39.eu
include_role:
name: setup-http-site-proxy
vars:
site_name: entities-validation.svc.n39.eu
proxy_port: "{{ entities_validation_svc_host_port }}"
- name: Ensure container for shlink is running - name: Ensure container for shlink is running
docker_container: docker_container: