Skip to content

Commit 357ad76

Browse files
committed
Merge pull request #499 from digitalyuki/fix-example-docs
Fix example docs
2 parents b39ebdc + 5239950 commit 357ad76

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

README.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@ password or `/etc/my.cnf` settings, then you must also pass in an override hash:
5353
```puppet
5454
class { '::mysql::server':
5555
root_password => 'strongpassword',
56-
override_options => { 'mysqld' => { 'max_connections' => '1024' } }
56+
override_options => $override_options
5757
}
5858
```
59+
(see 'Overrides' below for examples of the hash structure for `$override_options`)
5960

6061
##Usage
6162

@@ -70,7 +71,7 @@ The hash structure for overrides in `mysql::server` is as follows:
7071
```puppet
7172
$override_options = {
7273
'section' => {
73-
'item' => 'thing',
74+
'item' => 'thing',
7475
}
7576
}
7677
```
@@ -218,8 +219,8 @@ The provider to use to manage the service.
218219

219220
Optional hash of users to create, which are passed to [mysql_user](#mysql_user).
220221

221-
```puppet
222-
$users = {
222+
```
223+
users => {
223224
'someuser@localhost' => {
224225
ensure => 'present',
225226
max_connections_per_hour => '0',
@@ -235,8 +236,8 @@ $users = {
235236

236237
Optional hash of grants, which are passed to [mysql_grant](#mysql_grant).
237238

238-
```puppet
239-
$grants = {
239+
```
240+
grants => {
240241
'someuser@localhost/somedb.*' => {
241242
ensure => 'present',
242243
options => ['GRANT'],
@@ -251,8 +252,8 @@ $grants = {
251252

252253
Optional hash of databases to create, which are passed to [mysql_database](#mysql_database).
253254

254-
```puppet
255-
$databases = {
255+
```
256+
databases => {
256257
'somedb' => {
257258
ensure => 'present',
258259
charset => 'utf8',

0 commit comments

Comments
 (0)