mirror of https://github.com/zulip/zulip.git
puppet: Move clearsessions cron job to app_frontend_once.
While this is a different system than I'd written up in #8004, I think this is a better solution to the general problem of cron jobs to run on just one server. Fixes #8004.
This commit is contained in:
parent
9a74ef5056
commit
8e8faab006
|
@ -41,4 +41,12 @@ class zulip::app_frontend_once {
|
||||||
mode => 644,
|
mode => 644,
|
||||||
source => "puppet:///modules/zulip/cron.d/calculate-first-visible-message-id",
|
source => "puppet:///modules/zulip/cron.d/calculate-first-visible-message-id",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file { "/etc/cron.d/clearsessions":
|
||||||
|
ensure => file,
|
||||||
|
owner => "root",
|
||||||
|
group => "root",
|
||||||
|
mode => 644,
|
||||||
|
source => "puppet:///modules/zulip/cron.d/clearsessions",
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,14 +17,4 @@ class zulip_ops::staging_app_frontend {
|
||||||
target => '/etc/nginx/sites-available/zulip-staging',
|
target => '/etc/nginx/sites-available/zulip-staging',
|
||||||
notify => Service["nginx"],
|
notify => Service["nginx"],
|
||||||
}
|
}
|
||||||
file { "/etc/cron.d/clearsessions":
|
|
||||||
ensure => file,
|
|
||||||
owner => "root",
|
|
||||||
group => "root",
|
|
||||||
mode => 644,
|
|
||||||
source => "puppet:///modules/zulip_ops/cron.d/clearsessions",
|
|
||||||
}
|
|
||||||
|
|
||||||
# Staging has our Apple Push Notifications Service private key at
|
|
||||||
# /etc/ssl/django-private/apns-dev.pem
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue