Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

puppet: Call systemd reload after adding or changing a teleport service.

Alex Vandiverfd69f5f8e236
diff --git a/puppet/zulip_ops/manifests/teleport/part.pp b/puppet/zulip_ops/manifests/teleport/part.pp
index 2805f461eec..db1502e45bb 100644
--- a/puppet/zulip_ops/manifests/teleport/part.pp
+++ b/puppet/zulip_ops/manifests/teleport/part.pp
@@ -2,6 +2,8 @@
#
define zulip_ops::teleport::part() {
$part = $name
+
+ include zulip::systemd_daemon_reload
file { "/etc/systemd/system/teleport_${part}.service":
require => [
Package[teleport],
@@ -10,12 +12,12 @@ define zulip_ops::teleport::part() {
group => 'root',
mode => '0644',
content => template('zulip_ops/teleport.service.template.erb'),
- notify => Service["teleport_${part}"],
+ notify => [Exec['reload systemd'], Service["teleport_${part}"]],
}
service {"teleport_${part}":
ensure => running,
enable => true,
- require => [Service['supervisor'], Service['teleport']],
+ require => [Service['supervisor'], Service['teleport'], Exec['reload systemd']],
}
}