Puppet Class: opensearch_dashboards::repository::redhat
- Defined in:
-
manifests/repository/redhat.pp
Summary
Install the RedHat yum repository for OpenSearch Dashboards.
Overview
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# File 'manifests/repository/redhat.pp', line 6
class opensearch_dashboards::repository::redhat {
assert_private()
$baseurl = $opensearch_dashboards::version =~ Undef ? {
true => pick($opensearch_dashboards::repository_location, 'https://artifacts.opensearch.org/releases/bundle/opensearch-dashboards/2.x/yum'),
false => pick($opensearch_dashboards::repository_location, "https://artifacts.opensearch.org/releases/bundle/opensearch-dashboards/${opensearch_dashboards::version[0]}.x/yum"),
}
yumrepo { 'opensearch-dashboards':
ensure => $opensearch_dashboards::repository_ensure,
baseurl => $baseurl,
repo_gpgcheck => '1',
gpgcheck => '1',
gpgkey => $opensearch_dashboards::repository_gpg_key,
}
}
|