Create auxiliary repo with fuel version
Fuel 7.0 auxiliary repo should be created as /etc/yum.repos.d/7.0_auxiliary This helps with upgrade/rollback process for Fuel Master. The configuration for auxiliary repository on deployed Fuel nodes is unchanged. Change-Id: Iec2645ddbee6b1b6b9e5c2816707b275542ef51b Partial-Bug: #1480282
This commit is contained in:
parent
c4b2b9a1b4
commit
eab7b68399
@ -30,6 +30,7 @@ class { 'osnailyfacter::atop': }
|
||||
|
||||
class { 'nailgun::host':
|
||||
production => $production,
|
||||
fuel_version => $::fuel_version['VERSION']['release'],
|
||||
cobbler_host => $::fuel_settings['ADMIN_NETWORK']['ipaddress'],
|
||||
nailgun_group => $nailgun_group,
|
||||
nailgun_user => $nailgun_user,
|
||||
|
@ -25,6 +25,7 @@ class { 'nailgun::packages': }
|
||||
|
||||
class { 'nailgun::host':
|
||||
production => $production,
|
||||
fuel_version => $::fuel_version['VERSION']['release'],
|
||||
cobbler_host => $::fuel_settings['ADMIN_NETWORK']['ipaddress'],
|
||||
nailgun_group => $nailgun_group,
|
||||
nailgun_user => $nailgun_user,
|
||||
|
@ -1,4 +1,5 @@
|
||||
class nailgun::auxiliaryrepos(
|
||||
$fuel_version,
|
||||
$repo_root = '/var/www/nailgun',
|
||||
$priority = '15',
|
||||
){
|
||||
@ -16,11 +17,11 @@ class nailgun::auxiliaryrepos(
|
||||
File[$centos_dir] ->
|
||||
Package['createrepo'] ->
|
||||
Exec["createrepo ${centos_dir}"] ->
|
||||
Yumrepo['auxiliary']
|
||||
Yumrepo["${fuel_version}_auxiliary"]
|
||||
|
||||
yumrepo { 'auxiliary':
|
||||
name => 'auxiliary',
|
||||
descr => 'auxillary',
|
||||
yumrepo { "${fuel_version}_auxiliary":
|
||||
name => "${fuel_version}_auxiliary",
|
||||
descr => "${fuel_version}_auxiliary",
|
||||
baseurl => "file://${centos_dir}",
|
||||
gpgcheck => '0',
|
||||
priority => $priority,
|
||||
|
@ -1,5 +1,6 @@
|
||||
class nailgun::host(
|
||||
$production,
|
||||
$fuel_version,
|
||||
$cobbler_host = '127.0.0.1',
|
||||
$dns_search = 'domain.tld',
|
||||
$dns_domain = 'domain.tld',
|
||||
@ -27,6 +28,7 @@ $admin_iface = 'eth0',
|
||||
}
|
||||
|
||||
class { 'nailgun::auxiliaryrepos':
|
||||
fuel_version => $fuel_version,
|
||||
repo_root => $repo_root,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user