-
Notifications
You must be signed in to change notification settings - Fork 29
/
install.pp
40 lines (33 loc) · 894 Bytes
/
install.pp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Candlepin installation packages
#
# @api private
class candlepin::install {
assert_private()
$enable_pki_core = $facts['os']['release']['major'] == '8'
if $candlepin::java_package {
ensure_packages([$candlepin::java_package])
Package[$candlepin::java_package] -> Package['candlepin']
}
if $enable_pki_core {
package { 'pki-core':
ensure => installed,
enable_only => true,
provider => 'dnfmodule',
before => Package['candlepin'],
}
}
package { ['candlepin']:
ensure => $candlepin::version,
}
if $facts['os']['selinux']['enabled'] {
package { ['candlepin-selinux']:
ensure => $candlepin::version,
}
if $enable_pki_core {
Package['pki-core'] -> Package['candlepin-selinux']
}
}
if $candlepin::run_init {
ensure_packages(['wget'], { ensure => $candlepin::wget_version, })
}
}