2015-02-20 10:40:45 +01:00
|
|
|
# == Class icingaweb2::params
|
|
|
|
#
|
|
|
|
class icingaweb2::params {
|
2015-02-20 22:22:45 +01:00
|
|
|
# Module variables
|
2015-02-20 10:40:45 +01:00
|
|
|
$git_repo = 'https://git.icinga.org/icingaweb2.git'
|
2015-02-20 22:22:45 +01:00
|
|
|
$git_revision = undef
|
2015-02-20 10:40:45 +01:00
|
|
|
$install_method = 'git'
|
|
|
|
$manage_apache_vhost = false
|
|
|
|
$manage_repo = false
|
2016-01-27 13:47:32 +01:00
|
|
|
$manage_user = true
|
2015-02-20 10:40:45 +01:00
|
|
|
|
2015-02-20 22:22:45 +01:00
|
|
|
# Template variables
|
2016-05-11 11:57:59 +02:00
|
|
|
$admin_permissions = '*'
|
|
|
|
$admin_users = 'icingaadmin'
|
|
|
|
$auth_backend = 'db'
|
|
|
|
$auth_ldap_base_dn = undef
|
|
|
|
$auth_ldap_filter = undef
|
|
|
|
$auth_ldap_user_class = 'inetOrgPerson'
|
|
|
|
$auth_ldap_user_name_attribute = 'uid'
|
|
|
|
$auth_resource = 'icingaweb_db'
|
|
|
|
$ido_db = 'mysql'
|
|
|
|
$ido_db_host = 'localhost'
|
|
|
|
$ido_db_name = 'icingaweb2'
|
|
|
|
$ido_db_pass = 'icingaweb2'
|
|
|
|
$ido_db_port = '3306'
|
|
|
|
$ido_db_user = 'icingaweb2'
|
|
|
|
$ido_type = 'db'
|
|
|
|
$ldap_bind_dn = undef
|
|
|
|
$ldap_bind_pw = undef
|
|
|
|
$ldap_encryption = undef
|
|
|
|
$ldap_host = undef
|
|
|
|
$ldap_port = '389'
|
|
|
|
$ldap_root_dn = undef
|
|
|
|
$log_application = 'icingaweb2'
|
|
|
|
$log_level = 'ERROR'
|
|
|
|
$log_method = 'syslog'
|
|
|
|
$log_resource = 'icingaweb_db'
|
|
|
|
$log_store = 'db'
|
|
|
|
$pkg_repo_version = 'release'
|
|
|
|
$template_auth = 'icingaweb2/authentication.ini.erb'
|
|
|
|
$template_config = 'icingaweb2/config.ini.erb'
|
|
|
|
$template_resources ='icingaweb2/resources.ini.erb'
|
|
|
|
$template_roles = 'icingaweb2/roles.ini.erb'
|
|
|
|
$template_apache = 'icingaweb2/apache2.conf.erb'
|
|
|
|
$web_db = 'mysql'
|
|
|
|
$web_db_host = 'localhost'
|
|
|
|
$web_db_name = 'icingaweb2'
|
|
|
|
$web_db_pass = 'icingaweb2'
|
|
|
|
$web_db_port = '3306'
|
|
|
|
$web_db_prefix = 'icingaweb2_'
|
|
|
|
$web_db_user = 'icingaweb2'
|
|
|
|
$web_type = 'db'
|
|
|
|
$initialize = false
|
2015-02-20 10:40:45 +01:00
|
|
|
|
|
|
|
case $::osfamily {
|
|
|
|
'RedHat': {
|
2015-02-23 16:36:17 +01:00
|
|
|
$config_dir = '/etc/icingaweb2'
|
2016-02-11 22:59:54 +01:00
|
|
|
$config_dir_mode = '2770'
|
2015-09-17 16:20:19 +02:00
|
|
|
$config_dir_purge = false
|
2015-02-23 16:36:17 +01:00
|
|
|
$config_dir_recurse = false
|
2015-03-16 18:44:56 +01:00
|
|
|
$config_file_mode = '0664'
|
2015-02-23 16:36:17 +01:00
|
|
|
$config_group = 'icingaweb2'
|
|
|
|
$config_user = 'icingaweb2'
|
|
|
|
$pkg_ensure = present
|
|
|
|
$pkg_list = ['icingaweb2']
|
|
|
|
$pkg_repo_release_key = 'http://packages.icinga.org/icinga.key'
|
|
|
|
$pkg_repo_release_metadata_expire = undef
|
2015-06-12 22:10:20 +02:00
|
|
|
|
|
|
|
case $::operatingsystem {
|
|
|
|
'Scientific': {
|
|
|
|
$pkg_repo_release_url = "http://packages.icinga.org/epel/${::operatingsystemmajrelease}/release"
|
|
|
|
$pkg_repo_snapshot_url = "http://packages.icinga.org/epel/${::operatingsystemmajrelease}/snapshot"
|
|
|
|
}
|
|
|
|
default: {
|
|
|
|
$pkg_repo_release_url = 'http://packages.icinga.org/epel/$releasever/release'
|
|
|
|
$pkg_repo_snapshot_url = 'http://packages.icinga.org/epel/$releasever/snapshot'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-02-23 16:36:17 +01:00
|
|
|
$pkg_repo_snapshot_key = 'http://packages.icinga.org/icinga.key'
|
|
|
|
$pkg_repo_snapshot_metadata_expire = '1d'
|
|
|
|
$web_root = '/usr/share/icingaweb2'
|
2015-02-20 14:04:07 +01:00
|
|
|
|
|
|
|
$pkg_deps = [
|
|
|
|
'php-gd',
|
|
|
|
'php-intl',
|
|
|
|
'php-ldap',
|
|
|
|
'php-mysql',
|
|
|
|
'php-pecl-imagick',
|
|
|
|
'php-pgsql',
|
|
|
|
]
|
2015-02-20 10:40:45 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
'Debian': {
|
2015-02-23 16:36:17 +01:00
|
|
|
$config_dir = '/etc/icingaweb2'
|
|
|
|
$config_dir_mode = '0755'
|
2015-09-17 16:20:19 +02:00
|
|
|
$config_dir_purge = false
|
2015-02-23 16:36:17 +01:00
|
|
|
$config_dir_recurse = false
|
|
|
|
$config_file_mode = '0644'
|
|
|
|
$config_group = 'icingaweb2'
|
|
|
|
$config_user = 'icingaweb2'
|
|
|
|
$pkg_ensure = present
|
|
|
|
$pkg_list = ['icingaweb2']
|
|
|
|
$pkg_repo_release_key = undef
|
|
|
|
$pkg_repo_release_metadata_expire = undef
|
|
|
|
$pkg_repo_release_url = undef
|
|
|
|
$pkg_repo_snapshot_key = undef
|
|
|
|
$pkg_repo_snapshot_metadata_expire = undef
|
|
|
|
$pkg_repo_snapshot_url = undef
|
|
|
|
$web_root = '/usr/share/icingaweb2'
|
2015-02-20 14:04:07 +01:00
|
|
|
|
|
|
|
$pkg_deps = [
|
|
|
|
'php5-gd',
|
|
|
|
'php5-imagick',
|
|
|
|
'php5-intl',
|
|
|
|
'php5-ldap',
|
|
|
|
'php5-mysql',
|
|
|
|
'php5-pgsql',
|
|
|
|
]
|
2015-02-20 10:40:45 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
default: {
|
|
|
|
fail "Operating system ${::operatingsystem} is not supported."
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|