Puppet Class: inspec::params

Inherited by:
inspec
Defined in:
manifests/params.pp

Overview

Private Params Class



2
3
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
30
# File 'manifests/params.pp', line 2

class inspec::params {


  # Global params
  $package_name = 'inspec'
  $package_version = '1.7.1-1'
  $install_method = 'url'
  $download_url_base = 'https://packages.chef.io/stable/'
  $download_url = undef
  $download_path = '/tmp/'

  case $::architecture {
    'x86_64', 'amd64': {
      $os_arch = 'x86_64'
    }
    default: { fail('Unsupported OS Arch - inspec package only works on x86_64 hardware') }
  }

  case $::osfamily {
    'RedHat': {
      $os_family = 'el'
      $os_ver = $::operatingsystemmajrelease
      $package_suffix = 'rpm'
    }
    default: { fail('Unsupported OS') }
  }


}