summaryrefslogtreecommitdiff
path: root/dev-python/flower/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/flower/files
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/flower/files')
-rw-r--r--dev-python/flower/files/config.py115
-rw-r--r--dev-python/flower/files/flower.confd2
-rw-r--r--dev-python/flower/files/flower.initd15
-rw-r--r--dev-python/flower/files/flower.logrotated7
-rw-r--r--dev-python/flower/files/flower.service13
5 files changed, 152 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..1f950c6d2103
--- /dev/null
+++ b/dev-python/flower/files/flower.initd
@@ -0,0 +1,15 @@
+#!/sbin/openrc-run
+# Copyright 2015-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="Real-time monitor and web admin for Celery distributed task queue"
+pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
+command="/usr/libexec/${RC_SVCNAME}/${RC_SVCNAME}"
+command_user="${RC_SVCNAME}"
+command_background="true"
+start_stop_daemon_args="--stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log
+ --stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log"
+
+depend() {
+ need net
+}
diff --git a/dev-python/flower/files/flower.logrotated b/dev-python/flower/files/flower.logrotated
new file mode 100644
index 000000000000..5c7f0287690e
--- /dev/null
+++ b/dev-python/flower/files/flower.logrotated
@@ -0,0 +1,7 @@
+/var/log/flower/flower.log {
+ missingok
+ size 5M
+ rotate 3
+ compress
+ copytruncate
+}
diff --git a/dev-python/flower/files/flower.service b/dev-python/flower/files/flower.service
new file mode 100644
index 000000000000..dd2f1d9da105
--- /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/libexec/flower/flower $_FLOWER_OPTS
+
+[Install]
+WantedBy=multi-user.target