module-puppetlabs-mysql/tests/mysql_user.pp
Ryan Sechrest fcffb7a3ba Replaced database_user with mysql_user
database_user has been deprecated in favor of mysql_user.
2014-04-21 13:21:20 -05:00

23 lines
462 B
Puppet

$mysql_root_pw = 'password'
class { 'mysql::server':
config_hash => {
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'),
}