Puppet Class: psick::ostest

Defined in:
manifests/ostest.pp

Overview

Sample psick used by VMs in ostest Vagrant environment Used to code testing on different OS

Parameters:

  • notify_enable (Boolean) (defaults to: false)
  • tp_install_hash (Hash) (defaults to: {})
  • manage (Boolean) (defaults to: $psick::manage)
  • noop_manage (Boolean) (defaults to: $psick::noop_manage)
  • noop_value (Boolean) (defaults to: $psick::noop_value)


4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'manifests/ostest.pp', line 4

class psick::ostest (
  Boolean $notify_enable = false,
  Hash $tp_install_hash  = {},
  Boolean $manage        = $psick::manage,
  Boolean $noop_manage   = $psick::noop_manage,
  Boolean $noop_value    = $psick::noop_value,
) {
  if $manage {
    if $noop_manage {
      noop($noop_value)
    }

    if $notify_enable {
      notify { 'ostest role': }
    }

    $tp_install_hash.each |$k,$v| {
      tp::install { $k:
        * => $v,
      }
    }
  }
}