Skip to content

Instantly share code, notes, and snippets.

@fiddyspence
Last active December 15, 2015 09:19
Show Gist options
  • Save fiddyspence/5237023 to your computer and use it in GitHub Desktop.
Save fiddyspence/5237023 to your computer and use it in GitHub Desktop.
mysql foo
database { 'foo':
ensure => $ensure,
charset => $charset,
provider => 'mysql',
require => Class['mysql::server'],
}
database { 'bar':
ensure => $ensure,
charset => $charset,
provider => 'mysql',
require => Class['mysql::server'],
}
database_user { "foo@bar":
ensure => $ensure,
password_hash => mysql_password($password),
provider => 'mysql',
require => Database[$name],
}
database_grant { "foo@bar/foo":
privileges => $grant,
provider => 'mysql',
require => Database_user["foo@bar"],
}
database_grant { "foo@bar/bar":
privileges => $grant,
provider => 'mysql',
require => Database_user["foo@bar"],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment