Puppet Class: st2::repo::apt

Defined in:
manifests/repo/apt.pp

Overview

Apt repo for StackStorm



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

class st2::repo::apt {
  if $st2::repo::ensure == 'present' {
    apt::source { "StackStorm_${st2::repo::repository}":
      location => $st2::repo::location,
      release  => $st2::repo::release,
      repos    => $st2::repo::repos,
      key      => {
        'id'     => $st2::repo::key_id,
        'source' => $st2::repo::key_source,
      },
    }

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