From: Michael Friedrich Date: Fri, 22 Sep 2017 10:57:15 +0000 (+0200) Subject: Remove bottom-up repository.d references X-Git-Tag: v2.8.0~66^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cfd2a93aa6027aaa8824ad46a709bfb43809e1eb;p=icinga2 Remove bottom-up repository.d references refs #4799 --- diff --git a/etc/CMakeLists.txt b/etc/CMakeLists.txt index 3d2c077d7..46bc6ffb0 100644 --- a/etc/CMakeLists.txt +++ b/etc/CMakeLists.txt @@ -63,14 +63,12 @@ endif() install_if_not_exists(icinga2/scripts/mail-host-notification.sh ${CMAKE_INSTALL_SYSCONFDIR}/icinga2/scripts) install_if_not_exists(icinga2/scripts/mail-service-notification.sh ${CMAKE_INSTALL_SYSCONFDIR}/icinga2/scripts) install_if_not_exists(icinga2/zones.d/README ${CMAKE_INSTALL_SYSCONFDIR}/icinga2/zones.d) -install_if_not_exists(icinga2/repository.d/README ${CMAKE_INSTALL_SYSCONFDIR}/icinga2/repository.d) if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux") install_if_not_exists(${CMAKE_CURRENT_BINARY_DIR}/logrotate.d/icinga2 ${CMAKE_INSTALL_SYSCONFDIR}/logrotate.d) endif() install(CODE "file(MAKE_DIRECTORY \"\$ENV{DESTDIR}${CMAKE_INSTALL_FULL_SYSCONFDIR}/icinga2/pki\")") -install(CODE "file(MAKE_DIRECTORY \"\$ENV{DESTDIR}${CMAKE_INSTALL_FULL_SYSCONFDIR}/icinga2/repository.d\")") if(NOT WIN32) install(CODE "file(MAKE_DIRECTORY \"\$ENV{DESTDIR}${CMAKE_INSTALL_FULL_SYSCONFDIR}/icinga2/features-enabled\")") diff --git a/etc/icinga2/conf.d/satellite.conf b/etc/icinga2/conf.d/satellite.conf deleted file mode 100644 index 4a6b97add..000000000 --- a/etc/icinga2/conf.d/satellite.conf +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Host and Service templates for the Agent Setup. - */ - - -/** - * Provides settings for satellite hosts managed by 'icinga2 repository'. - * Define your global attributes here, for example custom - * attributes used for notifications, etc. - */ -template Host "satellite-host" { - vars.notification["mail"] = { - groups = [ "icingaadmins" ] - } -} - -/** - * Provides settings for satellite services managed by 'icinga2 repository'. - * Define your global satellite attributes here, for example custom - * attributes used for notifications, etc. - */ -template Service "satellite-service" { - vars.notification["mail"] = { - groups = [ "icingaadmins" ] - } -} - - -apply Dependency "satellite-host" to Host { - parent_host_name = host.zone - - assign where host.zone != "" && "satellite-host" in host.templates -} diff --git a/etc/icinga2/icinga2.conf b/etc/icinga2/icinga2.conf index a809b9694..17513a346 100644 --- a/etc/icinga2/icinga2.conf +++ b/etc/icinga2/icinga2.conf @@ -49,12 +49,6 @@ include */ include "features-enabled/*.conf" -/** - * The repository.d directory contains all configuration objects - * managed by the 'icinga2 repository' CLI commands. - */ -include_recursive "repository.d" - /** * Although in theory you could define all your objects in this file * the preferred way is to create separate directories and files in the conf.d diff --git a/etc/icinga2/repository.d/README b/etc/icinga2/repository.d/README deleted file mode 100644 index a5da0825e..000000000 --- a/etc/icinga2/repository.d/README +++ /dev/null @@ -1,3 +0,0 @@ -This directory contains configuration files managed by 'icinga2 repository' -cli commands. Please run 'icinga2 repository --help' to see all available -options. diff --git a/etc/icinga2/win32/icinga2.conf b/etc/icinga2/win32/icinga2.conf index ecd612030..cc47c410a 100644 --- a/etc/icinga2/win32/icinga2.conf +++ b/etc/icinga2/win32/icinga2.conf @@ -47,12 +47,6 @@ include */ include "features-enabled/*.conf" -/** - * The repository.d directory contains all configuration objects - * managed by the 'icinga2 repository' CLI commands. - */ -include_recursive "repository.d" - /** * Although in theory you could define all your objects in this file * the preferred way is to create separate directories and files in the conf.d diff --git a/icinga2.spec b/icinga2.spec index 4eaa3e72c..b1f27100a 100644 --- a/icinga2.spec +++ b/icinga2.spec @@ -657,9 +657,7 @@ fi %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/features-available %exclude %{_sysconfdir}/%{name}/features-available/ido-*.conf %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/features-enabled -%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/repository.d %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/scripts -%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/repository.d %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/zones.d %config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/%{name}.conf %config(noreplace) %attr(0640,root,%{icinga_group}) %{_sysconfdir}/%{name}/init.conf @@ -667,7 +665,6 @@ fi %config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/zones.conf %config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/conf.d/*.conf %config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/features-available/*.conf -%config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/repository.d/* %config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/zones.d/* %config(noreplace) %{_sysconfdir}/%{name}/scripts/* %dir %{_libexecdir}/%{name} @@ -731,5 +728,3 @@ fi %{_datadir}/nano/%{name}.nanorc %changelog -* Tue Jun 20 2017 Markus Frosch 2.7.0-1 -- Update to 2.7.0