diff options
author | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2016-04-28 15:04:40 +0200 |
---|---|---|
committer | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2016-05-02 14:51:51 +0000 |
commit | ce9239befa88c7a68a22df9bc45360faccb1a73c (patch) | |
tree | c1a45c7e211c036081aa1b6fb5afc0bd123b71e6 /patches | |
parent | 4b68d2ad1ed6ffa00c7c93ec65461de27fcc63e6 (diff) |
Fix: cobbler: setup.sh: Re-add extra RPM repos.
Commit 69fd98a broke the cobbler yum config, because instead of
re-adding only mos and nailgun repos with file:/// handler, it
kept the docker-specific repo config from ISO build.
Change-Id: I910fe639116a7ea8cb768c0371af0a84b471d0a4
(cherry picked from commit 81f99dfc384cb841617ed49d2b96ef8667be1982)
Diffstat (limited to 'patches')
-rw-r--r-- | patches/fuel-main/0004-FIXME-cobbler-setup.sh-Keep-extra-RPM-repos.patch | 50 |
1 files changed, 19 insertions, 31 deletions
diff --git a/patches/fuel-main/0004-FIXME-cobbler-setup.sh-Keep-extra-RPM-repos.patch b/patches/fuel-main/0004-FIXME-cobbler-setup.sh-Keep-extra-RPM-repos.patch index c16d05e5..e3dceeda 100644 --- a/patches/fuel-main/0004-FIXME-cobbler-setup.sh-Keep-extra-RPM-repos.patch +++ b/patches/fuel-main/0004-FIXME-cobbler-setup.sh-Keep-extra-RPM-repos.patch @@ -15,48 +15,36 @@ which is not currently possible, as we remove the extra RPM repository entry from yum config at the end of container build. Hacky temporary workaround: -Keep extra RPM yum config after container is set up, only for cobbler. +Re-add extra RPM yum config after container is set up, only for cobbler. TODO: This patch should be dropped once cobbler-grub-aarch64 RPM package gets upstreamed. --- - docker/cobbler/setup.sh | 26 +++++++++++++++----------- - 1 file changed, 15 insertions(+), 11 deletions(-) + docker/cobbler/setup.sh | 14 ++++++++++++++ + 1 file changed, 14 insertions(+) diff --git a/docker/cobbler/setup.sh b/docker/cobbler/setup.sh -index 90627a8..1a0b0d2 100644 +index 90627a8..508eaa4 100644 --- a/docker/cobbler/setup.sh +++ b/docker/cobbler/setup.sh -@@ -68,17 +68,21 @@ puppet apply --debug --verbose --color false --detailed-exitcodes \ - /etc/puppet/modules/nailgun/examples/cobbler-only.pp || [[ $? == 2 ]] +@@ -80,6 +80,20 @@ baseurl=file:/var/www/nailgun/mos-centos/x86_64 + gpgcheck=0 + EOF - --cat << EOF > /etc/yum.repos.d/nailgun.repo --[nailgun] --name=Nailgun Local Repo --baseurl=file:/var/www/nailgun/centos/x86_64 --gpgcheck=0 -- --[mos] --name=MOS Local Repo --baseurl=file:/var/www/nailgun/mos-centos/x86_64 --gpgcheck=0 --EOF -+## FIXME(armband): Keep extra RPM repository in Cobbler container -+# Normally, extra RPM repos are discarded post-build, but we ++## FIXME(armband): Add extra RPM repository in Cobbler container ++# Normally, extra RPM repos are not re-added post-build, but we +# need cobbler-grub-aarch64 during each container start. + -+# cat << EOF > /etc/yum.repos.d/nailgun.repo -+# [nailgun] -+# name=Nailgun Local Repo -+# baseurl=file:/var/www/nailgun/centos/x86_64 -+# gpgcheck=0 ++for repo in ${EXTRA_RPM_REPOS}; do ++ IFS=, read -a repo_args <<< "$repo" ++ cat << EOF >> /etc/yum.repos.d/nailgun.repo + -+# [mos] -+# name=MOS Local Repo -+# baseurl=file:/var/www/nailgun/mos-centos/x86_64 -+# gpgcheck=0 -+# EOF - ++[extra-repo-${repo_args[0]}] ++name=MOS Extra Repo ${repo_args[0]} ++baseurl=file:/var/www/nailgun/extra-repos/${repo_args[0]} ++gpgcheck=0 ++EOF ++done yum clean all + |