diff --git a/source/resources/apps/gitea-ansible/README.md b/source/resources/apps/gitea-ansible/README.md index 8cdfa58..fefb734 100644 --- a/source/resources/apps/gitea-ansible/README.md +++ b/source/resources/apps/gitea-ansible/README.md @@ -170,3 +170,18 @@ Level 4: `-vvvv` Level 5: `-vvvvv` Example execution with level 3 debug output: `ansible-playbook -i inventory.yml site.yml -vvv` + +# MySQL + +To use MariaDB Galera cluster, run on one SQL cluster node: + +``` +CREATE DATABASE gitea CHARACTER SET utf8 COLLATE utf8_general_ci; + +CREATE USER 'gitea'@'10.42.1.163' IDENTIFIED BY 'password'; + +GRANT ALL PRIVILEGES ON gitea.* TO 'gitea'@'10.42.1.163'; + +FLUSH PRIVILEGES; + ``` + diff --git a/source/resources/apps/gitea-ansible/roles/gitea/defaults/main.yml b/source/resources/apps/gitea-ansible/roles/gitea/defaults/main.yml index e6b92b0..58823c6 100644 --- a/source/resources/apps/gitea-ansible/roles/gitea/defaults/main.yml +++ b/source/resources/apps/gitea-ansible/roles/gitea/defaults/main.yml @@ -13,7 +13,7 @@ gitea_disable_http_git: false gitea_offline_mode: true gitea_db_type: mysql -gitea_db_host: 127.0.0.0:3306 +gitea_db_host: 10.42.1.172:3306 gitea_db_name: gitea gitea_db_user: gitea gitea_db_passord: password