Forge Home

mariadb_repo

Configure the mariadb repository for RHel and import the GPG keys.

10,923 downloads

1,372 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.

Version information

  • 2.0.0 (latest)
  • 1.2.1
  • 1.2.0
  • 1.1.1
  • 1.1.0
  • 1.0.3
  • 1.0.2 (deleted)
  • 1.0.1
  • 1.0.0
released Jul 5th 2021
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, 2019.0.x
  • Puppet >= 6.0.0 < 8.0.0
  • , , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'kapouik-mariadb_repo', '2.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add kapouik-mariadb_repo
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install kapouik-mariadb_repo --version 2.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

kapouik/mariadb_repo — version 2.0.0 Jul 5th 2021

puppet-mariadb_repo

Table of Contents

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

Description

This module configure MariaDB's RPM repository Rhel/Centos and import RPM-GPG-KEY-MariaDB.

Setup

Beginning with mariadb_repo

To configure the MariaDB repository with default parameters, declare the mariadb_repo class.

include mariadb_repo

Usage

Configuring mariadb_repo

class { 'mariadb_repo':
  version  => '101',
}

Can support following versions:

5.5  => 55 (default)
10.0 => 10
10.1 => 101
10.2 => 102
10.3 => 103
10.4 => 104
10.5 => 105
10.6 => 106

Configuring modules from Hiera

---
mariadb_repo::version: '101'

Reference

Classes

Public Classes

  • mariadb_repo: Configure the MariaDB repository and import the GPG keys.

Private Classes

  • mariadb_repo::rpm_gpg_key: Import the RPM GPG key for the MariaDB.

Parameters

mariadb_repo

  • ensure: Whether the RPM-GPG-KEY-MariaDB file should exist. Default to present.
  • path: The path to the RPM-GPG-KEY-MariaDB file to manage. Must be an absolute path. Default to '/etc/pki/rpm-gpg/RPM-GPG-KEY-MariaDB'.

Limitations

This module has been tested on:

  • RedHat Enterprise Linux 6, 7
  • CentOS 6, 7
  • Scientific Linux 6, 7

Development

Running tests

The STNS puppet module contains tests for both rspec-puppet (unit tests) and beaker-rspec (acceptance tests) to verify functionality. For detailed information on using these tools, please see their respective documentation.

Testing quickstart

  • Unit tests (old way):
$ bundle install
$ bundle exec rake lint
$ bundle exec rake validate
$ bundle exec rake spec
  • Unit tests (with pdk):
$ pdk validate --parallel
$ pdk test unit
  • Acceptance tests:
# Set your DOCKER_HOST variable
$ eval "$(docker-machine env default)"

# Run beaker acceptance tests
$ BEAKER_set=centos7 bundle exec rake beaker

Thanks

This module is based on hfm/puppet-remi