
Refactor askbot module: - deployment source from git instead of pip - separate init / install / config code - break site config into celeryd / cron / http / log / ssl / static parts - support of Ubuntu Precise 12.04LTS / Trusty 14.04LTS Notice: don't approve this patch until puppet run is enabled on ask.o.o because it breaks the production site. (need to refactor the related system-config ask.pp too) Depends-On: Iaa8488a3d7ab8b121404ac1ac39bd1620a868727 Change-Id: I560c24c3b09e4a8d09b23afa619a4cf361601cbe
23 lines
637 B
Puppet
23 lines
637 B
Puppet
# == Class: askbot::site::celeryd
|
|
# This class describes the askbot celery daemon configuration
|
|
class askbot::site::celeryd (
|
|
$site_root,
|
|
) {
|
|
file { '/etc/init/askbot-celeryd.conf':
|
|
ensure => present,
|
|
owner => 'root',
|
|
group => 'root',
|
|
mode => '0644',
|
|
content => template('askbot/celeryd.upstart.conf.erb'),
|
|
require => Exec['askbot-migrate'],
|
|
}
|
|
|
|
service { 'askbot-celeryd':
|
|
ensure => running,
|
|
enable => true,
|
|
hasrestart => true,
|
|
require => File['/etc/init/askbot-celeryd.conf'],
|
|
subscribe => [ Exec['askbot-migrate'], File["${site_root}/config/settings.py"] ]
|
|
}
|
|
}
|