Skip to content

Commit 4bf2fa1

Browse files
committed
Current state (not sure why this wan't committed?)
1 parent 9f09f04 commit 4bf2fa1

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

manifests/init.pp

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,27 @@
9999
File["/var/run/celery"],
100100
Class["rabbitmq::service"], ],
101101
}
102+
}
103+
104+
class celery::django($requirements="/tmp/celery-django-requirements.txt",
105+
$requirements_template="celery/django-requirements.txt",
106+
$initd_template="celery/init.d.sh",
107+
$config_template="celery/celeryconfig.py",
108+
$defaults_template="celery/defaults.sh",
109+
$broker_user="some_user",
110+
$broker_vhost="some_vhost",
111+
$broker_password="CHANGEME",
112+
$broker_host="localhost",
113+
$broker_port="5672") {
114+
115+
file { $requirements:
116+
ensure => "present",
117+
content => template($requirements_template),
118+
}
119+
120+
pip::install {"celery":
121+
requirements => $requirements,
122+
require => [Exec["pip::bootstrapped"], File[$requirements],],
123+
}
124+
102125
}

0 commit comments

Comments
 (0)