1
2
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# == Class congress::service
#
# Encapsulates the congress service to a class.
# This allows resources that require congress to
# require this class, which can optionally
# validate that the service can actually accept
# connections.
#
# === Parameters
#
# [*ensure*]
# (optional) The desired state of the congress service
# Defaults to undef
#
# [*service_name*]
# (optional) The name of the congress service
# Defaults to $::congress::params::service_name
#
# [*enable*]
# (optional) Whether to enable the congress service
# Defaults to true
#
# [*hasstatus*]
# (optional) Whether the congress service has status
# Defaults to true
#
# [*hasrestart*]
# (optional) Whether the congress service has restart
# Defaults to true
#
# [*provider*]
# (optional) Provider for congress service
# Defaults to $::congress::params::service_provider
#
class congress::service(
$ensure = undef,
$service_name = $::congress::params::service_name,
$enable = true,
$hasstatus = true,
$hasrestart = true,
$provider = $::congress::params::service_provider,
) {
include ::congress::params
service { 'congress':
ensure => $ensure,
name => $service_name,
enable => $enable,
hasstatus => $hasstatus,
hasrestart => $hasrestart,
provider => $provider,
tag => 'congress-service',
}
}
|