Puppet Class: osg::client::service
- Defined in:
-
manifests/client/service.pp
Summary
Manage OSG client services
Overview
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# File 'manifests/client/service.pp', line 3
class osg::client::service {
if $osg::client::enable_condor_service {
$condor_ensure = 'running'
$condor_enable = true
} else {
$condor_ensure = 'stopped'
$condor_enable = false
}
if $osg::client::enable_condor_ce_service {
$condor_ce_ensure = 'running'
$condor_ce_enable = true
} else {
$condor_ce_ensure = 'stopped'
$condor_ce_enable = false
}
if $osg::client::with_condor {
service { 'condor':
ensure => $condor_ensure,
enable => $condor_enable,
hasstatus => true,
hasrestart => true,
}
service { 'condor-ce':
ensure => $condor_ce_ensure,
enable => $condor_ce_enable,
hasstatus => true,
hasrestart => true,
}
}
}
|