view modules/mysql/examples/mysql_db.pp @ 94:89a94c61e4d6 puppet-3.6

Reduce opcache memory usage because it doesn't use that much
author IBBoard <dev@ibboard.co.uk>
date Fri, 22 Jan 2016 20:27:16 +0000
parents 58d1818c2ded
children 668df4711671
line wrap: on
line source

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