Mercurial > repos > other > Puppet
view modules/mysql/examples/mysql_user.pp @ 389:668df4711671
Update MySQL modules
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Mon, 03 Jan 2022 17:16:21 +0000 |
parents | 48d3a1948e4d |
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', }