Project

General

Profile

Download (677 Bytes) Statistics
| Branch: | Tag: | Revision:
class foreman::install {
if ! $foreman::custom_repo {
foreman::install::repos { 'foreman':
use_testing => $foreman::use_testing,
package_source => $foreman::package_source,
}
}

$repo = $foreman::custom_repo ? {
true => [],
default => Foreman::Install::Repos['foreman'],
}

package {'foreman-sqlite3':
name => $osfamily ? {
RedHat => "foreman-sqlite",
Debian => "foreman-sqlite3"
},
ensure => latest,
require => $repo,
notify => [Class['foreman::service'],Package['foreman']],
}

package {'foreman':
ensure => present,
require => $repo,
notify => Class['foreman::service'],
}

}
(3-3/6)