diff options
author | Zac Medico <zmedico@gentoo.org> | 2016-03-18 21:19:33 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2016-03-18 21:20:10 -0700 |
commit | 82577e6da88b56df3df491d625a95f52adf99546 (patch) | |
tree | e95d6576bebbbbda61a439a6ffbb64b6855e1570 /dev-python/flower/files | |
parent | net-misc/dropbear: version bump to 2016.73 (diff) | |
download | gentoo-82577e6da88b56df3df491d625a95f52adf99546.tar.gz gentoo-82577e6da88b56df3df491d625a95f52adf99546.tar.bz2 gentoo-82577e6da88b56df3df491d625a95f52adf99546.zip |
dev-python/flower: new package
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-python/flower/files')
-rw-r--r-- | dev-python/flower/files/config.py | 115 | ||||
-rw-r--r-- | dev-python/flower/files/flower.confd | 2 | ||||
-rw-r--r-- | dev-python/flower/files/flower.initd | 24 | ||||
-rw-r--r-- | dev-python/flower/files/flower.service | 13 |
4 files changed, 154 insertions, 0 deletions
diff --git a/dev-python/flower/files/config.py b/dev-python/flower/files/config.py new file mode 100644 index 000000000000..da101ab785b5 --- /dev/null +++ b/dev-python/flower/files/config.py @@ -0,0 +1,115 @@ +# Configuration file for the Celery Flower service. Standard Celery +# configuration settings can be overridden in the configuration file. See the +# Celery Configuration documentation for a complete listing of all available +# settings, and their default values. + + +# URL for the broker used by Celery. +# BROKER_URL = 'amqp://guest:guest@localhost:5672//' + + +# Run the HTTP service on the given address. +# +# addess = localhost + + +# Run the HTTP server on the given port. +# +# port = 5555 + + +# Enables Google OpenID authentication. `auth` is a regexp of emails to grant +# access. For more info see google-openid. +# +# auth = None + + +# Refresh dashboards automatically. +# +# auto_refresh = True + + +# Enables HTTP Basic authentication. `basic_auth` is a comma separated list of +# `username:password`. If configured, any client trying to access this Flower +# instance will be prompted to provide the credentials specified in this +# argument. +# +# basic_auth = None + + +# Flower can use the RabbitMQ Management Plugin to get info about queues. +# `broker_api` is a URL of a RabbitMQ HTTP API including user credentials. +# +# broker_api = http://username:password@rabbitmq-server-name:15672/api + + +# A path to ca_certs file. The ca_certs file contains a set of concatenated +# "certification authority" certificates, which are used to validate +# certificates passed from the other end of the connection. +# +# ca_certs = None + + +# A path to an x509 certificate file. +# +# certfile = None + + +# A path to the private key for `certfile`. +# +# keyfile = None + + +# Enable debug mode. +# +# debug = False + + +# Periodically enable Celery events by using `enable_events` command +# +# enable_events = True + + +# Modifies the default task formatting. `format_task` should be a function +# that accepts a task object and returns a modified version. This is useful +# when filtering out sensitive information. +# +# format_task = None + + +# Sets worker inspect timeout in milliseconds. +# +# inspect_timeout = 10000 + + +# Maximum number of tasks to keep in memory. +# +# max_tasks = 10000 + + +# Show time relative to the refresh time. +# +# natural_time = True + + +# Enable persistent mode. If the persistent mode is enabled, Flower saves the +# current state and reloads on restart. +# +# persistent = False + + +# A path to a database file to use if persistent mode is enabled. +# +# db = flower + + +# Enable support of `X-Real-Ip` and `X-Scheme` headers +# +# xheaders = False + + +# Specifies list of comma-delimited columns on the /tasks/ page. Order of slugs +# in the option is unrelated to order of columns on the page. Available slugs +# include: name, uuid, state, args, kwargs, result, received, started, runtime. +# +# tasks_columns = None diff --git a/dev-python/flower/files/flower.confd b/dev-python/flower/files/flower.confd new file mode 100644 index 000000000000..a74ca17f3d2b --- /dev/null +++ b/dev-python/flower/files/flower.confd @@ -0,0 +1,2 @@ +# extra arguments for the flower +command_args="--conf=/etc/flower/config.py" diff --git a/dev-python/flower/files/flower.initd b/dev-python/flower/files/flower.initd new file mode 100644 index 000000000000..bd2008fc2f9e --- /dev/null +++ b/dev-python/flower/files/flower.initd @@ -0,0 +1,24 @@ +#!/sbin/openrc-run +# Copyright 2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +description="Real-time monitor and web admin for Celery distributed task queue" +pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"} +user=${SVCNAME} +group=${SVCNAME} + +command="/usr/bin/${SVCNAME}" +command_background="true" +start_stop_daemon_args="--user ${user} --group ${group} \ + --stdout /var/log/${SVCNAME}/${SVCNAME}.log \ + --stderr /var/log/${SVCNAME}/${SVCNAME}.log" + +depend() { + need net + after net +} + +start_pre() { + checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}" +} diff --git a/dev-python/flower/files/flower.service b/dev-python/flower/files/flower.service new file mode 100644 index 000000000000..5220d89fcff8 --- /dev/null +++ b/dev-python/flower/files/flower.service @@ -0,0 +1,13 @@ +[Unit] +Description=Real-time monitor and web admin for Celery distributed task queue +Requires=network-online.target +After=network-online.target + +[Service] +User=flower +PrivateDevices=Yes +Environment=_FLOWER_OPTS="--conf=/etc/flower/config.py" +ExecStart=/usr/bin/flower $_FLOWER_OPTS + +[Install] +WantedBy=multi-user.target |