Puppet Class: nomad::reload_service
- Defined in:
- manifests/reload_service.pp
Overview
This class is meant to be called from certain configuration changes that support reload.
7 8 9 10 11 12 13 14 15 16 17 |
# File 'manifests/reload_service.pp', line 7
class nomad::reload_service {
# Don't attempt to reload if we're not supposed to be running.
# This can happen during pre-provisioning of a node.
if $nomad::manage_service == true and $nomad::service_ensure == 'running' {
exec { 'reload nomad service':
path => ['/bin', '/usr/bin'],
command => 'systemctl reload nomad',
refreshonly => true,
}
}
}
|