43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# File 'manifests/init.pp', line 43
class pulsevtm (
$rest_user = undef,
$rest_pass = undef,
$purge_state_dir = undef,
$rest_ip = '127.0.0.1',
$rest_port = '9070',
$purge = false,
$failfast = true,
$debug = 0,
) {
if ( $rest_user == undef ) {
fail('You must provide a $rest_user')
}
if ( $rest_pass == undef) {
fail('You must provide a $rest_pass')
}
include pulsevtm::purge
if ( $purge ) {
if ( $purge_state_dir == undef ) {
fail('You must set a $purge_state_dir if using $purge = true')
}
file { $purge_state_dir:
ensure => directory,
}
}
}
|