icingaweb2.pp 865 Bytes
Newer Older
Markus Frosch's avatar
Markus Frosch committed
1
class icinga2_testing::profiles::icingaweb2 {
Markus Frosch's avatar
Markus Frosch committed
2
  include ::icinga2_testing::profiles::apache
Markus Frosch's avatar
Markus Frosch committed
3

4
5
6
7
8
  if $::operatingsystem == 'CentOS' {
    ensure_packages(['centos-release-scl'])
    Package['centos-release-scl'] -> Class['::icingaweb2']
  }

Markus Frosch's avatar
Markus Frosch committed
9
10
11
12
13
  class { '::icingaweb2':
    manage_apache_vhost => true,
    manage_repo         => false,
    install_method      => 'package',
  }
14
  contain ::icingaweb2
Markus Frosch's avatar
Markus Frosch committed
15

16
  contain ::icingaweb2::mod::monitoring
17

Markus Frosch's avatar
Markus Frosch committed
18
19
20
21
22
23
24
  # TODO: contain ::icingaweb2::mod::doc
  file { 'icingaweb2 enable doc':
    ensure => link,
    path   => "${::icingaweb2::config_dir}/enabledModules/doc",
    target => "${::icingaweb2::web_root}/modules/doc",
  }

25
26
  create_resources('icinga2_testing::profiles::icingaweb2::backend_group', hiera_hash('icingaweb2::backend_groups', {}))
  create_resources('icingaweb2::config::roles', hiera_hash('icingaweb2::roles', {}))
Markus Frosch's avatar
Markus Frosch committed
27
}