From 95dd267fd9796432123380626fe5783b0b38dafa Mon Sep 17 00:00:00 2001 From: Markus Opolka Date: Mon, 30 Jul 2018 13:23:52 +0200 Subject: [PATCH] Fix mysql_plugin examples and add section in README --- README.md | 17 +++++++++++++++++ examples/mysql_plugin.pp | 4 ++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a6729e519..7f67c693e 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ * [Specify passwords](#specify-passwords) * [Install Percona server on CentOS](#install-percona-server-on-centos) * [Install MariaDB on Ubuntu](#install-mariadb-on-ubuntu) + * [Install Plugins](#install-plugins) 4. [Reference - An under-the-hood peek at what the module is doing and how](REFERENCE.md) 5. [Limitations - OS compatibility, etc.](#limitations) 6. [Development - Guide for contributing to the module](#development) @@ -382,6 +383,22 @@ mysql::server::db: ``` +### Install Plugins + +Plugins can be installed by using the `mysql_plugin` defined type. See `examples/mysql_plugin.pp` for futher examples. + +```puppet +class { 'mysql::server': + root_password => 'password' +} + +mysql_plugin { 'auth_pam': + ensure => present, + soname => 'auth_pam.so', +} + +``` + ### Tasks The MySQL module has an example task that allows a user to execute arbitary SQL against a database. Please refer to to the [PE documentation](https://puppet.com/docs/pe/2017.3/orchestrator/running_tasks.html) or [Bolt documentation](https://puppet.com/docs/bolt/latest/bolt.html) on how to execute a task. diff --git a/examples/mysql_plugin.pp b/examples/mysql_plugin.pp index d80275972..6901d0b01 100644 --- a/examples/mysql_plugin.pp +++ b/examples/mysql_plugin.pp @@ -7,7 +7,7 @@ default => 'validate_password.so' } -mysql::plugin { 'validate_password': +mysql_plugin { 'validate_password': ensure => present, soname => $validate_password_soname, } @@ -17,7 +17,7 @@ default => 'auth_socket.so' } -mysql::plugin { 'auth_socket': +mysql_plugin { 'auth_socket': ensure => present, soname => $auth_socket_soname, }