Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ci::config::db::mysql (
- $db_tag,
- $manage_database,
- $options,
- $secure_options,
- ) {
- if ($manage_database) {
- $database = $options["database"]["database"]
- $username = $options["database"]["username"]
- $password = $secure_options["database"]["password"]
- mysql::db { "${database}_${::fqdn}":
- ensure => present,
- user => $username,
- password => $password,
- dbname => $database,
- host => "localhost", # localhost por ahora -> to be modified
- charset => "utf8",
- grant => [ "ALL" ],
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement