Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scottyrichardson/olyn_percona
Configures Percona apt repos. Installs Percona. Configures replication settings, TLS encryption, and node member list. Bootstraps and/or joins the replicated MySQL database cluster. Part of the Olyn framework for Chef.
https://github.com/scottyrichardson/olyn_percona
chef database debian mysql olyn percona replication
Last synced: 7 days ago
JSON representation
Configures Percona apt repos. Installs Percona. Configures replication settings, TLS encryption, and node member list. Bootstraps and/or joins the replicated MySQL database cluster. Part of the Olyn framework for Chef.
- Host: GitHub
- URL: https://github.com/scottyrichardson/olyn_percona
- Owner: scottyrichardson
- Created: 2022-11-07T23:23:24.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-07T23:23:39.000Z (about 2 years ago)
- Last Synced: 2024-12-15T16:45:46.440Z (26 days ago)
- Topics: chef, database, debian, mysql, olyn, percona, replication
- Language: Ruby
- Homepage: http://olyn.richardson.is/
- Size: 61.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Olyn Percona Recipe
### SSL Certificate Configuration
This package uses SSL certificates to encrypt all client and server traffic.
MySQL automatically creates all of the certificates needed on initial install.
However each node must be using the same cert files for encryption to work.To facilitate this the cert files are distributed with the package via encrypted data bag.
First, install the package on the bootstrapper.
Then import the following certs into the the "ssl_certificates" data bag:#### Data bag: `ssl_certificates/percona_server.json`
Certificate authority: `/etc/mysql/certs/ca.pem`
Server cert: `/etc/mysql/certs/server-cert.pem`
Server private key: `/etc/mysql/certs/server-key.pem`#### Data bag: `ssl_certificates/percona_client.json`
Certificate authority: `/etc/mysql/certs/ca.pem`
Client cert:` /etc/mysql/certs/client-cert.pem`
Client private key: `/etc/mysql/certs/client-key.pem`### Importing SQL files
Percona requires a certain SQL format to import properly. To Properly prepare an export from an existing database into Percona the command is:mysqldump -u root -p"ROOT_PASSWORD" --single-transaction --master-data --skip-add-locks --routines --triggers DATABASENAME > /path/to/export.sql
### Conflicts With Existing Packages
This package will check for and remove the following packages before install:`mariadb-common`
`mysql-common`
`apparmor``mailutils` is commonly installed on VPS base images and will install these as dependencies.
### Using DebConf to automate answers to graphical installer
The Percona installer is graphical and requires user input.
This cookbook automates answers to the graphical installer using a seed file.
If the questions change, you can see all of the input choices for the graphical installer with debconf:debconf-get-selections |grep 'percona'
Update the seed file in this package accordingly.