-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathsetup_acceptance_node.pp
46 lines (40 loc) · 1.23 KB
/
setup_acceptance_node.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
41
42
43
44
45
46
$major = $facts['os']['release']['major']
package { 'glibc-langpack-en':
ensure => installed,
}
class { 'candlepin::repo':
version => pick(fact('candlepin_version'), 'nightly'),
baseurl => fact('candlepin_baseurl'),
}
if $facts['os']['selinux']['enabled'] {
# Workaround for https://github.com/theforeman/puppet-candlepin/issues/188
package { 'pki-core':
# enable_only is required as workaround for https://tickets.puppetlabs.com/browse/PUP-11024
enable_only => true,
ensure => present,
provider => 'dnfmodule',
before => Package['candlepin-selinux'],
}
}
# Needed as a workaround for idempotency
if $facts['os']['selinux']['enabled'] {
package { 'candlepin-selinux':
ensure => installed,
require => Yumrepo['candlepin'],
}
# Workaround for https://github.com/theforeman/puppet-candlepin/issues/185#issuecomment-822284497
$tomcat_conf_files = [
'/etc/tomcat/login.config',
'/etc/tomcat/cert-users.properties',
'/etc/tomcat/cert-roles.properties',
'/etc/tomcat/conf.d/jaas.conf'
]
file { $tomcat_conf_files:
ensure => file,
require => Package['candlepin-selinux'],
}
}
# Used to test which TLS versions are enabled
package { 'nmap':
ensure => installed,
}