snapshot of https://github.com/zulip/zulip.git @ 48c69911c7dd4e03b20552eb3bd77ad8151c1357 (2026-09-15)
Some checks failed
Code scanning / CodeQL (push) Failing after 15s
Zulip production suite / Ubuntu 22.04 production build (push) Failing after 26s
Zulip production suite / Debian 12 production install with custom db name and user (push) Has been skipped
Zulip production suite / Ubuntu 22.04 production install and PostgreSQL upgrade with pgroonga (push) Has been skipped
Zulip production suite / Ubuntu 24.04 production install (push) Has been skipped
Zulip production suite / Ubuntu 26.04 production install (push) Has been skipped
Zulip production suite / Debian 13 production install (push) Has been skipped
Zulip production suite / 7.0 Version Upgrade (push) Has been skipped
Zulip production suite / 8.0 Version Upgrade (push) Has been skipped
Zulip production suite / 6.0 Version Upgrade (push) Has been skipped
Zulip production suite / 10.0 Version Upgrade (push) Has been skipped
Zulip production suite / 9.0 Version Upgrade (push) Has been skipped
Zulip production suite / 12.0 Version Upgrade (push) Has been skipped
Zulip production suite / 11.0 Version Upgrade (push) Has been skipped
GitHub Actions Security Analysis with zizmor / zizmor (push) Failing after 3s
Zulip CI / Debian 12 (Python 3.11, backend + documentation) (push) Failing after 26s
Zulip CI / Ubuntu 22.04 (Python 3.10, backend + frontend) (push) Failing after 3s
Zulip CI / Ubuntu 24.04 (Python 3.12, backend) (push) Failing after 25s
Zulip CI / Ubuntu 26.04 (Python 3.14, backend) (push) Failing after 25s
Zulip CI / Debian 13 (Python 3.13, backend) (push) Failing after 28s
Zulip production suite / Required jobs (push) Has been cancelled
Zulip CI / Required jobs (push) Has been cancelled
API Documentation Update Check / check-feature-level-updated (push) Has been cancelled
API Documentation Update Check / notify-if-api-docs-changed (push) Has been cancelled
Some checks failed
Code scanning / CodeQL (push) Failing after 15s
Zulip production suite / Ubuntu 22.04 production build (push) Failing after 26s
Zulip production suite / Debian 12 production install with custom db name and user (push) Has been skipped
Zulip production suite / Ubuntu 22.04 production install and PostgreSQL upgrade with pgroonga (push) Has been skipped
Zulip production suite / Ubuntu 24.04 production install (push) Has been skipped
Zulip production suite / Ubuntu 26.04 production install (push) Has been skipped
Zulip production suite / Debian 13 production install (push) Has been skipped
Zulip production suite / 7.0 Version Upgrade (push) Has been skipped
Zulip production suite / 8.0 Version Upgrade (push) Has been skipped
Zulip production suite / 6.0 Version Upgrade (push) Has been skipped
Zulip production suite / 10.0 Version Upgrade (push) Has been skipped
Zulip production suite / 9.0 Version Upgrade (push) Has been skipped
Zulip production suite / 12.0 Version Upgrade (push) Has been skipped
Zulip production suite / 11.0 Version Upgrade (push) Has been skipped
GitHub Actions Security Analysis with zizmor / zizmor (push) Failing after 3s
Zulip CI / Debian 12 (Python 3.11, backend + documentation) (push) Failing after 26s
Zulip CI / Ubuntu 22.04 (Python 3.10, backend + frontend) (push) Failing after 3s
Zulip CI / Ubuntu 24.04 (Python 3.12, backend) (push) Failing after 25s
Zulip CI / Ubuntu 26.04 (Python 3.14, backend) (push) Failing after 25s
Zulip CI / Debian 13 (Python 3.13, backend) (push) Failing after 28s
Zulip production suite / Required jobs (push) Has been cancelled
Zulip CI / Required jobs (push) Has been cancelled
API Documentation Update Check / check-feature-level-updated (push) Has been cancelled
API Documentation Update Check / notify-if-api-docs-changed (push) Has been cancelled
This commit is contained in:
16
puppet/zulip/manifests/hooks/base.pp
Normal file
16
puppet/zulip/manifests/hooks/base.pp
Normal file
@@ -0,0 +1,16 @@
|
||||
# @summary Install sentry-cli binary and pre/post deploy hooks
|
||||
#
|
||||
class zulip::hooks::base {
|
||||
file { [
|
||||
'/etc/zulip/hooks',
|
||||
'/etc/zulip/hooks/common',
|
||||
'/etc/zulip/hooks/pre-deploy.d',
|
||||
'/etc/zulip/hooks/post-deploy.d',
|
||||
]:
|
||||
ensure => directory,
|
||||
owner => 'zulip',
|
||||
group => 'zulip',
|
||||
mode => '0755',
|
||||
tag => ['hooks'],
|
||||
}
|
||||
}
|
||||
14
puppet/zulip/manifests/hooks/file.pp
Normal file
14
puppet/zulip/manifests/hooks/file.pp
Normal file
@@ -0,0 +1,14 @@
|
||||
# @summary Install a static hook file
|
||||
#
|
||||
define zulip::hooks::file() {
|
||||
include zulip::hooks::base
|
||||
|
||||
file { "/etc/zulip/hooks/${title}":
|
||||
ensure => file,
|
||||
mode => '0755',
|
||||
owner => 'zulip',
|
||||
group => 'zulip',
|
||||
source => "puppet:///modules/zulip/hooks/${title}",
|
||||
tag => ['hooks'],
|
||||
}
|
||||
}
|
||||
9
puppet/zulip/manifests/hooks/push_git_ref.pp
Normal file
9
puppet/zulip/manifests/hooks/push_git_ref.pp
Normal file
@@ -0,0 +1,9 @@
|
||||
# @summary Push the merge_base to a git repo after deploy
|
||||
#
|
||||
class zulip::hooks::push_git_ref {
|
||||
include zulip::hooks::base
|
||||
|
||||
zulip::hooks::file { [
|
||||
'post-deploy.d/push_git_ref.hook',
|
||||
]: }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
# @summary Send zuip update announcements after deploy
|
||||
#
|
||||
class zulip::hooks::send_zulip_update_announcements {
|
||||
include zulip::hooks::base
|
||||
|
||||
zulip::hooks::file { [
|
||||
'post-deploy.d/send_zulip_update_announcements.hook',
|
||||
]: }
|
||||
}
|
||||
12
puppet/zulip/manifests/hooks/sentry.pp
Normal file
12
puppet/zulip/manifests/hooks/sentry.pp
Normal file
@@ -0,0 +1,12 @@
|
||||
# @summary Install Sentry pre/post deploy hooks
|
||||
#
|
||||
class zulip::hooks::sentry {
|
||||
include zulip::hooks::base
|
||||
include zulip::sentry_cli
|
||||
|
||||
zulip::hooks::file { [
|
||||
'common/sentry.sh',
|
||||
'pre-deploy.d/sentry.hook',
|
||||
'post-deploy.d/sentry.hook',
|
||||
]: }
|
||||
}
|
||||
7
puppet/zulip/manifests/hooks/zulip_common.pp
Normal file
7
puppet/zulip/manifests/hooks/zulip_common.pp
Normal file
@@ -0,0 +1,7 @@
|
||||
# @summary zulip_notify common file
|
||||
#
|
||||
class zulip::hooks::zulip_common {
|
||||
include zulip::hooks::base
|
||||
|
||||
zulip::hooks::file { 'common/zulip_notify.sh': }
|
||||
}
|
||||
11
puppet/zulip/manifests/hooks/zulip_notify.pp
Normal file
11
puppet/zulip/manifests/hooks/zulip_notify.pp
Normal file
@@ -0,0 +1,11 @@
|
||||
# @summary Install hook that notifies when a deploy starts/stops
|
||||
#
|
||||
class zulip::hooks::zulip_notify {
|
||||
include zulip::hooks::base
|
||||
include zulip::hooks::zulip_common
|
||||
|
||||
zulip::hooks::file { [
|
||||
'pre-deploy.d/zulip_notify.hook',
|
||||
'post-deploy.d/zulip_notify.hook',
|
||||
]: }
|
||||
}
|
||||
Reference in New Issue
Block a user