File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments