6.18. 创建同步计划

同步计划在调度的日期和时间检查并更新内容。在 Satellite 中,您可以创建一个同步计划,并为计划分配产品。

要使用 CLI 而不是 Satellite Web UI,请参阅 CLI 过程

流程

  1. 在 Satellite Web UI 中,导航到 Content > Sync Plans,再点 New Sync Plan
  2. Name 字段中输入计划的名称。
  3. 可选:在 Description 字段中输入计划的描述。
  4. Interval 列表中,选择您要运行计划的时间间隔。
  5. Start DateStart Time 列表中,选择何时开始运行同步计划。
  6. 点击 Save

CLI 过程

  1. 运行以下命令来创建同步计划:

    # hammer sync-plan create \
    --name "Red Hat Products 2" \
    --description "Example Plan for Red Hat Products" \
    --interval daily \
    --sync-date "2016-02-01 01:00:00" \
    --enabled true \
    --organization "My_Organization"
  2. 查看某个机构的可用同步计划,以验证是否已创建了同步计划:

    # hammer sync-plan list --organization "Default Organization"