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
+39-52Lines changed: 39 additions & 52 deletions
Original file line number
Diff line number
Diff line change
@@ -31,16 +31,16 @@ This module manages both the installation and configuration of MySQL, as well as
31
31
32
32
To install a server with the default options:
33
33
34
-
`include '::mysql::server'`.
34
+
`include mysql::server`.
35
35
36
36
To customize options, such as the root password or `/etc/my.cnf` settings, you must also pass in an override hash:
37
37
38
38
```puppet
39
-
class { '::mysql::server':
39
+
class { 'mysql::server':
40
40
root_password => 'strongpassword',
41
41
remove_default_accounts => true,
42
42
restart => true,
43
-
override_options => $override_options
43
+
override_options => $override_options,
44
44
}
45
45
```
46
46
@@ -61,7 +61,7 @@ To define server options, structure a hash structure of overrides in `mysql::ser
61
61
$override_options = {
62
62
'section' => {
63
63
'item' => 'thing',
64
-
}
64
+
},
65
65
}
66
66
```
67
67
@@ -82,7 +82,7 @@ If an option needs multiple instances, pass an array. For example,
82
82
$override_options = {
83
83
'mysqld' => {
84
84
'replicate-do-db' => ['base1', 'base2'],
85
-
}
85
+
},
86
86
}
87
87
```
88
88
@@ -139,14 +139,14 @@ If you have installed the mysql client in a non standard bin/sbin path you can s
139
139
140
140
```puppet
141
141
mysql::db { 'mydb':
142
-
user => 'myuser',
143
-
password => 'mypass',
144
-
host => 'localhost',
145
-
grant => ['SELECT', 'UPDATE'],
146
-
sql => '/path/to/sqlfile.gz',
147
-
import_cat_cmd => 'zcat',
148
-
import_timeout => 900,
149
-
mysql_exec_path => '/opt/rh/rh-myql57/root/bin'
142
+
user => 'myuser',
143
+
password => 'mypass',
144
+
host => 'localhost',
145
+
grant => ['SELECT', 'UPDATE'],
146
+
sql => '/path/to/sqlfile.gz',
147
+
import_cat_cmd => 'zcat',
148
+
import_timeout => 900,
149
+
mysql_exec_path => '/opt/rh/rh-myql57/root/bin',
150
150
}
151
151
```
152
152
@@ -159,15 +159,15 @@ To add custom MySQL configuration, place additional files into `includedir`. Thi
159
159
If you want the password managed by puppet for `127.0.0.1` and `::1` as an end user you would need to explicitly manage them with additional manifest entries. For example:
@@ -335,7 +336,7 @@ All the values set here are an example of a working minimal configuration.
335
336
Specify the version of the package you want with the `package_ensure` parameter.
336
337
337
338
```puppet
338
-
class {'::mysql::server':
339
+
class { 'mysql::server':
339
340
package_name => 'mariadb-server',
340
341
package_ensure => '1:10.3.21+maria~xenial',
341
342
service_name => 'mysqld',
@@ -355,7 +356,7 @@ class {'::mysql::server':
355
356
# as shown in the Preliminary step of this example.
356
357
Apt::Source['mariadb'] ~>
357
358
Class['apt::update'] ->
358
-
Class['::mysql::server']
359
+
Class['mysql::server']
359
360
360
361
```
361
362
@@ -637,7 +638,7 @@ For an extensive list of supported operating systems, see [metadata.json](https:
637
638
638
639
## Development
639
640
640
-
We are experimenting with a new tool for running acceptance tests. Its name is [puppet_litmus](https://github.com/puppetlabs/puppet_litmus) this replaces beaker as the test runner. To run the acceptance tests follow the instructions from this point [here](https://github.com/puppetlabs/puppet_litmus/wiki/Tutorial:-use-Litmus-to-execute-acceptance-tests-with-a-sample-module-(MoTD)#install-the-necessary-gems-for-the-module).
641
+
We are experimenting with a new tool for running acceptance tests. Its name is [puppet_litmus](https://github.com/puppetlabs/puppet_litmus) this replaces beaker as the test runner. To run the acceptance tests follow the [instructions](https://puppetlabs.github.io/litmus/Running-acceptance-tests.html) from the Litmus documentation.
641
642
642
643
Puppet modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can't access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.
643
644
@@ -647,18 +648,4 @@ Check out our the complete [module contribution guide](https://puppet.com/docs/p
647
648
648
649
### Authors
649
650
650
-
This module is based on work by David Schmitt. The following contributors have contributed to this module (beyond Puppet Labs):
651
-
652
-
* Larry Ludwig
653
-
* Christian G. Warden
654
-
* Daniel Black
655
-
* Justin Ellison
656
-
* Lowe Schmidt
657
-
* Matthias Pigulla
658
-
* William Van Hevelingen
659
-
* Michael Arnold
660
-
* Chris Weyl
661
-
* Daniël van Eeden
662
-
* Jan-Otto Kröpke
663
-
* Timothy Sven Nelson
664
-
* Andreas Stürz
651
+
This module is based on work by David Schmitt. Thank you to all of our [contributors](https://github.com/puppetlabs/puppetlabs-mysql/graphs/contributors).
0 commit comments