Added automatic restart of Icinga2 after configuration changes
This commit is contained in:
parent
912a286278
commit
432920a5c3
1 changed files with 6 additions and 0 deletions
|
@ -22,6 +22,12 @@ class rhizo_base::icinga {
|
|||
source => 'puppet:///modules/rhizo_base/etc/icinga2/conf.d',
|
||||
recurse => remote,
|
||||
require => Package['icinga2'],
|
||||
notify => Exec['restart_icinga2'],
|
||||
}
|
||||
|
||||
exec { 'restart_icinga2':
|
||||
command => '/usr/sbin/service icinga2 restart',
|
||||
refreshonly => true,
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue