dev/provisioning/modules/mysql/examples/mysql_database.pp
author Chloe Laisne <chloe.laisne@gmail.com>
Tue, 27 Sep 2016 01:50:53 +0200
changeset 303 2fef8007c2b2
parent 28 b0b56e0f8c7f
permissions -rw-r--r--
Transcript icon in player white by default and blue when active + Transcript font color darker

class { 'mysql::server':
  root_password => 'password'
}
mysql::db{ ['test1', 'test2', 'test3']:
  ensure  => present,
  charset => 'utf8',
  require => Class['mysql::server'],
}
mysql::db{ 'test4':
  ensure  => present,
  charset => 'latin1',
}
mysql::db{ 'test5':
  ensure  => present,
  charset => 'binary',
  collate => 'binary',
}