Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add small MariaDB docker role, for running on a single node #459

Merged
merged 3 commits into from
Dec 2, 2024

Conversation

quartje
Copy link
Contributor

@quartje quartje commented Nov 26, 2024

The role mariadbdocker is added, which provisions a MariaDB docker container on the Docker host. It allows for hosting all MariaDB databases.
A docker network is created, and all roles that require MariaDB access have access to this network

@quartje quartje force-pushed the feature/mariadb_docker branch from f92e65d to 4d17265 Compare December 2, 2024 09:33
Copy link
Member

@baszoetekouw baszoetekouw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

de defaults zijn niet helemaal consistent (op een paar plaatsen is het een dict geworden ipv een list van dicts)>
En er lijken een paar unrelated changes in te zitten. Zijn die expres?

- name: Create and start the server container
community.docker.docker_container:
name: aaserver
image: ghcr.io/openconext/openconext-attribute-aggregation/aa-server:{{ attribute_aggregation_server_version }}
pull: true
restart_policy: "always"
state: started
networks:
- name: "loadbalancer"
networks: "{{ aa_docker_networks }}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je vervangt hierdoor de list door een hash. Moet de default niet zijn:

aa_docker_networks:
  - name: loadbalancer

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Klopt. Het aardige is dat het wel gewoon werkt, alles op TEST is met deze branch gedeployed :)

@@ -107,3 +107,5 @@ engine_site_notice_show: false
engineblock_log_attributes: []

engine_php_memory: 256M
engine_docker_networks:
name: loadbalancer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

idem

@@ -15,3 +15,5 @@ invite_manage_provision_oauth_rs_scopes: "openid"
invite_mock_install: false
# Override is in the dockerX.env host_var files
invite_cronjobmaster: true
invite_docker_networks:
- name: loadbalancer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hier gaat het wel goed ;)

@@ -20,7 +20,7 @@ parameters:
password: "{{ teams_api_lifecycle_password }}"
verify_ssl: true
invite:
url: 'https://invite.{{ base_domain }}/api/'
url: 'https://invite.{{ base_domain }}/api/external/v1/'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dit lijtk een ongerelateerde change. Is dat bewust?

@@ -30,3 +30,5 @@ manage_tabs_enabled:
- single_tenant_template
- provisioning
- sram
manage_docker_networks:
name: loadbalancer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

en weer mis :)

@@ -0,0 +1,2 @@
gateway_docker_networks:
name: loadbalancer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dit moet weer een list zijn

@@ -0,0 +1,2 @@
middelware_docker_networks:
name: loadbalancer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

en deze ook


- name: Include vm tasks when running on a vm
include_tasks: vm.yml
when: "'docker' not in group_names"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

per abuis gecommit?

@@ -0,0 +1,2 @@
tiqr_docker_networks:
name: loadbalancer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moet weer een list zijn

@@ -0,0 +1,2 @@
webauthn_docker_networks:
name: loadbalancer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moet list zijn

@quartje quartje force-pushed the feature/mariadb_docker branch from 4d17265 to ec01572 Compare December 2, 2024 10:35
@quartje
Copy link
Contributor Author

quartje commented Dec 2, 2024

All network definitions in the defaults are lists now, merging!

@quartje quartje merged commit 829bc36 into main Dec 2, 2024
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants