AdopteUnOps.mysql-docker

mysql-docker-ansible-role

This is an Ansible role designed to run a MySQL container. It can also optimize MySQL on a scheduled basis and back up data to Amazon S3.

Role Variables


mysql_user: "demo"                # MySQL user name
mysql_password: "demo"             # MySQL user password
mysql_database: "demo"             # Name of the database

mysql_version: 5.7                 # Version of MySQL to use
mysql_root_password: "aeBu2oe2Li"  # Password for the root user
mysql_host: localhost               # Hostname for MySQL
mysql_port: 3306                    # Port number for MySQL

mysql_optimize_cron: "0 0 * * *"   # Schedule for optimization (daily at midnight)

# S3 Backup Settings
mysql_backup_enabled: false          # Enable or disable backups
mysql_s3_access_key: ""             # S3 access key
mysql_s3_secret_key: ""             # S3 secret key
mysql_s3_bucket: ""                  # S3 bucket name
mysql_s3_prefix: ""                  # Prefix for stored backups
mysql_s3_region: ""                  # S3 region
mysql_s3_schedule: ""                # Schedule for backups

License


This project is licensed under the Apache License 2.0.

Informazioni sul progetto

Ansible role to run a mysql container.

Installa
ansible-galaxy install AdopteUnOps.mysql-docker
Licenza
apache-2.0
Download
271
Proprietario