Puppet Class: opensearch::repository::redhat

Defined in:
manifests/repository/redhat.pp

Summary

Install the RedHat yum repository for opensearch.

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::repository::redhat {
  assert_private()

  $baseurl = $opensearch::version =~ Undef ? {
    true  => pick($opensearch::repository_location, 'https://artifacts.opensearch.org/releases/bundle/opensearch/2.x/yum'),
    false => pick($opensearch::repository_location, "https://artifacts.opensearch.org/releases/bundle/opensearch/${opensearch::version[0]}.x/yum"),
  }

  yumrepo { 'opensearch':
    ensure        => $opensearch::repository_ensure,
    baseurl       => $baseurl,
    repo_gpgcheck => '1',
    gpgcheck      => '1',
    gpgkey        => $opensearch::repository_gpg_key,
  }
}