Puppet Class: randrust::service
- Defined in:
-
manifests/service.pp
Summary
This class handles the randrust service.
Overview
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'manifests/service.pp', line 7
class randrust::service (
) {
if ! ($randrust::service_ensure in [ 'running', 'stopped' ]) {
fail('service_ensure parameter must be running or stopped')
}
if $randrust::service_manage == true {
service { 'randrust':
ensure => $randrust::service_ensure,
enable => $randrust::service_enable,
name => $randrust::service_name,
provider => $randrust::service_provider,
hasstatus => true,
hasrestart => true,
}
}
}
|