view modules/mysql/examples/mysql_plugin.pp @ 426:1d6cf5d981be

Try to resolve more CSP errors
author IBBoard <dev@ibboard.co.uk>
date Fri, 14 Oct 2022 19:18:57 +0100
parents 668df4711671
children c6c9a2cfcfbd
line wrap: on
line source

class { 'mysql::server':
  root_password => 'password',
}

$validate_password_soname = $::osfamily ? {
  'windows' => 'validate_password.dll',
  default => 'validate_password.so'
}

mysql_plugin { 'validate_password':
  ensure => present,
  soname => $validate_password_soname,
}

$auth_socket_soname = $::osfamily ? {
  'windows' => 'auth_socket.dll',
  default => 'auth_socket.so'
}

mysql_plugin { 'auth_socket':
  ensure => present,
  soname => $auth_socket_soname,
}