Revision 015cc726
Added by Michael Moll about 9 years ago
manifests/plugin/tasks.pp | ||
---|---|---|
class foreman::plugin::tasks {
|
||
case $::osfamily {
|
||
'RedHat': {
|
||
$service = 'foreman-tasks'
|
||
case $::operatingsystem {
|
||
'fedora': {
|
||
$package = 'rubygem-foreman-tasks'
|
||
... | ... | |
}
|
||
}
|
||
}
|
||
'Debian': {
|
||
$package = 'ruby-foreman-tasks'
|
||
$service = 'ruby-foreman-tasks'
|
||
}
|
||
default: {
|
||
fail("${::hostname}: foreman-tasks does not support osfamily ${::osfamily}")
|
||
}
|
||
... | ... | |
service { 'foreman-tasks':
|
||
ensure => running,
|
||
enable => true,
|
||
name => $service,
|
||
}
|
||
}
|
Also available in: Unified diff
support foreman-tasks on Debian