module-puppetlabs-mysql/tests/mysql_user.pp
2015-01-22 11:27:41 -08:00

21 lines
437 B
Puppet

$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'),
}