puppet-foreman/manifests/plugin/tasks.pp @ 7871052e
7871052e | Marek Hulan | class foreman::plugin::tasks {
|
|
case $::osfamily {
|
|||
RedHat: {
|
|||
case $::operatingsystem {
|
|||
fedora: {
|
|||
$package = 'rubygem-foreman-tasks'
|
|||
}
|
|||
default: {
|
|||
$package = 'ruby193-rubygem-foreman-tasks'
|
|||
}
|
|||
}
|
|||
}
|
|||
default: {
|
|||
fail("${::hostname}: foreman-tasks does not support osfamily ${::osfamily}")
|
|||
}
|
|||
}
|
|||
foreman::plugin { 'tasks':
|
|||
package => $package,
|
|||
} ~>
|
|||
service { 'foreman-tasks':
|
|||
ensure => running,
|
|||
enable => true
|
|||
}
|
|||
}
|