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:
Matthew Mosesohn 2015-08-10 19:29:02 +03:00
parent c4b2b9a1b4
commit eab7b68399
4 changed files with 12 additions and 7 deletions

View File

@ -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,

View File

@ -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,

View File

@ -1,6 +1,7 @@
class nailgun::auxiliaryrepos(
$repo_root = '/var/www/nailgun',
$priority = '15',
$fuel_version,
$repo_root = '/var/www/nailgun',
$priority = '15',
){
$centos_dir = "${repo_root}/centos/auxiliary/"
@ -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,

View File

@ -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,7 +28,8 @@ $admin_iface = 'eth0',
}
class { 'nailgun::auxiliaryrepos':
repo_root => $repo_root,
fuel_version => $fuel_version,
repo_root => $repo_root,
}
nailgun::sshkeygen { '/root/.ssh/id_rsa':