Merge branch 'jenkins-build-6' into 'master'
Auto-merge for build 6 See merge request puppet/puppet_cd!4
This commit is contained in:
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
@@ -17,6 +17,7 @@
|
||||
"pydantic",
|
||||
"pylint",
|
||||
"pytest",
|
||||
"repolist",
|
||||
"requestlogging",
|
||||
"springframework",
|
||||
"startswith",
|
||||
|
||||
@@ -123,11 +123,6 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_classes/puppet_cd_3A_3Ar10k_3A_3Ainstall.html" title="puppet_classes::puppet_cd::r10k::install (puppet_class)">puppet_cd::r10k::install</a></span>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_classes/puppet_cd_3A_3Ar10k_3A_3Awebhook.html" title="puppet_classes::puppet_cd::r10k::webhook (puppet_class)">puppet_cd::r10k::webhook</a></span>
|
||||
|
||||
|
||||
@@ -113,21 +113,14 @@
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::puppet_cd::r10k::install" class="even">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/puppet_cd_3A_3Ar10k_3A_3Ainstall.html" title="puppet_classes::puppet_cd::r10k::install (puppet_class)">puppet_cd::r10k::install</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::puppet_cd::r10k::webhook" class="odd">
|
||||
<li id="object_puppet_classes::puppet_cd::r10k::webhook" class="even">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/puppet_cd_3A_3Ar10k_3A_3Awebhook.html" title="puppet_classes::puppet_cd::r10k::webhook (puppet_class)">puppet_cd::r10k::webhook</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::puppet_cd::server::service" class="even">
|
||||
<li id="object_puppet_classes::puppet_cd::server::service" class="odd">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/puppet_cd_3A_3Aserver_3A_3Aservice.html" title="puppet_classes::puppet_cd::server::service (puppet_class)">puppet_cd::server::service</a></span>
|
||||
</div>
|
||||
|
||||
@@ -77,8 +77,6 @@
|
||||
|
||||
<span class='object_link'><a href="puppet_cd_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::puppet_cd::main::install (puppet_class)">puppet_cd::main::install</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="puppet_cd_3A_3Ar10k_3A_3Ainstall.html" title="puppet_classes::puppet_cd::r10k::install (puppet_class)">puppet_cd::r10k::install</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="puppet_cd_3A_3Ar10k_3A_3Awebhook.html" title="puppet_classes::puppet_cd::r10k::webhook (puppet_class)">puppet_cd::r10k::webhook</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="puppet_cd_3A_3Apuppetdb_3A_3Adirs.html" title="puppet_classes::puppet_cd::puppetdb::dirs (puppet_class)">puppet_cd::puppetdb::dirs</a></span><br/>
|
||||
|
||||
@@ -11,13 +11,21 @@ class puppet_cd::r10k::install (
|
||||
# install required packages
|
||||
package { $pt_r10k_pkg:
|
||||
ensure => $pt_pkg_ensure,
|
||||
before => Package['r10k'],
|
||||
before => Exec['enable_crb'],
|
||||
}
|
||||
|
||||
# enable CRB and install development_tools
|
||||
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'],
|
||||
}
|
||||
|
||||
# install r10k via gem
|
||||
package { 'r10k':
|
||||
ensure => $pt_pkg_ensure,
|
||||
provider => gem,
|
||||
require Exec['enable_crb'],
|
||||
}
|
||||
|
||||
# configure r10k.yaml
|
||||
|
||||
Reference in New Issue
Block a user