Forge Home


Install, configure and manage MySQL on Windows


6,848 latest version

4.5 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.

Version information

  • 0.1.2 (latest)
  • 0.1.1
  • 0.1.0
released Sep 8th 2017
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 'tspy-win_mysql', '0.1.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add tspy-win_mysql
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install tspy-win_mysql --version 0.1.2

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.



tspy/win_mysql — version 0.1.2 Sep 8th 2017


Table of Contents

Travis Status


This module installs both MySQL Server and MySQL Client (Workbench). We use Chocolatey for the installation of both packages, Puppet Labs inifile module to manage the my.ini settings, the Reboot module which is used for installing the required vcredist2013 package required for the server to operate properly reference.

Beginning with win_mysql

include win_mysql


You can use the individual classes separately

include win_mysql::server
include win_mysql::client

The server currently installs the package to 'c:\tools\mysql' but then uses the "Current" running version, which is located at 'c:\tools\mysql\current'.

The win_mysql::server::config is where you can set additional configuration parameters, but I've included some base examples, which came from a couple of sources, which are referenced in the class. Make changes to config values in both the config.pp file and params.pp. Soon enough the values will be put into hiera.

The win_mysql::client installs the MySQL Workbench software to its default path.


This module has been tested on Windows 2012 adn Windows 2016. Currently, in 2016 the Chocolatey installation does not set the path to MySQL. This will be added shortly.


Fork it, develop it, push it. Or just give feedback, you won't hurt my feelings.

Release Notes

0.1.0 is the first release and there will definitely be cleanup. Looking to move the params to hiera.

0.1.1 fixes some linting errors adds OS support information and fixed unbounded ranges on dependencies.

0.1.2 added tags to metadata.