52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# File 'manifests/init.pp', line 52
class stunnel (
Optional[String] $bin_name = undef,
Optional[Stdlib::Absolutepath] $bin_path = undef,
Optional[Stdlib::Absolutepath] $cert_dir = undef,
Optional[Stdlib::Absolutepath] $config_dir = undef,
Optional[Stdlib::Absolutepath] $log_dir = undef,
Optional[Array] $packages = undef,
Optional[Enum[
'present',
'latest'
]] $packages_ensure = undef,
Optional[String] $packages_provider = undef,
Optional[Stdlib::Absolutepath] $pid_dir = undef,
Optional[String] $user = undef,
Optional[String] $group = undef,
) {
package { $packages:
ensure => $packages_ensure,
provider => $packages_provider,
}
$stunnel_dirs = [
$cert_dir,
$config_dir,
$log_dir,
]
file { $stunnel_dirs:
ensure => directory,
owner => $user,
group => $group,
mode => '0775',
}
}
|