14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# File 'manifests/rake.pp', line 14
define foreman::rake (
Hash[String, String] $environment = {},
Optional[Integer[0]] $timeout = undef,
String[1] $user = $foreman::user,
Stdlib::Absolutepath $app_root = $foreman::app_root,
Variant[Undef, String[1], Array[String[1]]] $unless = undef,
) {
exec { "foreman-rake-${title}":
command => "/usr/sbin/foreman-rake ${title}",
user => $user,
environment => sort(join_keys_to_values({ 'HOME' => $app_root } + $environment, '=')),
logoutput => true,
refreshonly => $unless =~ Undef,
timeout => $timeout,
unless => $unless,
}
}
|