Merge pull request '🚚 Move entities-validation service to krypton' (!78) from entities-validation into master

Reviewed-on: https://gitea.n39.eu/Netz39_Admin/netz39-infra-ansible/pulls/78
Reviewed-by: dkdent <dkdent@netz39.de>
This commit is contained in:
Stefan Haun 2022-09-06 23:35:47 +00:00
commit a5f9d11f8a
3 changed files with 31 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,10 +18,21 @@
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:
docker_data_root: "/srv/docker" docker_data_root: "/srv/docker"
- role: apache
- role: apache-letsencrypt # Uses configuration from dehydrated setup
- role: ansible-role-dehydrated
vars:
dehydrated_contact_email: "{{ server_admin }}"
dehydrated_domains:
- name: entities-validation.svc.n39.eu
- role: penguineer.dehydrated_cron
tasks: tasks:
@ -104,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: