Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Current state (not sure why this wan't committed?)

  • Loading branch information...
commit 4bf2fa1f444b0265c0a51ad633e16195c68f290e 1 parent 9f09f04
@tswicegood tswicegood authored
Showing with 23 additions and 0 deletions.
  1. +23 −0 manifests/init.pp
View
23 manifests/init.pp
@@ -99,4 +99,27 @@
File["/var/run/celery"],
Class["rabbitmq::service"], ],
}
+}
+
+class celery::django($requirements="/tmp/celery-django-requirements.txt",
+ $requirements_template="celery/django-requirements.txt",
+ $initd_template="celery/init.d.sh",
+ $config_template="celery/celeryconfig.py",
+ $defaults_template="celery/defaults.sh",
+ $broker_user="some_user",
+ $broker_vhost="some_vhost",
+ $broker_password="CHANGEME",
+ $broker_host="localhost",
+ $broker_port="5672") {
+
+ file { $requirements:
+ ensure => "present",
+ content => template($requirements_template),
+ }
+
+ pip::install {"celery":
+ requirements => $requirements,
+ require => [Exec["pip::bootstrapped"], File[$requirements],],
+ }
+
}
Please sign in to comment.
Something went wrong with that request. Please try again.