3
0
This commit is contained in:
Arne Teuke
2025-10-21 22:00:11 +02:00
parent 63e87af95b
commit 6ac1224fdb
2 changed files with 10 additions and 10 deletions

View File

@@ -94,7 +94,7 @@ class puppet_cd::params (
String $pt_agent_pkg = 'puppet-agent',
String $pt_server_pkg = 'puppetserver',
Array $pt_db_pkg = ['puppetdb','puppetdb-termini'],
Array $pt_r10k_pkg = ['ruby','ruby-devel'],
Array $pt_r10k_pkg = ['ruby','ruby-devel','gcc','make','redhat-rpm-config','rpm-build'],
# user settings
## puppet user

View File

@@ -8,24 +8,24 @@ class puppet_cd::r10k::install (
) inherits puppet_cd::params {
# if ($pt_pm_fqdn == $fqdn) and ($pt_use_r10k == true) {
if $pt_use_r10k == true {
# install required packages
package { $pt_r10k_pkg:
ensure => $pt_pkg_ensure,
before => Exec['enable_crb'],
}
# enable CRB and install development_tools
# enable CRB
exec { 'enable_crb':
command => 'dnf config-manager --set-enabled crb',
unless => 'dnf repolist --disabled | grep -qE "crb|CodeReady"',
path => ['/usr/bin', '/bin', '/usr/sbin', '/sbin'],
path => ['/usr/bin', '/bin'],
}
# install required packages
package { $pt_r10k_pkg:
ensure => $pt_pkg_ensure,
before => Package['r10k'],
require => Exec['enable_crb'],
}
# install r10k via gem
package { 'r10k':
ensure => $pt_pkg_ensure,
provider => gem,
require Exec['enable_crb'],
}
# configure r10k.yaml