module-puppetlabs-mysql/tests/mysql_db.pp

18 lines
391 B
ObjectPascal
Raw Normal View History

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',
host => ${fqdn},
grant => ['SELECT', 'UPDATE'],
tag => $domain,
}