mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-11-07 13:48:00 +00:00
Compare commits
4 Commits
06e4323faa
...
eca567fefd
| Author | SHA1 | Date | |
|---|---|---|---|
| eca567fefd | |||
| 905f461ee8 | |||
| 9f0b259ba9 | |||
| 3d99226f37 |
@@ -1,9 +1,6 @@
|
|||||||
- block:
|
|
||||||
- include_tasks: 01_core.yml
|
- include_tasks: 01_core.yml
|
||||||
when:
|
when: run_once_sys_ctl_bkp_docker_2_loc is not defined
|
||||||
- run_once_sys_ctl_bkp_docker_2_loc is not defined
|
|
||||||
|
|
||||||
- name: "include 04_seed-database-to-backup.yml"
|
- name: "include 04_seed-database-to-backup.yml"
|
||||||
include_tasks: 04_seed-database-to-backup.yml
|
include_tasks: 04_seed-database-to-backup.yml
|
||||||
when:
|
when: BKP_DOCKER_2_LOC_DB_ENABLED | bool
|
||||||
- BKP_DOCKER_2_LOC_DB_ENABLED | bool
|
|
||||||
|
|||||||
@@ -21,6 +21,12 @@
|
|||||||
|
|
||||||
- name: "Include Seed routines for '{{ application_id }}' database backup"
|
- name: "Include Seed routines for '{{ application_id }}' database backup"
|
||||||
include_tasks: "{{ [ playbook_dir, 'roles/sys-ctl-bkp-docker-2-loc/tasks/04_seed-database-to-backup.yml' ] | path_join }}"
|
include_tasks: "{{ [ playbook_dir, 'roles/sys-ctl-bkp-docker-2-loc/tasks/04_seed-database-to-backup.yml' ] | path_join }}"
|
||||||
|
vars:
|
||||||
|
database_type: "postgres"
|
||||||
|
database_instance: "{{ entity_name }}"
|
||||||
|
database_password: "{{ applications | get_app_conf(application_id, 'credentials.postgresql_secret') }}"
|
||||||
|
database_username: "postgres"
|
||||||
|
database_name: "" # Multiple databases
|
||||||
|
|
||||||
- name: configure websocket_upgrade.conf
|
- name: configure websocket_upgrade.conf
|
||||||
copy:
|
copy:
|
||||||
|
|||||||
@@ -2,13 +2,6 @@
|
|||||||
application_id: "web-app-bigbluebutton"
|
application_id: "web-app-bigbluebutton"
|
||||||
entity_name: "{{ application_id | get_entity_name }}"
|
entity_name: "{{ application_id | get_entity_name }}"
|
||||||
|
|
||||||
# Database configuration
|
|
||||||
database_type: "postgres"
|
|
||||||
database_instance: "{{ application_id | get_entity_name }}"
|
|
||||||
database_password: "{{ applications | get_app_conf(application_id, 'credentials.postgresql_secret') }}"
|
|
||||||
database_username: "postgres"
|
|
||||||
database_name: "" # Multiple databases
|
|
||||||
|
|
||||||
# Proxy
|
# Proxy
|
||||||
domain: "{{ domains | get_domain(application_id) }}"
|
domain: "{{ domains | get_domain(application_id) }}"
|
||||||
http_port: "{{ ports.localhost.http[application_id] }}"
|
http_port: "{{ ports.localhost.http[application_id] }}"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
shell: |
|
shell: |
|
||||||
docker exec -i --user {{ GITEA_USER }} {{ GITEA_CONTAINER }} \
|
docker exec -i --user {{ GITEA_USER }} {{ GITEA_CONTAINER }} \
|
||||||
gitea admin auth list \
|
gitea admin auth list \
|
||||||
| awk -v name="LDAP ({{ PRIMARY_DOMAIN }})" '$0 ~ name {print $1; exit}'
|
| awk -v name="LDAP ({{ SOFTWARE_NAME }})" '$0 ~ name {print $1; exit}'
|
||||||
args:
|
args:
|
||||||
chdir: "{{ docker_compose.directories.instance }}"
|
chdir: "{{ docker_compose.directories.instance }}"
|
||||||
register: ldap_source_id_raw
|
register: ldap_source_id_raw
|
||||||
|
|||||||
@@ -3,9 +3,16 @@
|
|||||||
image: quay.io/oauth2-proxy/oauth2-proxy:{{ applications['web-app-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
|
||||||
|
container_name: {{ application_id | get_entity_name }}-oauth2-proxy
|
||||||
hostname: oauth2-proxy
|
hostname: oauth2-proxy
|
||||||
ports:
|
ports:
|
||||||
- 127.0.0.1:{{ ports.localhost.oauth2_proxy[application_id] }}:4180/tcp
|
- 127.0.0.1:{{ ports.localhost.oauth2_proxy[application_id] }}:4180/tcp
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ docker_compose.directories.volumes }}{{ applications | get_app_conf('web-app-oauth2-proxy','configuration_file')}}:/oauth2-proxy.cfg"
|
- "{{ docker_compose.directories.volumes }}{{ applications | get_app_conf('web-app-oauth2-proxy','configuration_file')}}:/oauth2-proxy.cfg"
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "/bin/oauth2-proxy", "--version"]
|
||||||
|
interval: 30s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 1
|
||||||
|
start_period: 5s
|
||||||
{% endif %}
|
{% endif %}
|
||||||
Reference in New Issue
Block a user