diff --git a/data/FreeBSD-kernel.yaml b/data/FreeBSD-kernel.yaml index ea2aa2ac7..619f72157 100644 --- a/data/FreeBSD-kernel.yaml +++ b/data/FreeBSD-kernel.yaml @@ -4,9 +4,7 @@ icinga2::globals::service_name: icinga2 icinga2::globals::service_reload: service icinga2 reload icinga2::globals::user: icinga icinga2::globals::group: icinga -icinga2::globals::ido_mysql_package_name: null icinga2::globals::ido_mysql_schema: /usr/local/share/icinga2-ido-mysql/schema/mysql.sql -icinga2::globals::ido_pgsql_package_name: null icinga2::globals::ido_pgsql_schema: /usr/local/share/icinga2-ido-pgsql/schema/pgsql.sql icinga2::globals::icinga2_bin: /usr/local/sbin/icinga2 icinga2::globals::conf_dir: /usr/local/etc/icinga2 diff --git a/data/OpenBSD-kernel.yaml b/data/OpenBSD-kernel.yaml index ca008ecc3..1462c9702 100644 --- a/data/OpenBSD-kernel.yaml +++ b/data/OpenBSD-kernel.yaml @@ -1,18 +1,12 @@ --- - - icinga2::globals::package_name: 'icinga2' icinga2::globals::service_name: 'icinga2' icinga2::globals::service_reload: 'rcctl restart icinga2' icinga2::globals::user: '_icinga' icinga2::globals::group: '_icinga' -icinga2::globals::ido_mysql_package_name: null icinga2::globals::ido_mysql_schema: '/usr/local/share/icinga2-ido-mysql/schema/mysql.sql' -icinga2::globals::ido_pgsql_package_name: null icinga2::globals::ido_pgsql_schema: '/usr/local/share/icinga2-ido-pgsql/schema/pgsql.sql' - icinga2::globals::icinga2_bin: '/usr/local/sbin/icinga2' - icinga2::globals::conf_dir: '/etc/icinga2' icinga2::globals::lib_dir: '/usr/local/lib/icinga2' icinga2::globals::log_dir: '/var/log/icinga2' @@ -21,7 +15,6 @@ icinga2::globals::spool_dir: '/var/spool/icinga2' icinga2::globals::cache_dir: '/var/cache/icinga2' icinga2::globals::cert_dir: '/var/lib/icinga2/certs' icinga2::globals::ca_dir: '/var/lib/icinga2/ca' - icinga2::globals::constants: PluginDir: '/usr/local/libexec/nagios' PluginContribDir: '/usr/local/share/icinga2/include/plugins-contrib.d' diff --git a/data/windows-kernel.yaml b/data/windows-kernel.yaml index b0371f78f..b847848a0 100644 --- a/data/windows-kernel.yaml +++ b/data/windows-kernel.yaml @@ -1,12 +1,7 @@ --- icinga2::globals::package_name: icinga2 icinga2::globals::service_name: icinga2 -icinga2::globals::service_reload: null -icinga2::globals::user: null -icinga2::globals::group: null -icinga2::globals::ido_mysql_package_name: null icinga2::globals::ido_mysql_schema: C:/Program Files/icinga2/usr/share/icinga2-ido-mysql/schema/mysql.sql -icinga2::globals::ido_pgsql_package_name: null icinga2::globals::ido_pgsql_schema: C:/Program Files/icinga2/usr/share/icinga2-ido-pgsql/schema/pgsql.sql icinga2::globals::icinga2_bin: C:/Program Files/icinga2/sbin/icinga2.exe icinga2::globals::conf_dir: C:/ProgramData/icinga2/etc/icinga2 diff --git a/manifests/globals.pp b/manifests/globals.pp index a6ccc8c1e..a27a268b1 100644 --- a/manifests/globals.pp +++ b/manifests/globals.pp @@ -82,11 +82,7 @@ class icinga2::globals( String $package_name, String $service_name, - Optional[String] $user, - Optional[String] $group, - Optional[String] $ido_mysql_package_name, String $ido_mysql_schema, - Optional[String] $ido_pgsql_package_name, String $ido_pgsql_schema, Stdlib::Absolutepath $icinga2_bin, Stdlib::Absolutepath $conf_dir, @@ -98,7 +94,11 @@ Stdlib::Absolutepath $cert_dir, Stdlib::Absolutepath $ca_dir, Array[String] $reserved, - Optional[String] $service_reload, + Optional[String] $user = undef, + Optional[String] $group = undef, + Optional[String] $ido_mysql_package_name = undef, + Optional[String] $ido_pgsql_package_name = undef, + Optional[String] $service_reload = undef, ) { assert_private()