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:
commit
a5f9d11f8a
3 changed files with 31 additions and 20 deletions
|
@ -17,11 +17,11 @@
|
|||
- server: krypton
|
||||
hosts:
|
||||
- name: entities.svc.n39.eu
|
||||
- name: entities-validation.svc.n39.eu
|
||||
- server: pottwal
|
||||
hosts:
|
||||
- name: gitea.n39.eu
|
||||
- name: uritools.n39.eu
|
||||
- name: entities-validation.svc.n39.eu
|
||||
- name: sl.n39.eu
|
||||
- name: pad.n39.eu
|
||||
- name: brotherql-web.n39.eu
|
||||
|
|
30
krypton.yml
30
krypton.yml
|
@ -18,10 +18,21 @@
|
|||
ldap_org: "Netz39 e.V."
|
||||
ldap_base_dn: "dc=netz39,dc=de"
|
||||
|
||||
entities_validation_svc_host_port: 9001
|
||||
|
||||
|
||||
roles:
|
||||
- role: docker_setup
|
||||
vars:
|
||||
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:
|
||||
|
||||
|
@ -104,4 +115,23 @@
|
|||
comment: LDAP Docker Access
|
||||
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:
|
||||
|
|
19
pottwal.yml
19
pottwal.yml
|
@ -9,7 +9,6 @@
|
|||
|
||||
gitea_host_port: 9091
|
||||
uritools_host_port: 8080
|
||||
entities_validation_svc_host_port: 8082
|
||||
shlink_host_port: 8083
|
||||
shlink_domain_name: sl.n39.eu
|
||||
|
||||
|
@ -28,7 +27,6 @@
|
|||
dehydrated_domains:
|
||||
- name: gitea.n39.eu
|
||||
- name: uritools.n39.eu
|
||||
- name: entities-validation.svc.n39.eu
|
||||
- name: sl.n39.eu
|
||||
- name: pad.n39.eu
|
||||
- role: penguineer.dehydrated_cron
|
||||
|
@ -109,23 +107,6 @@
|
|||
site_name: uritools.n39.eu
|
||||
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
|
||||
docker_container:
|
||||
|
|
Loading…
Reference in a new issue