35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# File 'manifests/init.pp', line 35
class kibana (
Variant[Enum['present', 'absent', 'latest'], Pattern[/^\d([.]\d+)*(-[\d\w]+)?$/]] $ensure,
Hash[String[1], Variant[String, Integer, Boolean, Array, Hash]] $config,
Boolean $manage_repo,
Boolean $oss,
Optional[String] $package_source,
Kibana::Status $status,
Optional[Stdlib::Absolutepath] $plugindir = undef,
String[1] $service_name = 'kibana',
String[1] $package_name = 'kibana',
String[1] $kibana_user = 'kibana',
String[1] $kibana_group = 'kibana',
) {
contain kibana::install
contain kibana::config
contain kibana::service
if $manage_repo {
contain elastic_stack::repo
Class['elastic_stack::repo']
-> Class['kibana::install']
}
# Catch absent values, otherwise default to present/installed ordering
case $ensure {
'absent': {
Class['kibana::service']
-> Class['kibana::config']
-> Class['kibana::install']
}
default: {
Class['kibana::install']
-> Class['kibana::config']
~> Class['kibana::service']
}
}
}
|