diff options
Diffstat (limited to 'manifests/server.pp')
-rw-r--r-- | manifests/server.pp | 11 |
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, |