Puppet Class: confluent::repository::redhat

Inherits:
confluent::params
Defined in:
manifests/repository/redhat.pp

Overview

Class is used to configure the repository for $::osfamily == 'RedHat'

Parameters:

  • dist_repository_url (Any) (defaults to: $::confluent::params::dist_repository_url)
  • repository_url (Any) (defaults to: $::confluent::params::repository_url)
  • gpgkey_url (Any) (defaults to: $::confluent::params::gpgkey_url)


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
# File 'manifests/repository/redhat.pp', line 4

class confluent::repository::redhat (
  $dist_repository_url = $::confluent::params::dist_repository_url,
  $repository_url      = $::confluent::params::repository_url,
  $gpgkey_url          = $::confluent::params::gpgkey_url
) inherits confluent::params {

  yumrepo { 'Confluent':
    ensure   => 'present',
    baseurl  => $repository_url,
    descr    => 'Confluent repository',
    enabled  => '1',
    gpgcheck => '1',
    gpgkey   => $gpgkey_url,
  }
  yumrepo { 'Confluent.dist':
    ensure   => 'present',
    baseurl  => $dist_repository_url,
    descr    => 'Confluent repository (dist)',
    enabled  => '1',
    gpgcheck => '1',
    gpgkey   => $gpgkey_url,
  }

  #Ensure that repositories are configured before packages are installed.
  Yumrepo<| |> -> Package<| provider == 'yum' |>
}