Merge pull request #850 from jbondpdx/3.8.x

edits on Percona usage example
This commit is contained in:
Bryan Jen 2016-05-27 11:04:10 -07:00
commit 7cd9dda3a8

View file

@ -11,7 +11,7 @@
* [Customize configuration](#create-custom-configuration) * [Customize configuration](#create-custom-configuration)
* [Work with an existing server](#work-with-an-existing-server) * [Work with an existing server](#work-with-an-existing-server)
* [Specify passwords](#specify-passwords) * [Specify passwords](#specify-passwords)
* [Install Percona server on Centos](#install-percona-server-on-centos) * [Install Percona server on CentOS](#install-percona-server-on-centos)
4. [Reference - An under-the-hood peek at what the module is doing and how](#reference) 4. [Reference - An under-the-hood peek at what the module is doing and how](#reference)
5. [Limitations - OS compatibility, etc.](#limitations) 5. [Limitations - OS compatibility, etc.](#limitations)
6. [Development - Guide for contributing to the module](#development) 6. [Development - Guide for contributing to the module](#development)
@ -167,18 +167,16 @@ mysql::db { 'mydb':
} }
``` ```
### Install Percona server on Centos ### Install Percona server on CentOS
This example shows how to do a minimal installation of a Percona server on a This example shows how to do a minimal installation of a Percona server on a
Centos (has been tested on Puppet 4.4 / Centos 7 / Percona Server 5.7) CentOS system.
including the Percona server, client and bindingsi (including perl and python ones). This sets up the Percona server, client, and bindings (including Perl and Python bindings). You can customize this usage and update the version as needed.
Of course, you will probably want to customize it a bit more. and update the This usage has been tested on Puppet 4.4 / CentOS 7 / Percona Server 5.7.
version to the one you will want to have (trying to keep a coherence between
those)
**Note:** The installation of the yum repository is not part of this package **Note:** The installation of the yum repository is not part of this package
and is here only to show a full example of how you can install this. and is here only to show a full example of how you can install.
```puppet ```puppet
yumrepo { 'percona': yumrepo { 'percona':
@ -207,16 +205,15 @@ class {'mysql::server':
} }
} }
# Note: this is not needed in our case as installing Percona-Server-server-57 # Note: Installing Percona-Server-server-57 also installs Percona-Server-client-57.
# also installs Percona-Server-client-57. It is only here to show how to # This shows how to install the Percona MySQL client on its own
# install the Percona MySQL client
class {'mysql::client': class {'mysql::client':
package_name => 'Percona-Server-client-57', package_name => 'Percona-Server-client-57',
package_ensure => '5.7.11-4.1.el7', package_ensure => '5.7.11-4.1.el7',
} }
# Note: those package are normally installed along with Percona-Server-server-57 # These packages are normally installed along with Percona-Server-server-57
# so it's mostly here for the example in case you need to install the bindings. # If you needed to install the bindings, however, you could do so with this code
class { 'mysql::bindings': class { 'mysql::bindings':
client_dev_package_name => 'Percona-Server-shared-57', client_dev_package_name => 'Percona-Server-shared-57',
client_dev_package_ensure => '5.7.11-4.1.el7', client_dev_package_ensure => '5.7.11-4.1.el7',