Advertisement
Guest User

Untitled

a guest
Aug 9th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. class icinga2test::icingaweb2 {
  2. # Icingaweb configuration
  3. include ::mysql::server
  4. $web_apt_packages = [ 'php7.0', 'libapache2-mod-php7.0' ]
  5. package { $web_apt_packages:
  6. ensure => 'present',
  7. provider => apt,
  8. }
  9. mysql::db { 'icingaweb2':
  10. user => 'icingaweb2',
  11. password => 'icingaweb2',
  12. host => 'localhost',
  13. grant => ['SELECT', 'INSERT', 'UPDATE', 'DELETE', 'DROP', 'CREATE VIEW', 'CREATE', 'INDEX', 'EXECUTE', 'ALTER', 'REFERENCES'],
  14. }
  15. class { '::icingaweb2':
  16. manage_repo => true,
  17. import_schema => true,
  18. db_type => 'mysql',
  19. db_host => 'localhost',
  20. db_port => '3306',
  21. db_username => 'icingaweb2',
  22. db_password => 'icingaweb2',
  23. require => Mysql::Db['icingaweb2'],
  24. }
  25. icingaweb2::config::resource{'my-sql':
  26. type => 'db',
  27. db_type => 'mysql',
  28. host => 'localhost',
  29. port => '3306',
  30. db_name => 'icingaweb2',
  31. db_username => 'icingaweb2',
  32. db_password => 'icingaweb2',
  33. }
  34. icingaweb2::config::resource{'icinga2':
  35. type => 'db',
  36. db_type => 'mysql',
  37. host => 'localhost',
  38. port => '3306',
  39. db_name => 'icinga2',
  40. db_username => 'icinga2',
  41. db_password => 'supersecret',
  42. }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement