Volans has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/338374 )
Change subject: Add debian/ directory for packaging ...................................................................... Add debian/ directory for packaging * Moved also the example config.yaml to the doc/ directory and shipping it with the package. Bug: T154588 Change-Id: Ic3d0282706fe307fb0dac2d77979bc1a06406ffb --- D cumin/config.yaml A debian/changelog A debian/compat A debian/control A debian/copyright A debian/gbp.conf A debian/python-cumin.dirs A debian/python-cumin.examples A debian/rules A debian/source/format A doc/examples/config.yaml 11 files changed, 73 insertions(+), 15 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/software/cumin refs/changes/74/338374/1 diff --git a/cumin/config.yaml b/cumin/config.yaml deleted file mode 100644 index 7feb37e..0000000 --- a/cumin/config.yaml +++ /dev/null @@ -1,15 +0,0 @@ -backend: puppetdb # Default backend to use, can be overriden by command line arguments -transport: clustershell # Default transport to use, can be overriden by command line arguments -log_file: logs/cumin.log # Absolute or relative path for the log file - -# Backend-specific configuration -puppetdb: - host: puppetdb.local - port: 443 - -# Transport-specific configuration -clustershell: - environment: - ENV_VARIABLE: env_value - ssh_options: - - 'some_option' diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..7f731d4 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +python-cumin (0.0.1) jessie-wikimedia; urgency=medium + + * Initial packaging. + + -- Riccardo Coccioli <[email protected]> Thu, 16 Feb 2017 11:15:24 +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..8295482 --- /dev/null +++ b/debian/control @@ -0,0 +1,19 @@ +Source: python-cumin +Section: python +Priority: optional +Maintainer: Riccardo Coccioli <[email protected]> +Standards-Version: 3.9.6 +Build-Depends: debhelper (>= 9), dh-python, python-all (>= 2.7), + python-setuptools +Homepage: https://github.com/wikimedia/operations-software-cumin +X-Python-Version: >= 2.7 + +Package: python-cumin +Architecture: any +Depends: ${python:Depends}, ${misc:Depends}, python-tqdm +Provides: ${python:Provides} +Description: Cumin provides a flexible and scalable automation + framework to execute multiple commands on multiple hosts in + parallel. It allows to easily perform complex selections of + hosts through a user-friendly query language which can + interfaces with different backend modules. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..d2b1c28 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,11 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: cumin +Source: https://github.com/wikimedia/operations-software-cumin + +Files: * +Copyright: 2017 Riccardo Coccioli <[email protected]> + 2017 Wikimedia Foundation, Inc. +License: GPL-3.0 + +License: GPL-3.0 + See /usr/share/common-licenses/GPL-3.0 diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..5f9be5f --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,4 @@ +[buildpackage] +upstream-tag = %(version)s +upstream-branch = master +debian-branch = debian diff --git a/debian/python-cumin.dirs b/debian/python-cumin.dirs new file mode 100644 index 0000000..5e61a4f --- /dev/null +++ b/debian/python-cumin.dirs @@ -0,0 +1,2 @@ +etc/cumin +var/log/cumin diff --git a/debian/python-cumin.examples b/debian/python-cumin.examples new file mode 100644 index 0000000..882f561 --- /dev/null +++ b/debian/python-cumin.examples @@ -0,0 +1 @@ +doc/examples/config.yaml diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..270db1b --- /dev/null +++ b/debian/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/default.mk + +%: + dh $@ --with python2 --buildsystem=python_distutils + +clean: + dh_testdir + dh_auto_clean + dh_clean diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/doc/examples/config.yaml b/doc/examples/config.yaml new file mode 100644 index 0000000..f9ad8de --- /dev/null +++ b/doc/examples/config.yaml @@ -0,0 +1,18 @@ +backend: puppetdb # Default backend to use, can be overriden by command line arguments +transport: clustershell # Default transport to use, can be overriden by command line arguments +log_file: logs/cumin.log # Absolute or relative path for the log file + +# Environment variables that will be defined [optional] +environment: + ENV_VARIABLE: env_value + +# Backend-specific configuration +puppetdb: + host: puppetdb.local + port: 443 + +# Transport-specific configuration +clustershell: + ssh_options: # SSH options passed to ClusterShell [optional] + - 'some_option' + fanout: 16 # Max size of the sliding window of concurrent workers active at any given time [optional, default: 64] -- To view, visit https://gerrit.wikimedia.org/r/338374 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic3d0282706fe307fb0dac2d77979bc1a06406ffb Gerrit-PatchSet: 1 Gerrit-Project: operations/software/cumin Gerrit-Branch: debian Gerrit-Owner: Volans <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
