微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

yum – 如何对镜像上游存储库进行版本控制?

我管理着许多跨越多个环境(dev,qa,staging和production)的服务器.为了帮助管理这些内容,我们在应用程序的本地Web服务器上有多个存储库(例如app_1_el6,app_2_el7等).我们还镜像了几个上游repos,它们为我们的自定义rpms(例如EL Repo [1],EPEL [2]等)提供依赖性,以减少包下载时间.

目前,cron作业将本地与上游存储库同步.我们会不时地引入导致问题的更新(例如与我们的某个软件包不兼容).这最终导致了很多痛苦,我想避免.

我想做的是为上游存储库的本地镜像创建某种版本控制.我想确保,例如,如果在上游仓库中引入了一个新的包来破坏我们的自定义转速,那么我有办法回滚或以某种方式隔离该包.最好的方法是什么?

[1] http://elrepo.org/tiki/tiki-index.php

[2] https://fedoraproject.org/wiki/EPEL

Michael Hampton引用了一个名为Katello和 Spacewalk的答案,Satellite是RedHat提供的产品.

Katello是卫星Fedora对RedHat的影响(根据this)

Lifecycle environmentscontent views正是您在Katello寻找的:

Promoting a Content View

Initially a Content View is published to Library as version 1. If there are Content Hosts in other environments that would like to consume this Content View,a version of the content view will need to be promoted to those environments.
For example,given the Content View “New Content View”,version 1 of which has been promoted to the Dev environment. Any Content Hosts in Dev attached to the Content View would remain at version 1 until a version 2 is both published and promoted to the Dev environment.

Content view sample http://www.katello.org/docs/2.3/user_guide/content_views/promote_content_view2.png

Content view promoting progress http://www.katello.org/docs/2.3/user_guide/content_views/promote_content_view3.png

原文地址:https://www.jb51.cc/bash/385713.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐