Compare commits
6 Commits
37c398c1e3
...
ac92543985
Author | SHA1 | Date |
---|---|---|
![]() |
ac92543985 | |
![]() |
45c545193a | |
![]() |
25091f3e86 | |
![]() |
fa5e9a86ae | |
![]() |
cc3fddb810 | |
![]() |
4baa67fab6 |
|
@ -0,0 +1,64 @@
|
||||||
|
%global module_name kubernetes
|
||||||
|
%global basedir %{_datadir}/icingaweb2/modules/kubernetes
|
||||||
|
%global docdir %{_datadir}/doc/icingakubernetes
|
||||||
|
|
||||||
|
Name: icinga-kubernetes-web
|
||||||
|
Version: 0.1.0
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: Icinga Kubernetes Web
|
||||||
|
Group: Applications/System
|
||||||
|
License: AGPLv3
|
||||||
|
URL: https://icinga.com
|
||||||
|
#Source0: https://github.com/Icinga/icinga-notifications-web/archive/v%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
Requires: icingaweb2 >= 2.9
|
||||||
|
Requires: icinga-kubernetes
|
||||||
|
Requires: icinga-php-library >= 0.13.0
|
||||||
|
Requires: icinga-php-thirdparty >= 0.120
|
||||||
|
|
||||||
|
|
||||||
|
%description
|
||||||
|
Icinga for Kubernetes is a set of components for monitoring and visualizing Kubernetes resources.
|
||||||
|
This package installs Icinga for Kubernetes Web, which visualizes Kubernetes resources and their status
|
||||||
|
that are synchronized to a database by the Icinga for Kubernetes daemon.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -T -c %{name}-%{version}
|
||||||
|
git clone https://github.com/Icinga/icinga-kubernetes-web .
|
||||||
|
git checkout v%{version}
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -vp %{buildroot}%{basedir}
|
||||||
|
mkdir -vp %{buildroot}%{docdir}
|
||||||
|
cp -vr application %{buildroot}%{basedir}
|
||||||
|
cp -vr library %{buildroot}%{basedir}
|
||||||
|
cp -vr public %{buildroot}%{basedir}
|
||||||
|
cp -vr configuration.php %{buildroot}%{basedir}
|
||||||
|
cp -vr module.info %{buildroot}%{basedir}
|
||||||
|
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
|
||||||
|
%preun
|
||||||
|
set -e
|
||||||
|
# Only for removal
|
||||||
|
if [ $1 == 0 ]; then
|
||||||
|
echo "Disabling icingaweb2 module '%{module_name}'"
|
||||||
|
rm -f /etc/icingaweb2/enabledModules/%{module_name}
|
||||||
|
fi
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.md
|
||||||
|
%license LICENSE
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{basedir}
|
||||||
|
%{docdir}
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
|
@ -3,7 +3,7 @@
|
||||||
%global docdir %{_datadir}/doc/icinganotifications
|
%global docdir %{_datadir}/doc/icinganotifications
|
||||||
|
|
||||||
Name: icinga-notifications-web
|
Name: icinga-notifications-web
|
||||||
Version: 0.0.5
|
Version: 0.1.0
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Icinga Notifications Web — Manage incidents and who gets notified about them how and when
|
Summary: Icinga Notifications Web — Manage incidents and who gets notified about them how and when
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
%define service %{name}.service
|
%define service %{name}.service
|
||||||
|
|
||||||
Name: icinga-notifications
|
Name: icinga-notifications
|
||||||
Version: 0.0.5
|
Version: 0.1.1
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Icinga Notifications
|
Summary: Icinga Notifications
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
|
@ -48,7 +48,7 @@ install -d -m 0755 %{buildroot}%{_libexecdir}/%{name}
|
||||||
install -m 0755 icinga-notifications %{buildroot}%{_sbindir}/
|
install -m 0755 icinga-notifications %{buildroot}%{_sbindir}/
|
||||||
%{__cp} -r channels %{buildroot}%{_libexecdir}/%{name}/
|
%{__cp} -r channels %{buildroot}%{_libexecdir}/%{name}/
|
||||||
install -m 0644 config.example.yml %{buildroot}%{configdir}/config.yml
|
install -m 0644 config.example.yml %{buildroot}%{configdir}/config.yml
|
||||||
install -m 0644 icinga2.conf %{buildroot}%{configdir}/icinga2-notifications.conf
|
#install -m 0644 icinga2.conf %{buildroot}%{configdir}/icinga2-notifications.conf
|
||||||
install -m 0644 %{S:1} %{buildroot}%{_unitdir}/
|
install -m 0644 %{S:1} %{buildroot}%{_unitdir}/
|
||||||
install -d -m 0755 %{buildroot}%{_datadir}/%{name}
|
install -d -m 0755 %{buildroot}%{_datadir}/%{name}
|
||||||
(umask 0022 && cp -rv schema %{buildroot}%{_datadir}/%{name}/)
|
(umask 0022 && cp -rv schema %{buildroot}%{_datadir}/%{name}/)
|
||||||
|
@ -80,7 +80,7 @@ rm -rf %{buildroot}
|
||||||
%defattr(0644,icinganotifications,icinganotifications,0755)
|
%defattr(0644,icinganotifications,icinganotifications,0755)
|
||||||
%dir %{configdir}
|
%dir %{configdir}
|
||||||
%config(noreplace) %{configdir}/config.yml
|
%config(noreplace) %{configdir}/config.yml
|
||||||
%config(noreplace) %{configdir}/icinga2-notifications.conf
|
#%config(noreplace) %{configdir}/icinga2-notifications.conf
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
%global basedir %{_datadir}/icinga-php/ipl
|
%global basedir %{_datadir}/icinga-php/ipl
|
||||||
|
|
||||||
Name: icinga-php-library
|
Name: icinga-php-library
|
||||||
Version: 0.14.0
|
Version: 0.14.1
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Icinga PHP Library for Icinga Web 2
|
Summary: Icinga PHP Library for Icinga Web 2
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
%global docdir %{_datadir}/doc/icingadb-web
|
%global docdir %{_datadir}/doc/icingadb-web
|
||||||
|
|
||||||
Name: icingadb-web
|
Name: icingadb-web
|
||||||
Version: 1.1.2
|
Version: 1.1.3
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Icinga DB Web for Icinga Web 2
|
Summary: Icinga DB Web for Icinga Web 2
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
|
|
Loading…
Reference in New Issue