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

This commit is contained in:
Alex Vandiver 2024-02-02 00:57:28 -05:00 committed by Tim Abbott
parent 1ac6e24eaa
commit fd69f5f8e2
1 changed files with 4 additions and 2 deletions

View File

@ -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']],
}
}