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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
# File 'manifests/init.pp', line 27
class opensearch_dashboards (
##
## version
##
Optional[String] $version = undef,
##
## package
##
Boolean $manage_package = true,
Stdlib::Absolutepath $package_directory = '/opt/opensearch-dashboards',
Enum['present', 'absent'] $package_ensure = 'present',
Enum['archive', 'download', 'repository'] $package_source = 'repository',
Boolean $pin_package = true,
Integer $apt_pin_priority = 1001,
##
## repository
##
Boolean $manage_repository = true,
Enum['present', 'absent'] $repository_ensure = 'present',
Optional[Stdlib::HTTPUrl] $repository_location = undef,
Stdlib::HTTPUrl $repository_gpg_key = 'https://artifacts.opensearch.org/publickeys/opensearch.pgp',
##
## settings
##
Boolean $manage_config = true,
Hash $settings = {},
##
## service
##
Boolean $manage_service = true,
Stdlib::Ensure::Service $service_ensure = 'running',
Boolean $service_enable = true,
Boolean $restart_on_config_change = true,
Boolean $restart_on_package_change = true,
) {
$package_architecture = fact('os.hardware') ? {
'amd64' => 'x64',
'arm64' => 'arm64',
'x64' => 'x64',
'x86_64' => 'x64',
}
$package_provider = fact('os.family') ? {
'Debian' => 'dpkg',
'RedHat' => 'rpm',
}
contain opensearch_dashboards::install
contain opensearch_dashboards::config
contain opensearch_dashboards::service
Class['opensearch_dashboards::install'] -> Class['opensearch_dashboards::config'] -> Class['opensearch_dashboards::service']
if $restart_on_package_change {
Class['opensearch_dashboards::install'] ~> Class['opensearch_dashboards::service']
}
if $restart_on_config_change {
Class['opensearch_dashboards::config'] ~> Class['opensearch_dashboards::service']
}
}
|