Forge Home

mysql

Puppet module for mysql

12,376 downloads

4,725 latest version

4.6 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 7.0.0 (latest)
  • 6.3.0
  • 6.2.0
  • 6.1.0
  • 6.0.1
  • 6.0.0
  • 5.0.0
  • 4.0.0
  • 3.0.0
  • 2.0.0
  • 1.1.0
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 1.0.0
released Oct 30th 2018
This version is compatible with:
  • , , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'aneesh-mysql', '7.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add aneesh-mysql
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install aneesh-mysql --version 7.0.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

aneesh/mysql — version 7.0.0 Oct 30th 2018

MySQL Module

Overview

This module install and configure mysql database server.

Usage

Default configuration:

include mysql

Custom configuration:

class { 'mysql':
    mysqld_datadir               => '/var/lib/mysql',
    mysqld_socket                => '/var/run/mysqld/mysqld.sock',
    mysqld_user                  => 'mysql',
    mysqld_bind_address          => '127.0.0.1',
    mysqld_local_infile          => '0',
    mysqld_pid_file              => '/var/run/mysqld/mysqld.pid',
    mysqld_port                  => '3306',
    mysqld_basedir               => '/usr',
    mysqld_tmpdir                => '/tmp',
    mysqld_lc_messages_dir       => '/usr/share/mysql',
    mysqld_skip_external_locking => true,
    mysqld_key_buffer            => '16M',
    mysqld_max_allowed_packet    => '16M',
    mysqld_thread_stack          => '192K',
    mysqld_thread_cache_size     => '8',
    mysqld_myisam_recover        => 'BACKUP',
    mysqld_query_cache_limit     => '1M',
    mysqld_query_cache_size      => '16M',
    mysqld_log_error             => '/var/log/mysql/error.log',
    mysqld_expire_logs_days      => '10',
    mysqld_max_binlog_size       => '100M',
    mysqld_safe_log_error        => '/var/log/mysql/mysql.log',
    mysqld_safe_socket           => '/var/run/mysqld/mysqld.sock',
    mysqld_safe_nice             => '0',
    client_port                  => '3306',
    client_socket                => '/var/run/mysqld/mysqld.sock',
    mysqldump_quick              => true,
    mysqldump_quote_names        => true,
    mysqldump_max_allowed_packet => '16M',
    isamchk_key_buffer           => '16M',
    includedir                   => [ '/etc/mysql/conf.d/' ],
}