view modules/mysql/examples/mysql_user.pp @ 183:ac164022ffb8 puppet-3.6

Try to fix "Garbage after numerical service in server description" Based on the logged config text ([127.0.0.1]:10024readme_dire...) it appears to be caused by a lack of blank line and something adding extra config values (because we don't define readme_directory)
author IBBoard <dev@ibboard.co.uk>
date Fri, 07 Dec 2018 19:54:20 +0000
parents 58d1818c2ded
children 48d3a1948e4d
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',
}