Commit 54e89712 authored by Markus Frosch's avatar Markus Frosch 📣

git init

parents
Pipeline #5304 passed with stages
in 7 minutes and 50 seconds
## Editors
.*.sw[op]
*~
## Debian Artifacts
/*.git/
/ccache/
/build/
*.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-aws.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
###################################
# Debian
###################################
build/debian/buster:
<<: *build
variables:
DOCKER_IMAGE: debian/buster
test/debian/buster:
<<: *test
variables:
DOCKER_IMAGE: debian/buster
dependencies:
- build/debian/buster
upload/debian/buster:
<<: *upload
dependencies:
- build/debian/buster
build/debian/stretch:
<<: *build
variables:
DOCKER_IMAGE: debian/stretch
test/debian/stretch:
<<: *test
variables:
DOCKER_IMAGE: debian/stretch
dependencies:
- build/debian/stretch
upload/debian/stretch:
<<: *upload
dependencies:
- build/debian/stretch
###################################
# Ubuntu
###################################
build/ubuntu/disco:
<<: *build
variables:
DOCKER_IMAGE: ubuntu/disco
test/ubuntu/disco:
<<: *test
variables:
DOCKER_IMAGE: ubuntu/disco
dependencies:
- build/ubuntu/disco
upload/ubuntu/disco:
<<: *upload
dependencies:
- build/ubuntu/disco
build/ubuntu/bionic:
<<: *build
variables:
DOCKER_IMAGE: ubuntu/bionic
test/ubuntu/bionic:
<<: *test
variables:
DOCKER_IMAGE: ubuntu/bionic
dependencies:
- build/ubuntu/bionic
upload/ubuntu/bionic:
<<: *upload
dependencies:
- build/ubuntu/bionic
build/ubuntu/xenial:
<<: *build
variables:
DOCKER_IMAGE: ubuntu/xenial
test/ubuntu/xenial:
<<: *test
variables:
DOCKER_IMAGE: ubuntu/xenial
dependencies:
- build/ubuntu/xenial
upload/ubuntu/xenial:
<<: *upload
dependencies:
- build/ubuntu/xenial
files
*.debhelper.log
*substvars
icingaweb2*/
.*.sw[op]
icingaweb2-module-aws (0.6.0-1) icinga; urgency=medium
* Initial package
-- Markus Frosch <markus.frosch@icinga.com> Fri, 30 Aug 2019 10:35:27 +0200
Source: icingaweb2-module-aws
Section: admin
Priority: optional
Maintainer: Icinga Development Team <info@icinga.com>
Build-Depends: debhelper (>= 9)
Standards-Version: 3.9.8
Homepage: https://www.icinga.com
Package: icingaweb2-module-aws
Architecture: all
Depends:
icingaweb2,
icingaweb2-module-director (>= 1.6),
${misc:Depends}
Recommends:
php-cli,
icingacli
Description: AWS module for Icinga Web 2
This is a simple Amazon Web Services (AWS) module for Icinga Web 2. Currently
it is nothing but an Import Source provider for Icinga Director.
.
It allows you to configure an Director automation that new Auto Scaling Groups
would be deployed immediately as new (virtual) hosts to your Icinga monitoring
system.
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Icinga Web 2 AWS Module
Source: https://github.com/Icinga/icingaweb2-module-aws
Homepage: https://www.icinga.com
Files: *
Copyright: 2016-2019 Icinga Development Team <info@icinga.com>
License: GPL-2+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
On Debian systems, the full text of the GNU General Public
License version 2 can be found in the file
`/usr/share/common-licenses/GPL-2'.
README.md
#!/bin/bash
set -e
module_name=aws
echo "Installing icingaweb2 module ${module_name}"
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y "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
usr/share/icingaweb2/modules/aws
#!/bin/sh
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
# * <deconfigured's-prerm> `deconfigure' `in-favour'
# <package-being-installed> <version> `removing'
# <conflicting-package> <version>
# for details, see https://www.debian.org/doc/debian-policy/ or
# the debian-policy package
module_name=aws
case "$1" in
remove)
echo "Disabling icingaweb2 module '${module_name}'"
rm -f /etc/icingaweb2/enabledModules/"${module_name}"
;;
upgrade|deconfigure)
;;
failed-upgrade)
;;
*)
echo "prerm called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0
#!/usr/bin/make -f
#export DH_VERBOSE=1
MODULE_NAME := aws
MODULE_PATH := /usr/share/icingaweb2/modules/$(MODULE_NAME)
%:
dh $@
override_dh_auto_install:
mkdir debian/tmp
mkdir -p debian/tmp$(MODULE_PATH)
find -maxdepth 1 ! -name debian ! -name ".*" -exec cp -rvt debian/tmp$(MODULE_PATH) {} \;
# vi: ts=4 sw=4 noexpandtab :
# yes we know, thats the name
source-package-component-has-long-file-name
version=3
# filenamemangle -> prepending icingaweb2 if only tag name
# versionmangle -> convert version addition to ~ version
opts=filenamemangle=s/.+\/(?:icingaweb2-module-aws|v)([\d.]+(?:-.+)?).tar.gz/icingaweb2-module-aws-$1.tar.gz/,versionmangle=s/^([\d.]+)-(.+)?/$1~$2/ \
https://github.com/Icinga/icingaweb2-module-aws/releases .*/(?:icingaweb2-module-aws-|v)([\d.]+(?:-.+)?).tar.gz
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment