module-puppetlabs-mysql/tests/mysql_user.pp

24 lines
462 B
ObjectPascal
Raw Normal View History

$mysql_root_pw = 'password'
class { 'mysql::server':
config_hash => {
root_password => 'password',
}
}
mysql_user{ 'redmine@localhost':
ensure => present,
2011-05-25 08:22:43 +02:00
password_hash => mysql_password('redmine'),
require => Class['mysql::server'],
2011-05-25 08:22:43 +02:00
}
mysql_user{ 'dan@localhost':
ensure => present,
2011-05-25 08:22:43 +02:00
password_hash => mysql_password('blah')
}
mysql_user{ 'dan@%':
ensure => present,
password_hash => mysql_password('blah'),
}