17 lines
372 B
Puppet
17 lines
372 B
Puppet
class { 'mysql::server':
|
|
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',
|
|
host => $::fqdn,
|
|
grant => ['SELECT', 'UPDATE'],
|
|
tag => $domain,
|
|
}
|