CentOS 7 推迟 Spacewalk 2.6 的更新

CentOS 7 推迟 Spacewalk 2.6 的更新

我使用 Spacewalk 2.6 来部署和集中配置我的 CentOS 7 系统。

默认状态下,所有客户端都会自动提供更新。

我该如何配置 Spacewalk 不自动分发更新而是在批准后手动分发更新?

答案1

解决方案并不那么困难:

1) 我必须克隆频道及其子频道。我无法在 Web 应用程序中执行此操作,但可以在控制台中执行此操作。在 Spacewalk 机器上应该安装包spacecmd

克隆本身是通过命令完成的:

softwarechannel_clonetree -s centos_7_x86_64_package_channel -p "testing-"

我已经创建了 2 个频道克隆

softwarechannel_clonetree -s centos_7_x86_64_package_channel -p "production-"

2)无法在 Web 界面同步软件包,只能通过 CLI 进行

softwarechannel_sync centos_7_x86_64_package_channel testing-centos_7_x86_64_package_channel -q
softwarechannel_sync centos_7_x86_64_package_channel_centosplus testing-centos_7_x86_64_package_channel_centosplus -q
softwarechannel_sync centos_7_x86_64_package_channel_elrepo testing-centos_7_x86_64_package_channel_elrepo -q
softwarechannel_sync centos_7_x86_64_package_channel_epel testing-centos_7_x86_64_package_channel_epel -q
softwarechannel_sync centos_7_x86_64_package_channel_extras testing-centos_7_x86_64_package_channel_extras -q
softwarechannel_sync centos_7_x86_64_package_channel_spacewalk testing-centos_7_x86_64_package_channel_spacewalk -q
softwarechannel_sync centos_7_x86_64_package_channel_updates testing-centos_7_x86_64_package_channel_updates -q
#sync errata
softwarechannel_errata_sync centos_7_x86_64_package_channel testing-centos_7_x86_64_package_channel
softwarechannel_errata_sync centos_7_x86_64_package_channel_epel testing-centos_7_x86_64_package_channel_epel

生产渠道也可以这样做

相关内容