Puppet Class: st2::repo::yum

Defined in:
manifests/repo/yum.pp

Overview

Yum repo for StackStorm



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'manifests/repo/yum.pp', line 2

class st2::repo::yum {
  if $st2::repo::ensure == 'present' {
    yumrepo { "StackStorm_${st2::repo::repository}":
      baseurl       => $st2::repo::baseurl,
      enabled       => '1',
      gpgcheck      => '0',
      repo_gpgcheck => '1',
      gpgkey        => $st2::repo::gpgkey,
    }

    Yumrepo["StackStorm_${st2::repo::repository}"]
    -> Package<| tag == 'st2::server::packages' |>
  }
  else {
    yumrepo { "StackStorm_${st2::repo::repository}":
      ensure => absent,
    }
  }
}