Skip to content

Commit 95dd267

Browse files
Markus OpolkaHelen
authored andcommitted
Fix mysql_plugin examples and add section in README
1 parent 204cfd4 commit 95dd267

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* [Specify passwords](#specify-passwords)
1414
* [Install Percona server on CentOS](#install-percona-server-on-centos)
1515
* [Install MariaDB on Ubuntu](#install-mariadb-on-ubuntu)
16+
* [Install Plugins](#install-plugins)
1617
4. [Reference - An under-the-hood peek at what the module is doing and how](REFERENCE.md)
1718
5. [Limitations - OS compatibility, etc.](#limitations)
1819
6. [Development - Guide for contributing to the module](#development)
@@ -382,6 +383,22 @@ mysql::server::db:
382383

383384
```
384385

386+
### Install Plugins
387+
388+
Plugins can be installed by using the `mysql_plugin` defined type. See `examples/mysql_plugin.pp` for futher examples.
389+
390+
```puppet
391+
class { 'mysql::server':
392+
root_password => 'password'
393+
}
394+
395+
mysql_plugin { 'auth_pam':
396+
ensure => present,
397+
soname => 'auth_pam.so',
398+
}
399+
400+
```
401+
385402
### Tasks
386403

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

examples/mysql_plugin.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
default => 'validate_password.so'
88
}
99

10-
mysql::plugin { 'validate_password':
10+
mysql_plugin { 'validate_password':
1111
ensure => present,
1212
soname => $validate_password_soname,
1313
}
@@ -17,7 +17,7 @@
1717
default => 'auth_socket.so'
1818
}
1919

20-
mysql::plugin { 'auth_socket':
20+
mysql_plugin { 'auth_socket':
2121
ensure => present,
2222
soname => $auth_socket_soname,
2323
}

0 commit comments

Comments
 (0)