24 lines
471 B
Puppet
24 lines
471 B
Puppet
$mysql_root_pw = 'password'
|
|
|
|
class { 'mysql::server':
|
|
config_hash => {
|
|
root_password => 'password',
|
|
}
|
|
}
|
|
|
|
database_user{ 'redmine@localhost':
|
|
ensure => present,
|
|
password_hash => mysql_password('redmine'),
|
|
require => Class['mysql::server'],
|
|
}
|
|
|
|
database_user{ 'dan@localhost':
|
|
ensure => present,
|
|
password_hash => mysql_password('blah')
|
|
}
|
|
|
|
database_user{ 'dan@%':
|
|
ensure => present,
|
|
password_hash => mysql_password('blah'),
|
|
}
|