You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-39
Original file line number
Diff line number
Diff line change
@@ -173,8 +173,7 @@ mysql::db { 'mydb':
173
173
### Install Percona server on CentOS
174
174
175
175
This example shows how to do a minimal installation of a Percona server on a
176
-
CentOS system.
177
-
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.
176
+
CentOS system. 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.
178
177
179
178
This usage has been tested on Puppet 4.4 / CentOS 7 / Percona Server 5.7.
180
179
@@ -243,18 +242,11 @@ Class['mysql::bindings']
243
242
244
243
### Install MariaDB on Ubuntu
245
244
246
-
#### Preliminary step: Install the MariaDB official repo (optionnal)
245
+
#### Optional: Install the MariaDB official repo
247
246
248
-
In this example, we want the latest stable (currently 10.1) from the official
249
-
MariaDB repository, not the one from the distro repository.
250
-
Note that this part is totally optionnal. You can also use the package from the
251
-
Ubuntu repository.
247
+
In this example, we'll use the latest stable (currently 10.1) from the official MariaDB repository, not the one from the distro repository. You could instead use the package from the Ubuntu repository. Make sure you use the repository corresponding to the version you want.
252
248
253
-
**Note:**`sfo1.mirrors.digitalocean.com` is just one of the many mirrors
254
-
available. You can use any other official mirror for better performance.
255
-
256
-
**Important:** this example is using a MariaDB 10.1 repository. Make sure you
257
-
are using the repository corresponding to the version you want.
249
+
**Note:**`sfo1.mirrors.digitalocean.com` is one of many mirrors available. You can use any official mirror.
258
250
259
251
```
260
252
include apt
@@ -274,25 +266,15 @@ apt::source { 'mariadb':
274
266
}
275
267
```
276
268
277
-
#### Installing the MariaDB server
278
-
279
-
This part of the example shows how to install a MariaDB server on Ubuntu (trusty
280
-
here). You will probably want to tweak the version and the parameters of the
281
-
my.cnf.
269
+
#### Install the MariaDB server
282
270
283
-
As a reminder, all the parameters of the my.cnf can be defined using the
284
-
`override_options` parmeter.
271
+
This example shows MariaDB server installation on Ubuntu Trusty. Adjust the version and the parameters of `my.cnf` as needed. All parameters of the `my.cnf` can be defined using the `override_options` parameter.
285
272
286
-
Of course, you need to make sure that all the custom folders you are setting
287
-
your files into do exist as prerequisites of this code! :)
288
-
Note that `/var/log/mysql` and `/var/run/mysqld` are created automatically.
273
+
The folders `/var/log/mysql` and `/var/run/mysqld` are created automatically, but if you are using other custom folders, they should exist as prerequisites for this code.
289
274
290
275
All the values set here are an example of a working minimal configuration.
291
-
You can tweak them all! ;)
292
276
293
-
**Note:** it is not mandatory to specify the version of the package you want
294
-
(using the `package_ensure` parameter) but it's always a good practice to do
295
-
so as it avoids some surprises...
277
+
Specify the version of the package you want with the `package_ensure` parameter.
296
278
297
279
```
298
280
class {'::mysql::server':
@@ -319,16 +301,11 @@ Class['::mysql::server']
319
301
320
302
```
321
303
322
-
#### Installing the MariaDB client (can be done separately)
304
+
#### Install the MariaDB client
323
305
324
-
This part of the example shows how to install the MariaDB client and
325
-
use the `bindings_enable` to get all the bindings installed in 1 shot.
306
+
This example shows how to install the MariaDB client and all of the bindings at once. You can do this installation separately from the server installation.
326
307
327
-
This part can be used totally individually from the server installation part.
328
-
329
-
**Note:** it is not mandatory to specify the version of the package you want
330
-
(using the `package_ensure` parameter) but it's always a good practice to do
331
-
so as it avoids some surprises...
308
+
Specify the version of the package you want with the `package_ensure` parameter.
332
309
333
310
```
334
311
class {'::mysql::client':
@@ -344,7 +321,6 @@ Class['apt::update'] ->
344
321
Class['::mysql::client']
345
322
```
346
323
347
-
348
324
## Reference
349
325
350
326
### Classes
@@ -616,7 +592,7 @@ Sets the server backup implementation. Valid values are:
616
592
617
593
##### `maxallowedpacket`
618
594
619
-
Define the maximum SQL statement size for the backup dump script. The default value is 1MB as this is the default Mysql Server value.
595
+
Defines the maximum SQL statement size for the backup dump script. The default value is 1MB, as this is the default MySQL Server value.
620
596
621
597
#### mysql::server::monitor
622
598
@@ -916,9 +892,7 @@ Maximum updates per hour for the user. Must be an integer value. A value of '0'
916
892
917
893
#### mysql_grant
918
894
919
-
`mysql_grant` creates grant permissions to access databases within
920
-
MySQL. To create grant permissions to access databases with MySQL, use it you must create the title of the resource as shown below,
921
-
following the pattern of `username@hostname/database.table`:
895
+
`mysql_grant` creates grant permissions to access databases within MySQL. To create grant permissions to access databases with MySQL, use it you must create the title of the resource as shown below, following the pattern of `username@hostname/database.table`:
0 commit comments