Skip to content
Snippets Groups Projects
Commit cd3bad44 authored by Markus Frosch's avatar Markus Frosch
Browse files

git init

parents
No related branches found
No related tags found
No related merge requests found
Pipeline #5124 failed
## Editors
.*.sw[op]
*~
## RPM Artifacts
/*.git/
/ccache*
/build/
/rpmbuild/
*.tar*
*.version
#########################
# MANAGED BY MODULESYNC #
#########################
stages:
- build
- test
- upload
variables:
DOCKER_IMAGE_BASE: registry.icinga.com/build-docker
.build: &build
stage: build
tags:
- docker
image: ${DOCKER_IMAGE_BASE}/${DOCKER_IMAGE}
script:
- icinga-build-package
cache:
key: "${CI_JOB_NAME}"
paths:
- ccache/
- 'icingaweb2-module-vspheredb.git'
artifacts:
paths:
- build/*
expire_in: 1 week
.test: &test
stage: test
tags:
- docker
image: ${DOCKER_IMAGE_BASE}/${DOCKER_IMAGE}
script:
- find build/
- icinga-build-test
.upload: &upload
stage: upload
tags:
- docker
image: ${DOCKER_IMAGE_BASE}/upload
script:
- find build/
- icinga-build-upload-aptly
only:
- tags
###################################
# EPEL
###################################
build/centos/7:
<<: *build
variables:
DOCKER_IMAGE: centos/7
test/centos/7:
<<: *test
variables:
DOCKER_IMAGE: centos/7
dependencies:
- build/centos/7
upload/epel/7:
<<: *upload
dependencies:
- build/centos/7
build/centos/6:
<<: *build
variables:
DOCKER_IMAGE: centos/6
test/centos/6:
<<: *test
variables:
DOCKER_IMAGE: centos/6
dependencies:
- build/centos/6
upload/epel/6:
<<: *upload
dependencies:
- build/centos/6
###################################
# Fedora
###################################
build/fedora/30:
<<: *build
variables:
DOCKER_IMAGE: fedora/30
test/fedora/30:
<<: *test
variables:
DOCKER_IMAGE: fedora/30
dependencies:
- build/fedora/30
upload/fedora/30:
<<: *upload
dependencies:
- build/fedora/30
build/fedora/29:
<<: *build
variables:
DOCKER_IMAGE: fedora/29
test/fedora/29:
<<: *test
variables:
DOCKER_IMAGE: fedora/29
dependencies:
- build/fedora/29
upload/fedora/29:
<<: *upload
dependencies:
- build/fedora/29
###################################
# SLES
###################################
build/sles/15.0:
<<: *build
variables:
DOCKER_IMAGE: sles/15.0
test/sles/15.0:
<<: *test
variables:
DOCKER_IMAGE: sles/15.0
dependencies:
- build/sles/15.0
upload/SUSE/15.0:
<<: *upload
dependencies:
- build/sles/15.0
build/sles/12.4:
<<: *build
variables:
DOCKER_IMAGE: sles/12.4
test/sles/12.4:
<<: *test
variables:
DOCKER_IMAGE: sles/12.4
dependencies:
- build/sles/12.4
upload/SUSE/12.4:
<<: *upload
dependencies:
- build/sles/12.4
###################################
# openSUSE
###################################
build/opensuse/15.0:
<<: *build
variables:
DOCKER_IMAGE: opensuse/15.0
test/opensuse/15.0:
<<: *test
variables:
DOCKER_IMAGE: opensuse/15.0
dependencies:
- build/opensuse/15.0
upload/openSUSE/15.0:
<<: *upload
dependencies:
- build/opensuse/15.0
#!/bin/bash
set -e
module_name=vspheredb
echo "Installing icingaweb2 module ${module_name}"
icinga-build-rpm-install "icingaweb2-module-${module_name}"
sudo sh -ex <<ROOT
ls -al /usr/share/icingaweb2/modules
icingacli module enable ${module_name}
find /etc/icingaweb2
if [ ! -L /etc/icingaweb2/enabledModules/${module_name} ]; then
echo "Module is not enabled at /etc/icingaweb2/enabledModules/${module_name}" >&2
exit 1
fi
ROOT
# vSphere DB Module for Icinga Web 2 | (c) 2018-2019 Icinga Development Team <info@icinga.com> | GPLv2+
%global revision 1
%global module_name vspheredb
%global icingaweb_min_version 2.6.0
Name: icingaweb2-module-%{module_name}
Version: 1.0.4
Release: %{revision}%{?dist}
Summary: vSphere DB - Icinga Web 2 module
Group: Applications/System
License: GPLv2+
URL: https://icinga.com
Source0: https://github.com/Icinga/icingaweb2-module-%{module_name}/archive/v%{version}.tar.gz
#/icingaweb2-module-%{module_name}-%{version}.tar.gz
BuildArch: noarch
%global basedir %{_datadir}/icingaweb2/modules/%{module_name}
Requires: icingaweb2 >= %{icingaweb_min_version}
Requires: php-Icinga >= %{icingaweb_min_version}
Requires: icingaweb2-module-director >= 1.6
Requires: icingaweb2-module-ipl >= 0.1
Requires: icingaweb2-module-incubator >= 0.1
Requires: icingaweb2-module-reactbundle >= 0.4
# Compare to icingaweb2.spec
%if 0%{?rhel} == 7
%global php_scl rh-php71
%endif
%if 0%{?php_scl:1}
%global php_scl_prefix %{php_scl}-
%endif
%global php %{?php_scl_prefix}php
%if 0%{?suse_version}
Requires: %{php}-soap %{php}-posix %{php}-pcntl
%else # suse_version
Requires: %{php}-process %{php}-soap
%endif # suse_version
%description
The easiest way to monitor a VMware vSphere environment. Configure a
connection to your VMware vCenter® or VMware ESXi™ host and you're ready to
go. This module provides a lot of context, deep insight and great oversight.
Fast drill-down possibilities, valuable hints and reports.
You'll immediately see all your Host Systems, Virtual Machines, Data Stores
and much more pop up in your Icinga Web 2 frontend. This alone is already
very helpful, but there is more.
This module:
* provides an Import Source for the Icinga Director
* hooks into the Monitoring module and shows related information next to your
monitored Hosts
* provides Reports, helping to track down anomalies or configuration errors
* replicates the most interesting parts of your Event- and Alarm History
We currently support all VMware versions from 5.5 to 6.7.
%prep
%setup -q
#-n icingaweb2-module-%{module_name}-%{version}
%build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{basedir}
cp -r * %{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
%defattr(-,root,root)
%{basedir}
%changelog
* Fri Aug 30 2019 Markus Frosch <markus.frosch@icinga.com> - 1.0.4-1
- Initial package version
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment