fcffb7a3ba
database_user has been deprecated in favor of mysql_user.
23 lines
462 B
Puppet
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'),
|
|
}
|