summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-11-07 15:32:49 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-11-07 15:32:49 -0200
commitdebde9c11b55b92b9712802f7abc7916ef6dc24b (patch)
tree022cff30b3420938f16d6da7b92706541f4d0008 /manifests
parent8eb9e4305af20ff73ea4838a6a675d9a1a742b28 (diff)
downloadpuppet-mysql-debde9c11b55b92b9712802f7abc7916ef6dc24b.tar.gz
puppet-mysql-debde9c11b55b92b9712802f7abc7916ef6dc24b.tar.bz2
Password field rename to authentication_string in some implementations
Diffstat (limited to 'manifests')
-rw-r--r--manifests/server.pp11
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/server.pp b/manifests/server.pp
index 3417119..3bdbf7b 100644
--- a/manifests/server.pp
+++ b/manifests/server.pp
@@ -8,6 +8,17 @@ class mysql::server(
include mysql
+ $authentication_string = $::lsbdistid ? {
+ 'ubuntu' => $::lsbdistcodename ? {
+ 'trusty' => 'Password=PASSWORD',
+ 'xenial' => $implementation ? {
+ 'mysql-server' => 'authentication_string=password',
+ default => 'Password=PASSWORD',
+ },
+ },
+ default => 'Password=PASSWORD',
+ }
+
package { "mysql-server":
name => $implementation,
ensure => installed,