Show Table of Contents
2.2. Subscription Asset Manager の基本的なインストールと設定
Subscription Asset Manager は、Red Hat がホストしているリポジトリーと
yum で、または ISO イメージを使ってインストールできます。ネットワークまたはインフラストラクチャーを使用するかによって、インストール方法はやや異なります。
2.2.1. yum を使用したインストール
- ホストシステムを登録します。
--auto-attachオプションを使用して、オペレーティングシステムに必要なサブスクリプションを直ちにアタッチします。[root@server ~]# subscription-manager register --auto-attach Username: jsmith@example.com Password:
- 更新したコンテンツリポジトリーをシステム設定に追加するには数分かかります。
rhel-6-server-sam-rpmsリポジトリーを有効にします。Enhanced Updates (EUS) リポジトリーが有効になってる場合は、yum設定 (ここでの例) の一部として、またはyumコマンドを実行してパッケージをインストールする際に、これを無効にしてください。EUS リポジトリーと Subscription Asset Manager リポジトリー間では、Ruby パッケージに競合があります。[root@server ~]# subscription-manager repos --enable rhel-6-server-sam-rpms --disable rhel-server-rhscl-6-eus-rpms Loaded plugins: product-id, refresh-packagekit ========================= repo: rhel-6-server-sam-rpms ========================= [rhel-6-server-sam-rpms] bandwidth = 0 base_persistdir = /var/lib/yum/repos/x86_64/6Server baseurl = https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/subscription-asset-manager/1/os cache = 0 cachedir = /var/cache/yum/x86_64/6Server/rhel-6-server-sam-rpms cost = 1000 enabled = 1 enablegroups = True exclude = failovermethod = priority ...
yum installを使用してkatello-headpin-allパッケージをインストールします。[root@server ~]# yum install -y katello-headpin-all
- パッケージをインストールしたら、Subscription Asset Manager 設定スクリプト
katello-configureを実行します。基本的インストールに必要となるパラメーターは、デプロイメントタイプのsamと、管理者のパスワードです。必須ではありませんが、デプロイメントに初期組織名を指定すると便利です。設定しないと、最初の組織には ACME_Corporation のデフォルト名が使用されます。これにより、デフォルトユーザーおよびデータベース設定を持つ Subscription Asset Manager インスタンスが設定されます。[root@server ~]# katello-configure --deployment=sam --org=Example_Org --user-pass=admin Starting Katello configuration The top-level log file is [/var/log/katello/katello-configure-20130904-210539/main.log]
2.2.1.1. HTTP プロキシを使用した Red Hat SAM の手動設定
HTTP プロキシ経由のネットワークの場合、以下の katello-installer オプションを使用して Satellite Server の設定を正常に完了させます。
katello-installer --katello-proxy-url=http://myproxy.example.com --katello-proxy-port=8080 --katello-proxy-username=proxy_username --katello-proxy-password=proxy_password
説明:
--katello-proxy-url:HTTP プロキシサーバーの URL です。--katello-proxy-port:HTTP プロキシサーバーがリッスンしているポートです。--katello-proxy-username:(オプション) 認証用の HTTP プロキシユーザー名です。HTTP プロキシサーバーでユーザー名が不要な場合は、これを指定する必要はありません。--katello-proxy-password:(オプション) 認証用の HTTP プロキシパスワードです。HTTP プロキシでパスワードが不要な場合は、これを指定する必要はありません。
SAM が HTTP プロキシを経由するよう設定したら、yum または subscription-manager が Red Hat コンテンツ配信ネットワーク (CDN) に接続可能で、SAM がリポジトリーを CDN と同期できることを確認します。以下の手順を実行します。
手順2.1 SAM で Red Hat Subscription Manager が CDN にアクセス可能にする
- ネットワークゲートウェイと HTTP プロキシで、以下のホスト名、ポート、およびプロトコルを開きます。
表2.1 必須のホスト名、ポート、およびプロトコル
ホスト名 ポート プロトコル subscription.rhn.redhat.com 443 https cdn.redhat.com 443 https *.akamaiedge.net 443 https - Satellite Server の以下のファイルで、詳細を記入します。
/etc/rhsm/rhsm.conf:# an http proxy server to use (enter server FQDN) proxy_hostname = http_proxy.example.com # port for http proxy server proxy_port = 3128 # user name for authenticating to an http proxy, if needed proxy_user = # password for basic http proxy auth, if needed proxy_password =

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.