Skip to content

Commit

Permalink
Merge pull request #41 from dotkernel/mariadb-upgrade
Browse files Browse the repository at this point in the history
Bump MariaDB from 10.11 to 11.4
  • Loading branch information
alexmerlin authored Oct 31, 2024
2 parents 16547c5 + 3a4e67a commit 1b021b4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
17 changes: 7 additions & 10 deletions docs/book/v1/virtualhosts/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,17 @@

Virtualhosts allow developers to host multiple applications on their local system.

Using this tool, you configure a virtualhost for each of your applications, and it will create them so that you can
start working with them.
Using this tool, you configure a virtualhost for each of your applications, and it will create them so that you can start working with them.

**Example**:

- `api.dotkernel.localhost`: this could be the endpoint where you host your website's API
- `frontend.dotkernel.localhost`: this could be domain you host your website's frontend that will consume the API
* `api.dotkernel.localhost`: this could be the endpoint where you host your website's API
* `frontend.dotkernel.localhost`: this could be domain you host your website's frontend that will consume the API

In the above example, the URLs are built like this:

- the subdomain is the identifier of your application (`api`/`frontend`)
- the domain is the identifier of your project (`dotkernel`)
- the TLD sends the requests to localhost where Apache will route them to their real location
* the subdomain is the identifier of your application (`api`/`frontend`)
* the domain is the identifier of your project (`dotkernel`)
* the TLD sends the requests to localhost where Apache will route them to their real location

## Note
> By using the pattern `*.localhost` for any new virtualhost, you do not need to modify the `hosts` file in Windows,
> because these are routed by default.
> By using the pattern `*.localhost` for any new virtualhost, you do not need to modify the `hosts` file in Windows, because these are routed by default.
4 changes: 2 additions & 2 deletions wsl/os/almalinux9/roles/mariadb/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
- name: Create MariaDB 10.11 repo file
- name: Create MariaDB 11.4 repo file
template:
src: "{{ mariadb_repo_src }}"
dest: "{{ mariadb_repo_dest }}"
owner: "{{ config.system.username }}"
group: "{{ config.system.username }}"
- name: Install MariaDB 10.11
- name: Install MariaDB 11.4
command: "dnf install python3-mysqlclient MariaDB-server MariaDB-client -y"
- name: Enable and start MariaDB service
command: systemctl enable --now mariadb
Expand Down
4 changes: 2 additions & 2 deletions wsl/os/almalinux9/roles/mariadb/templates/MariaDB.repo.j2
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# MariaDB 10.11 RedHat repository list
# MariaDB 11.4 RedHat repository list
# https://mariadb.org/download/
[mariadb]
name = MariaDB
baseurl = https://ftp.bme.hu/pub/mirrors/mariadb/yum/10.11/rhel9-amd64
baseurl = https://ftp.bme.hu/pub/mirrors/mariadb/yum/11.4/rhel9-amd64
gpgkey=https://ftp.bme.hu/pub/mirrors/mariadb/yum/RPM-GPG-KEY-MariaDB
enabled=1
gpgcheck=0

0 comments on commit 1b021b4

Please sign in to comment.