mirror of https://github.com/zulip/zulip.git
puppet: Call systemd reload after adding or changing a teleport service.
This commit is contained in:
parent
1ac6e24eaa
commit
fd69f5f8e2
|
@ -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']],
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue