summaryrefslogtreecommitdiff
path: root/manifests/server.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/server.pp')
-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,