1.3.3. Satellite 间同步使用案例
Satellite 间同步(ISS)可有不同的使用方法,具体要看您机构的要求。本小节提供了如何选择使用 ISS、设定方法以及操作这些案例的示例。
例 1.4. 临时 Satellite
在这个示例中,将一个 Satellite 作为临时 Satellite 使用,用它来准备内容并执行软件包质量验证以保证其可在产品中使用。当确定内容可用于产品后,该产品 satellite 可与临时 satellite 的内容同步。
- 运行
satellite-sync
命令与「rhn_parent」(通常为红帽网络托管)中的数据同步。satellite-sync -c your-channel
satellite-sync -c your-channel
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 运行以下命令与临时服务器中的数据同步:
satellite-sync --iss-parent=staging-satellite.example.com -c custom-channel
satellite-sync --iss-parent=staging-satellite.example.com -c custom-channel
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
例 1.5. 同步的辅服务器
在这个示例中,主 Satellite 直接将数据提供给辅 satellite,并定期同步其更改的内容。
例 1.6. 辅自定义内容
在这个示例中,主 satellite 是开发频道,在此可将内容发送到所有产品辅 satellite 中。有些辅 satellite 有附加的内容,这些内容不会出现在主 satellite 频道中。这些软件包是保留的,但所有主 satellite 中的更改都会被同步到辅 satellite 中。
例 1.7. 双向同步
在这个环境中,两个 Red Hat Satellite 服务器互为主、辅,并可互相同步其内容。运行
satellite-sync
命令的 Satellite 服务器将从另一台 Satellite 服务器中提取内容,并根据所运行 satellite-sync
命令选项同步数据。如果未添加任何选项,则同步将尝试更新之前同步的所有内容。
有关配置主 Satellite 的详情请参考 第 1.3.1.1 节 “手动配置”。将两台服务器都配置为主服务器则会形成双向同步。