Forge Home


This module manages the upstream MySQL Java Connector (Connector/J).


1,265 latest version

5.0 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

  • 5.0.0 (latest)
  • 4.0.0
  • 3.0.2
  • 3.0.1
  • 3.0.0
  • 2.3.0
  • 2.2.0
  • 2.1.1
  • 2.0.0
  • 1.0.0
released Nov 9th 2022
This version is compatible with:
  • Puppet Enterprise 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x
  • Puppet >= 6.1.0 < 8.0.0
  • , , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'puppet-mysql_java_connector', '5.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add puppet-mysql_java_connector
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install puppet-mysql_java_connector --version 5.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.



puppet/mysql_java_connector — version 5.0.0 Nov 9th 2022

MySQL Java Connector module for Puppet

Build Status Code Coverage Puppet Forge Puppet Forge - downloads Puppet Forge - endorsement Puppet Forge - scores

Table of Contents

Build Status

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with mysql_java_connector
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module


This module installs the upstream MySQL Java Connector (Connector/J).

Module Description

Installs the upstream MySQL Java Connector (Connector/J). This is often required as many operating systems either ship outdated or broken versions by default.


What mysql_java_connector affects

  • Installs to /opt/MySQL-connector directory.
  • Creates file /opt/MySQL-connector/latest/mysql-connector-java-VERSION-bin.jar

Beginning with mysql_java_connector

  include ::mysql_java_connector


Create soft links to the mysql connector for use with applications:

  class { 'mysql_java_connector':
    links  => [ '/opt/tomcat_app/lib', '/opt/jboss_app/lib' ]

Most useful available parameters:

  class { 'mysql_java_connector':
    links       => [ '/opt/tomcat_app/lib', '/opt/jboss_app/lib' ],
    version     => '4.99.111',
    installdir  => '/opt/custom',
    downloadurl => '',



Public Classes

  • mysql_java_connector: Main class, manages the installation.

Private Classes

  • mysql_java_connector::install: Installs mysql_java_connector binary.

Private Definitions

  • mysql_java_connector::links: Creates softlinks to application directories of the mysql_java_connector binary.



Ensure the MySQL connector is installed. Defaults to present.


Specifies the version of MySQL Java Connector you would like installed. Defaults to '5.1.40'


Product name, defaults to 'mysql-connector-java'


The default file format of the MySQL Java Connector install file, defaults to tar.gz


Installation directory of the MySQL connector. Defaults to '/opt/MySQL-connector'


Defaults to


Optional proxy server to use, with port number if needed. ie:


Proxy server type (none|http|https|ftp)


Directories to create softlinks to mysql connector file for use within applications. Defaults to an empty array. Must be an array.


This should be compatible with Linux distributions. Tested on:

  • CentOS 6/7
  • RedHat 6/7
  • Ubuntu 12.04/14.04
  • Debian 7