Skip to content

Commit 658aae3

Browse files
Update README.md Ubuntu example to xenial (#1276)
* Update README.md Ubuntu example to xenial Hi - thanks for this great forge module. It got me over the line when I was forced to use mariadb Just reviewing my code, and the service name on xenial is mysqld, not mysql, so I thought I'd take the opportunity to refresh this part of the doc, as I copy/pasted verbatim! * Fix minor issues in README Co-authored-by: cmccrisken-puppet <[email protected]>
1 parent 07e0873 commit 658aae3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -250,19 +250,19 @@ Class['mysql::bindings']
250250

251251
#### Optional: Install the MariaDB official repo
252252

253-
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.
253+
In this example, we'll use the latest stable (currently 10.3) 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.
254254

255255
**Note:** `sfo1.mirrors.digitalocean.com` is one of many mirrors available. You can use any official mirror.
256256

257257
```puppet
258258
include apt
259259
260260
apt::source { 'mariadb':
261-
location => 'http://sfo1.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu',
261+
location => 'http://sfo1.mirrors.digitalocean.com/mariadb/repo/10.3/ubuntu',
262262
release => $::lsbdistcodename,
263263
repos => 'main',
264264
key => {
265-
id => '199369E5404BD5FC7D2FE43BCBCB082A1BB943DB',
265+
id => '177F4010FE56CA3336300305F1656F24C74CD1D8',
266266
server => 'hkp://keyserver.ubuntu.com:80',
267267
},
268268
include => {
@@ -274,7 +274,7 @@ apt::source { 'mariadb':
274274

275275
#### Install the MariaDB server
276276

277-
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.
277+
This example shows MariaDB server installation on Ubuntu Xenial. 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.
278278

279279
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.
280280

@@ -285,8 +285,8 @@ Specify the version of the package you want with the `package_ensure` parameter.
285285
```puppet
286286
class {'::mysql::server':
287287
package_name => 'mariadb-server',
288-
package_ensure => '10.1.14+maria-1~trusty',
289-
service_name => 'mysql',
288+
package_ensure => '1:10.3.21+maria~xenial',
289+
service_name => 'mysqld',
290290
root_password => 'AVeryStrongPasswordUShouldEncrypt!',
291291
override_options => {
292292
mysqld => {
@@ -316,7 +316,7 @@ Specify the version of the package you want with the `package_ensure` parameter.
316316
```puppet
317317
class {'::mysql::client':
318318
package_name => 'mariadb-client',
319-
package_ensure => '10.1.14+maria-1~trusty',
319+
package_ensure => '1:10.3.21+maria~xenial',
320320
bindings_enable => true,
321321
}
322322

0 commit comments

Comments
 (0)