mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-07-22 16:21:09 +02:00
Renamed multiple roles incl. oauth2 to to web-app-*
This commit is contained in:
parent
4717e33649
commit
356c214718
@ -15,7 +15,7 @@ ports:
|
|||||||
web-app-yourls: 4184
|
web-app-yourls: 4184
|
||||||
web-app-pgadmin: 4185
|
web-app-pgadmin: 4185
|
||||||
web-app-phpldapadmin: 4186
|
web-app-phpldapadmin: 4186
|
||||||
fusiondirectory: 4187
|
web-app-fusiondirectory: 4187
|
||||||
web-app-gitea: 4188
|
web-app-gitea: 4188
|
||||||
web-app-snipe-it: 4189
|
web-app-snipe-it: 4189
|
||||||
ldap:
|
ldap:
|
||||||
@ -59,7 +59,7 @@ ports:
|
|||||||
web-app-snipe-it: 8035
|
web-app-snipe-it: 8035
|
||||||
web-app-sphinx: 8036
|
web-app-sphinx: 8036
|
||||||
web-app-phpldapadmin: 8037
|
web-app-phpldapadmin: 8037
|
||||||
fusiondirectory: 8038
|
web-app-fusiondirectory: 8038
|
||||||
web-app-navigator: 8039
|
web-app-navigator: 8039
|
||||||
web-app-espocrm: 8040
|
web-app-espocrm: 8040
|
||||||
syncope: 8041
|
syncope: 8041
|
||||||
|
@ -76,7 +76,7 @@ defaults_networks:
|
|||||||
subnet: 192.168.103.0/28
|
subnet: 192.168.103.0/28
|
||||||
web-app-phpldapadmin:
|
web-app-phpldapadmin:
|
||||||
subnet: 192.168.103.16/28
|
subnet: 192.168.103.16/28
|
||||||
fusiondirectory:
|
web-app-fusiondirectory:
|
||||||
subnet: 192.168.103.32/28
|
subnet: 192.168.103.32/28
|
||||||
web-app-navigator:
|
web-app-navigator:
|
||||||
subnet: 192.168.103.48/28
|
subnet: 192.168.103.48/28
|
||||||
|
@ -1 +1 @@
|
|||||||
application_id: bookwyrm
|
application_id: web-app-bookwyrm
|
@ -1 +1 @@
|
|||||||
application_id: "fusiondirectory"
|
application_id: "web-app-fusiondirectory"
|
@ -1,6 +1,6 @@
|
|||||||
- name: "Transfering oauth2-proxy-keycloak.cfg.j2 to {{( application_id | get_docker_paths(path_docker_compose_instances) ).directories.volumes }}"
|
- name: "Transfering oauth2-proxy-keycloak.cfg.j2 to {{( application_id | get_docker_paths(path_docker_compose_instances) ).directories.volumes }}"
|
||||||
template:
|
template:
|
||||||
src: "{{ playbook_dir }}/roles/web-app-oauth2-proxy/templates/oauth2-proxy-keycloak.cfg.j2"
|
src: "{{ playbook_dir }}/roles/web-app-oauth2-proxy/templates/oauth2-proxy-keycloak.cfg.j2"
|
||||||
dest: "{{( application_id | get_docker_paths(path_docker_compose_instances) ).directories.volumes }}{{applications | get_app_conf('oauth2-proxy','configuration_file')}}"
|
dest: "{{( application_id | get_docker_paths(path_docker_compose_instances) ).directories.volumes }}{{applications | get_app_conf('web-app-oauth2-proxy','configuration_file')}}"
|
||||||
notify:
|
notify:
|
||||||
- docker compose up
|
- docker compose up
|
@ -1,11 +1,11 @@
|
|||||||
{% if applications | get_app_conf(application_id, 'features.oauth2', False) %}
|
{% if applications | get_app_conf(application_id, 'features.oauth2', False) %}
|
||||||
oauth2-proxy:
|
oauth2-proxy:
|
||||||
image: quay.io/oauth2-proxy/oauth2-proxy:{{applications['oauth2-proxy'].version}}
|
image: quay.io/oauth2-proxy/oauth2-proxy:{{applications['web-app-oauth2-proxy'].version}}
|
||||||
restart: {{docker_restart_policy}}
|
restart: {{docker_restart_policy}}
|
||||||
command: --config /oauth2-proxy.cfg
|
command: --config /oauth2-proxy.cfg
|
||||||
hostname: oauth2-proxy
|
hostname: oauth2-proxy
|
||||||
ports:
|
ports:
|
||||||
- {{ports.localhost.oauth2_proxy[application_id]}}:4180/tcp
|
- {{ports.localhost.oauth2_proxy[application_id]}}:4180/tcp
|
||||||
volumes:
|
volumes:
|
||||||
- "{{docker_compose.directories.volumes}}{{applications | get_app_conf('oauth2-proxy','configuration_file')}}:/oauth2-proxy.cfg"
|
- "{{docker_compose.directories.volumes}}{{applications | get_app_conf('web-app-oauth2-proxy','configuration_file')}}:/oauth2-proxy.cfg"
|
||||||
{% endif %}
|
{% endif %}
|
@ -1 +1 @@
|
|||||||
application_id: oauth2-proxy
|
application_id: web-app-oauth2-proxy
|
@ -2,9 +2,9 @@
|
|||||||
# Better load the repositories into /opt/docker/[servicename]/services, build them there and then use a docker-compose file for customizing
|
# Better load the repositories into /opt/docker/[servicename]/services, build them there and then use a docker-compose file for customizing
|
||||||
# @todo Refactor\Remove
|
# @todo Refactor\Remove
|
||||||
# @deprecated
|
# @deprecated
|
||||||
- name: "Merge detached_files with applications | get_app_conf('oauth2-proxy','configuration_file')"
|
- name: "Merge detached_files with applications | get_app_conf('web-app-oauth2-proxy','configuration_file')"
|
||||||
set_fact:
|
set_fact:
|
||||||
merged_detached_files: "{{ detached_files + [applications | get_app_conf('oauth2-proxy','configuration_file')] }}"
|
merged_detached_files: "{{ detached_files + [applications | get_app_conf('web-app-oauth2-proxy','configuration_file')] }}"
|
||||||
when: "{{ applications | get_app_conf(application_id,'features.oauth2')"
|
when: "{{ applications | get_app_conf(application_id,'features.oauth2')"
|
||||||
|
|
||||||
- name: "backup detached files"
|
- name: "backup detached files"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user