2012-02-09 20:26:00 +01:00
|
|
|
$mysql_root_pw = 'password'
|
|
|
|
|
2011-05-27 03:11:24 +02:00
|
|
|
class { 'mysql::server':
|
2011-12-05 23:06:25 +01:00
|
|
|
config_hash => {
|
|
|
|
root_password => 'password',
|
|
|
|
}
|
2011-05-27 03:11:24 +02:00
|
|
|
}
|
2012-02-09 20:26:00 +01:00
|
|
|
|
2014-04-21 20:21:20 +02:00
|
|
|
mysql_user{ 'redmine@localhost':
|
2012-02-09 20:26:00 +01:00
|
|
|
ensure => present,
|
2011-05-25 08:22:43 +02:00
|
|
|
password_hash => mysql_password('redmine'),
|
2012-02-09 20:26:00 +01:00
|
|
|
require => Class['mysql::server'],
|
2011-05-25 08:22:43 +02:00
|
|
|
}
|
|
|
|
|
2014-04-21 20:21:20 +02:00
|
|
|
mysql_user{ 'dan@localhost':
|
2012-02-09 20:26:00 +01:00
|
|
|
ensure => present,
|
2011-05-25 08:22:43 +02:00
|
|
|
password_hash => mysql_password('blah')
|
|
|
|
}
|
2011-12-05 23:06:25 +01:00
|
|
|
|
2014-04-21 20:21:20 +02:00
|
|
|
mysql_user{ 'dan@%':
|
2012-02-09 20:26:00 +01:00
|
|
|
ensure => present,
|
2011-12-05 23:06:25 +01:00
|
|
|
password_hash => mysql_password('blah'),
|
|
|
|
}
|