mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
puppet: Move analytics cron job to analytics.pp.
This better groups it with the related code.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# Default configuration for a Zulip app frontend
|
# Default configuration for a Zulip app frontend
|
||||||
|
# This should only be enabled on exactly 1 Zulip server in a cluster.
|
||||||
class zulip::analytics {
|
class zulip::analytics {
|
||||||
# This should only be enabled on exactly 1 Zulip server in a cluster.
|
|
||||||
file { "/etc/cron.d/update-analytics-counts":
|
file { "/etc/cron.d/update-analytics-counts":
|
||||||
ensure => file,
|
ensure => file,
|
||||||
owner => "root",
|
owner => "root",
|
||||||
@@ -8,4 +8,12 @@ class zulip::analytics {
|
|||||||
mode => 644,
|
mode => 644,
|
||||||
source => "puppet:///modules/zulip/cron.d/update-analytics-counts",
|
source => "puppet:///modules/zulip/cron.d/update-analytics-counts",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file { "/etc/cron.d/check-analytics-state":
|
||||||
|
ensure => file,
|
||||||
|
owner => "root",
|
||||||
|
group => "root",
|
||||||
|
mode => 644,
|
||||||
|
source => "puppet:///modules/zulip/cron.d/check-analytics-state",
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,14 +62,6 @@ class zulip::app_frontend {
|
|||||||
source => "puppet:///modules/zulip/cron.d/soft-deactivate-users",
|
source => "puppet:///modules/zulip/cron.d/soft-deactivate-users",
|
||||||
}
|
}
|
||||||
|
|
||||||
file { "/etc/cron.d/check-analytics-state":
|
|
||||||
ensure => file,
|
|
||||||
owner => "root",
|
|
||||||
group => "root",
|
|
||||||
mode => 644,
|
|
||||||
source => "puppet:///modules/zulip/cron.d/check-analytics-state",
|
|
||||||
}
|
|
||||||
|
|
||||||
file { "/etc/cron.d/calculate-first-visible-message-id":
|
file { "/etc/cron.d/calculate-first-visible-message-id":
|
||||||
ensure => file,
|
ensure => file,
|
||||||
owner => "root",
|
owner => "root",
|
||||||
|
|||||||
Reference in New Issue
Block a user