mirror of https://github.com/zulip/zulip.git
puppet: statuspage-pusher uses zulip.conf for page_id.
This was changed midway through the implementation, from reading it from `zulip-secrets.conf`, and a couple locations still reference the secrets path.
This commit is contained in:
parent
cd565058cd
commit
d02354be6c
|
@ -61,7 +61,7 @@ def main() -> None:
|
||||||
config_file.read("/etc/zulip/zulip.conf")
|
config_file.read("/etc/zulip/zulip.conf")
|
||||||
page_id = config_file.get("statuspage", "page_id")
|
page_id = config_file.get("statuspage", "page_id")
|
||||||
if page_id is None:
|
if page_id is None:
|
||||||
raise RuntimeError("statuspage_page_id secret is required")
|
raise RuntimeError("statuspage.page_id in zulip.conf is required")
|
||||||
|
|
||||||
metrics_file = configparser.RawConfigParser()
|
metrics_file = configparser.RawConfigParser()
|
||||||
metrics_file.read("/etc/zulip/statuspage.conf")
|
metrics_file.read("/etc/zulip/statuspage.conf")
|
||||||
|
|
|
@ -13,7 +13,6 @@ class zulip_ops::statuspage {
|
||||||
source => 'puppet:///modules/zulip_ops/statuspage-pusher',
|
source => 'puppet:///modules/zulip_ops/statuspage-pusher',
|
||||||
}
|
}
|
||||||
|
|
||||||
$page_id = zulipsecret('secrets','statuspage_page_id','')
|
|
||||||
file { "${zulip::common::supervisor_conf_dir}/statuspage-pusher.conf":
|
file { "${zulip::common::supervisor_conf_dir}/statuspage-pusher.conf":
|
||||||
ensure => file,
|
ensure => file,
|
||||||
require => [
|
require => [
|
||||||
|
|
Loading…
Reference in New Issue