view modules/mysql/examples/mysql_user.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
line wrap: on
line source

$mysql_root_pw = 'password'

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

mysql_user { 'redmine@localhost':
  ensure        => present,
  password_hash => mysql::password('redmine'),
  require       => Class['mysql::server'],
}

mysql_user { 'dan@localhost':
  ensure        => present,
  password_hash => mysql::password('blah'),
}

mysql_user { 'dan@%':
  ensure        => present,
  password_hash => mysql::password('blah'),
}

mysql_user { 'socketplugin@%':
  ensure => present,
  plugin => 'unix_socket',
}

mysql_user { 'socketplugin@%':
  ensure        => present,
  password_hash => mysql::password('blah'),
  plugin        => 'mysql_native_password',
}