2014-03-07 08:08:09 +01:00
|
|
|
class { 'mysql::server':
|
|
|
|
config_hash => {'root_password' => 'password'}
|
|
|
|
}
|
|
|
|
mysql::db { 'mydb':
|
|
|
|
user => 'myuser',
|
|
|
|
password => 'mypass',
|
|
|
|
host => 'localhost',
|
|
|
|
grant => ['SELECT', 'UPDATE'],
|
|
|
|
}
|
|
|
|
mysql::db { "mydb_${fqdn}":
|
|
|
|
user => 'myuser',
|
|
|
|
password => 'mypass',
|
|
|
|
dbname => 'mydb',
|
2014-05-21 20:24:33 +02:00
|
|
|
host => $::fqdn,
|
2014-03-07 08:08:09 +01:00
|
|
|
grant => ['SELECT', 'UPDATE'],
|
|
|
|
tag => $domain,
|
|
|
|
}
|