add r10k - temp change - https://gitlab.confdroid.com/internal/confdroid_management/-/issues/286
This commit is contained in:
@@ -94,7 +94,7 @@ class puppet_cd::params (
|
|||||||
String $pt_agent_pkg = 'puppet-agent',
|
String $pt_agent_pkg = 'puppet-agent',
|
||||||
String $pt_server_pkg = 'puppetserver',
|
String $pt_server_pkg = 'puppetserver',
|
||||||
Array $pt_db_pkg = ['puppetdb','puppetdb-termini'],
|
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
|
# user settings
|
||||||
## puppet user
|
## puppet user
|
||||||
|
|||||||
@@ -8,24 +8,24 @@ class puppet_cd::r10k::install (
|
|||||||
) inherits puppet_cd::params {
|
) inherits puppet_cd::params {
|
||||||
# if ($pt_pm_fqdn == $fqdn) and ($pt_use_r10k == true) {
|
# if ($pt_pm_fqdn == $fqdn) and ($pt_use_r10k == true) {
|
||||||
if $pt_use_r10k == true {
|
if $pt_use_r10k == true {
|
||||||
# install required packages
|
# enable CRB
|
||||||
package { $pt_r10k_pkg:
|
|
||||||
ensure => $pt_pkg_ensure,
|
|
||||||
before => Exec['enable_crb'],
|
|
||||||
}
|
|
||||||
|
|
||||||
# enable CRB and install development_tools
|
|
||||||
exec { 'enable_crb':
|
exec { 'enable_crb':
|
||||||
command => 'dnf config-manager --set-enabled crb',
|
command => 'dnf config-manager --set-enabled crb',
|
||||||
unless => 'dnf repolist --disabled | grep -qE "crb|CodeReady"',
|
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
|
# install r10k via gem
|
||||||
package { 'r10k':
|
package { 'r10k':
|
||||||
ensure => $pt_pkg_ensure,
|
ensure => $pt_pkg_ensure,
|
||||||
provider => gem,
|
provider => gem,
|
||||||
require Exec['enable_crb'],
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# configure r10k.yaml
|
# configure r10k.yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user