Skip to content

Commit

Permalink
Fix mysql_plugin examples and add section in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Opolka authored and Helen committed Aug 9, 2018
1 parent 204cfd4 commit 95dd267
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions examples/mysql_plugin.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
default => 'validate_password.so'
}

mysql::plugin { 'validate_password':
mysql_plugin { 'validate_password':
ensure => present,
soname => $validate_password_soname,
}
Expand All @@ -17,7 +17,7 @@
default => 'auth_socket.so'
}

mysql::plugin { 'auth_socket':
mysql_plugin { 'auth_socket':
ensure => present,
soname => $auth_socket_soname,
}

0 comments on commit 95dd267

Please sign in to comment.