Skip to content

Instantly share code, notes, and snippets.

View wagnerbianchijr's full-sized avatar
:shipit:

Wagner Bianchi wagnerbianchijr

:shipit:
View GitHub Profile
@wagnerbianchijr
wagnerbianchijr / Ansible-AWS-MariaDB
Last active November 5, 2022 02:30
Ansible-AWS-MariaDB (roles execution)
[BIANCHI LABS - ansible] ansible@jumphost: roles $ ansible-playbook bianchi-aws-bootstrap/bianchi-aws-bootstrap.yml
PLAY [localhost] ****************************************************************************************************************************
TASK [Gathering Facts] **********************************************************************************************************************
ok: [localhost]
TASK [bianchi-aws-bootstrap : Creating a new VPC] *******************************************************************************************
ok: [localhost]
#: This gist is supposed to be used when someone else intends to have a simple Maxscale 2.2.X++ setup
#: considering a MariaDB Cluster. The service has a listener, here, allocated the mysql/3306 port.
###################### SETUP MARIADB OFFICIAL REPO AND MAXSCALE PACKAGES ######################
#: executing the command for the repository setup on servers
[root@box01 ~]# curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash
[info] Repository file successfully written to /etc/yum.repos.d/mariadb.repo.
[info] Adding trusted package signing keys...
[info] Successfully added trusted package signing keys.
@wagnerbianchijr
wagnerbianchijr / MAXSCALE_SETUP_RWSPLIT_MARIADBMON
Last active September 13, 2018 16:11
MaxScale 2.2.X setup (MariaDBMon+ReadWriteSplit Router)
#: This gist is supposed to be used when someone else intends to have a simple Maxscale 2.2.X++ setup
#: considering a replication cluster. By replication cluster I mean one master and X slaves; in the
#: case of this gist, I'm using just one slave, but, you can add as many as you want to add more to the
#: below gist. You will notice that Maxscale after setup will be configured using dynamic commands and
#: that is the place you will adjust your servers to be created an added to the service+monitor that
#: will be created. The service has a listener, here, allocated the mysql/3306 port.
###################### SETUP MARIADB OFFICIAL REPO AND MAXSCALE PACKAGES ######################
#: executing the command for the repository setup on servers