module-puppetlabs-mysql/examples/mysql_db.pp
2015-02-09 15:47:12 -08:00

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,
}