Puppet Class: varnish::service
- Defined in:
- manifests/service.pp
Overview
Class varnish::service
This class is meant to be called from varnish It ensure the service is running
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'manifests/service.pp', line 6
class varnish::service {
# This exec resource receives notifications from varnish::vcl resources
exec { 'vcl_reload':
command => $::varnish::vcl_reload,
path => $::varnish::vcl_reload_path,
refreshonly => true,
require => Service[$::varnish::service_name],
}
service { $::varnish::service_name:
ensure => 'running',
enable => true,
}
}
|