Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class icinga2test::icingaweb2 {
- # Icingaweb configuration
- include ::mysql::server
- $web_apt_packages = [ 'php7.0', 'libapache2-mod-php7.0' ]
- package { $web_apt_packages:
- ensure => 'present',
- provider => apt,
- }
- mysql::db { 'icingaweb2':
- user => 'icingaweb2',
- password => 'icingaweb2',
- host => 'localhost',
- grant => ['SELECT', 'INSERT', 'UPDATE', 'DELETE', 'DROP', 'CREATE VIEW', 'CREATE', 'INDEX', 'EXECUTE', 'ALTER', 'REFERENCES'],
- }
- class { '::icingaweb2':
- manage_repo => true,
- import_schema => true,
- db_type => 'mysql',
- db_host => 'localhost',
- db_port => '3306',
- db_username => 'icingaweb2',
- db_password => 'icingaweb2',
- require => Mysql::Db['icingaweb2'],
- }
- icingaweb2::config::resource{'my-sql':
- type => 'db',
- db_type => 'mysql',
- host => 'localhost',
- port => '3306',
- db_name => 'icingaweb2',
- db_username => 'icingaweb2',
- db_password => 'icingaweb2',
- }
- icingaweb2::config::resource{'icinga2':
- type => 'db',
- db_type => 'mysql',
- host => 'localhost',
- port => '3306',
- db_name => 'icinga2',
- db_username => 'icinga2',
- db_password => 'supersecret',
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement