Filippo Giunchedi has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/398839 )
Change subject: Add debian/ and .gitreview ...................................................................... Add debian/ and .gitreview Bug: T181995 Change-Id: Icfb9a2c02b5b95a48eed22ac6f9e86d3bddb4132 --- A .gitreview A debian/changelog A debian/compat A debian/control A debian/copyright A debian/dirs A debian/install A debian/postinst A debian/rules A debian/service 10 files changed, 88 insertions(+), 0 deletions(-) Approvals: Muehlenhoff: Looks good to me, but someone else must approve jenkins-bot: Verified Filippo Giunchedi: Looks good to me, approved diff --git a/.gitreview b/.gitreview new file mode 100644 index 0000000..ce381ea --- /dev/null +++ b/.gitreview @@ -0,0 +1,5 @@ +[gerrit] +host=gerrit.wikimedia.org +port=29418 +project=operations/debs/prometheus-nutcracker-exporter.git +defaultbranch=master diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..eeb235f --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +prometheus-nutcracker-exporter (0.1) jessie-wikimedia; urgency=medium + + * First upload. + + -- Filippo Giunchedi <fili...@debian.org> Mon, 18 Dec 2017 14:46:33 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..bc5f096 --- /dev/null +++ b/debian/control @@ -0,0 +1,12 @@ +Source: prometheus-nutcracker-exporter +Section: net +Priority: extra +Maintainer: Filippo Giunchedi <fgiunch...@wikimedia.org> +Build-Depends: debhelper (>= 9), dh-systemd (>= 1.5) +Standards-Version: 3.9.8 + +Package: prometheus-nutcracker-exporter +Architecture: all +Depends: python-prometheus-client, ${misc:Depends} +Description: Prometheus exporter for Nutcracker + Prometheus exporter for Nutcracker metrics. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..3825b2a --- /dev/null +++ b/debian/copyright @@ -0,0 +1,21 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ + +Files: * +Copyright: 2017 Moritz Muehlenhoff <mor...@wikimedia.org>, Filippo Giunchedi <fili...@wikimedia.org>, Wikimedia Foundation +License: Apache-2.0 + +License: Apache-2.0 + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + . + http://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + . + On Debian systems, the full text of the Apache License version 2 can be found + in the file `/usr/share/common-licenses/Apache-2.0'. diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..e772481 --- /dev/null +++ b/debian/dirs @@ -0,0 +1 @@ +usr/bin diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..a9b40d0 --- /dev/null +++ b/debian/install @@ -0,0 +1 @@ +prometheus-nutcracker-exporter usr/bin diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..a43ff27 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,27 @@ +#!/bin/sh + +set -e + +case "$1" in + configure) + # Add prometheus user + if ! getent passwd prometheus > /dev/null; then + adduser --quiet --system --no-create-home \ + --group --gecos "Prometheus daemon" prometheus || true + fi + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + : + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..305c822 --- /dev/null +++ b/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ --with systemd diff --git a/debian/service b/debian/service new file mode 100644 index 0000000..62a77a4 --- /dev/null +++ b/debian/service @@ -0,0 +1,11 @@ +[Unit] +Description=Prometheus Nutcracker exporter + +[Service] +Restart=always +User=prometheus +EnvironmentFile=-/etc/default/prometheus-nutcracker-exporter +ExecStart=/usr/bin/prometheus-nutcracker-exporter $ARGS + +[Install] +WantedBy=multi-user.target -- To view, visit https://gerrit.wikimedia.org/r/398839 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Icfb9a2c02b5b95a48eed22ac6f9e86d3bddb4132 Gerrit-PatchSet: 1 Gerrit-Project: operations/debs/prometheus-nutcracker-exporter Gerrit-Branch: master Gerrit-Owner: Filippo Giunchedi <fgiunch...@wikimedia.org> Gerrit-Reviewer: Filippo Giunchedi <fgiunch...@wikimedia.org> Gerrit-Reviewer: Giuseppe Lavagetto <glavage...@wikimedia.org> Gerrit-Reviewer: Muehlenhoff <mmuhlenh...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits