Advertisement
Guest User

Untitled

a guest
May 8th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. class ci::config::db::mysql (
  2. $db_tag,
  3. $manage_database,
  4. $options,
  5. $secure_options,
  6. ) {
  7. if ($manage_database) {
  8. $database = $options["database"]["database"]
  9. $username = $options["database"]["username"]
  10. $password = $secure_options["database"]["password"]
  11.  
  12. mysql::db { "${database}_${::fqdn}":
  13. ensure => present,
  14. user => $username,
  15. password => $password,
  16. dbname => $database,
  17. host => "localhost", # localhost por ahora -> to be modified
  18. charset => "utf8",
  19. grant => [ "ALL" ],
  20. }
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement