Puppet Class: threatstack::apt

Inherits:
::threatstack::params
Defined in:
manifests/apt.pp

Overview

Parameters:

  • location (Any) (defaults to: $threatstack::params::repo_url)
  • key (Any) (defaults to: $threatstack::params::repo_gpg_id)
  • release (Any) (defaults to: $threatstack::params::release)
  • repos (Any) (defaults to: $threatstack::params::repos)


21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'manifests/apt.pp', line 21

class threatstack::apt (
  $location = $threatstack::params::repo_url,
  $key      = $threatstack::params::repo_gpg_id,
  $release  = $threatstack::params::release,
  $repos    = $threatstack::params::repos,
  ) inherits ::threatstack::params {

  if !defined(Class['apt']) {
    class { 'apt': }
  }

  apt::source { 'threatstack':
    location => $location,
    release  => $release,
    repos    => $repos,
    key      => {
      'id'     => $key,
    }
  }
}