README.md (1015B)
# What is this? This repository contains a small project that does two things: * -> create terraform managed docker containers with mariadb, and add them as read-only to an existing maxscale cluster * -> remove terraform managed mariadb docker containers from maxscale, and destroy the containers ## Assumptions: * -> Maxscale already exists on the machine where terraform is executed from * -> A Master server, and 2 Replica servers are already plugged into maxscale, users for maxscale and replication already set up * -> Terraform does not manage these 3 initial servers, it just needs to know how to add extra servers on top * -> Naming scheme of servers is just "server1, server2, server3" etc. * -> It is OK to just restart maxscale, in reality there would be a HA mechanism, but not in this homelab ## Requirements: ### HOST - MariaDB (or just mariadb-client with access to a master server), Maxscale, Make, Terraform, gnu awk, gnu sed, bash, ssh access to target server ### TARGET SERVER - docker