https://github.com/armstrong/puppet-celery
Celery in your Puppets
https://github.com/armstrong/puppet-celery
Last synced: about 1 month ago
JSON representation
Celery in your Puppets
- Host: GitHub
- URL: https://github.com/armstrong/puppet-celery
- Owner: armstrong
- License: apache-2.0
- Created: 2011-09-20T22:15:58.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-06-01T18:56:22.000Z (almost 14 years ago)
- Last Synced: 2024-11-06T11:46:11.943Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 152 KB
- Stars: 11
- Watchers: 6
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
- awesome-starts - armstrong/puppet-celery - Celery in your Puppets (others)
README
celery for puppet
=================
This installs and configures `Celery`_.
This is a `puppet`_ module for using Python's `pip`_. Puppet has a
built-in pip provider, but it's implementation leaves out a few pieces:
* No ability to install from requirements file.
* No ability to add extra arguments
* No support for using mirrors or specifying alternate indexes.
This module fixes this.
Usage
-----
Make sure this module is available by adding this repository's contents
in a directory called ``celery`` inside your Puppet's ``moduledir``.
It also requires the `puppet-pip`_ module as well.
Bootstrapping RabbitMQ
""""""""""""""""""""""
If you need to bootstrap RabbitMQ (note that this requires that you have
`this version`_ of `puppetlabs-rabbitmq`_ to run on RabbitMQ 2.6)::
class { "celery::rabbitmq": }
You should provide a ``user``, ``vhost``, and ``password`` along these
lines::
class { "celery::rabbitmq":
$user => "myuser",
$vhost => "myvhost",
$password => "secret",
}
This installs and configures RabbitMQ. Take a look at
`puppetlabs-rabbitmq`_ if you need more flexibility in how your RabbitMQ
instance is initialized.
Creating Celery Server
""""""""""""""""""""""
You create a celery server with the ``celery::server`` class like this::
class { "celery::server": }
If you're relying on the RabbitMQ bootstrap, you would set it up like this::
class { "celery::server":
require => Class["celery::rabbitmq"],
}
Configuration
-------------
*TODO*
.. _Celery: http://celeryproject.org/
.. _distribute: http://packages.python.org/distribute/
.. _pip: http://www.pip-installer.org/
.. _puppet: http://puppetlabs.com/
.. _puppet-pip: https://github.com/armstrong/puppet-pip
.. _puppetlabs-rabbitmq: https://github.com/puppetlabs/puppetlabs-rabbitmq/
.. _this version: https://github.com/puppetlabs/puppetlabs-rabbitmq/pull/8