Red Hat Training

A Red Hat training course is available for Red Hat Satellite

12.4. 新增生命週期環境至 Red Hat Satellite Capsule Server

如果新建立的 Red Hat Satellite Capsule Server 啟用了「內容節點」(Content Node)功能,那麼 Satellite Capsule Server 就需要將一組環境加入 Satellite Capsule Server。將環境加入 Red Hat Satellite Capsule Server 能讓 Satellite Capsule Server 從 Satellite Server 同步內容,並為主機系統提供內容。

重要

Satellite Capsule Server 是透過 Satellite Server 的文字介面來配置。請在 Satellite Server 上執行所有 hammer 指令。
要將環境加入 Satellite Capsule Server:
  1. root 身份登入 Satellite Server 的文字介面。
  2. 從清單中選擇 Red Hat Satellite Capsule Server,並記下其 id
    # hammer capsule list
    
    您可以使用以下指令,驗證 Satellite Capsule Server 的詳細資料:
    # hammer capsule info --id capsule_id_number
    
  3. 檢查 Red Hat Capsule Server 的生命週期環境,記下 environment id
    # hammer capsule content available-lifecycle-environments --id capsule_id_number
    
    其中:
    • available-lifecycle-environments 是 Satellite Capsule Server 的可用生命週期環境,但尚未連接至 Satellite Capsule Server。
  4. 將生命週期環境加入 Satellite Capsule Server:
    # hammer capsule content add-lifecycle-environment --id capsule_id_number --lifecycle-environment-id environment_id_number
    
    其中:
    • --id 是 Satellite Capsule Server 的 ID 編號。
    • --lifecycle-environment-id 是生命週期環境的 ID 編號。
    重複這項步驟,直到每個生命週期環境都新增至 Capsule Server 為止。
  5. 將內容從 Satellite Server 的環境同步至 Satellite Capsule Server 上:
    # hammer capsule content synchronize --id capsule_id_number
    
    Satellite Capsule Server 有多個生命週期環境、且只需要同步一組生命週期環境時,可以指定環境的 ID 編號並針對該環境進行作業:
    # hammer capsule content synchronize --id 1 --environment-id 1
    
結果:

所選的環境會從指定的 Satellite Capsule Server 上的軟體庫取得套件。

〈22921%2C+User+Guide-6.008-10-2014+13%3A34%3A52Red+Hat+Satellite+6Docs+User+Guide回報錯誤