3.2. シナリオ 2: 管理データベースを使用する Satellite のインストール
- Satellite Server 用のホスト
- 管理データベース用のホスト
3.2.1. インストールメディアのダウンロード
手順3.7 インストールメディアのダウンロード
- カスタマーポータルにログインします。
- Downloads (ダウンロード) をクリックします。
- Red Hat Satellite をクリックします。
- バージョン ドロップダウンリストから 5.8 for RHEL 6 を選択します。
- アーキテクチャー の一覧で x86_64 または s390x を選択します。
- Red Hat Satellite 5.8 Binary DVD をダウンロードします。
- 使用するインストールソースに応じて、DVD ISO イメージを Satellite ホストにコピーするか、DVD メディアに書き込みます。
- ISO イメージをマウントし、そこからインストールプログラムを実行する場合は、ISO イメージを Satellite ホストと管理 DB ホストの両方にコピーします。
# scp satellite.iso root@satellite_hostname:/root # scp satellite.iso root@manageddb_hostname:/root
- DVD をマウントし、そこからインストールプログラムを実行する場合は、DVD ISO イメージを DVD メディアに書き込みます。
3.2.2. インストールメディアのマウント
手順3.8 ディスクからのマウント
rootでマシンにログインします。- インストールファイルを含む Red Hat Satellite Server の CD または DVD を挿入します。
- Red Hat Enterprise Linux が自動でディスクをマウントする場合があります。この場合、ディスクは
/media/cdrom/ディレクトリーにマウントされます。自動マウントが行われない場合は、次のコマンドを使って手作業で/media/cdrom/ディレクトリーにマウントします。# mkdir /media/cdrom # mount /dev/cdrom /media/cdrom
手順3.9 ISO イメージからのマウント
rootでホストにログインします。- ユーザーのファイルシステム上の場所に ISO イメージをマウントします。
# mkdir /media/cdrom # mount -o loop iso_filename /media/cdrom
/media/cdrom/ にマウントされます。Red Hat Satellite インストールプログラムにアクセスする場合は、この場所を使用します。
3.2.3. マニフェストの生成
注記
手順3.10 新しい Satellite 5.8 マニフェストの生成
- カスタマーポータルにログインし、Subscriptions (サブスクリプション)をクリックします。
- Satellite 組織 をクリックします。
- Satellite をクリックします。
- Satellite の作成 をクリックします。
- Satellite マニフェストの名前を入力し、Satellite バージョン ドロップダウンリストから Satellite 5.8 を選択して、作成 をクリックします。
- Attach a subscription (サブスクリプションの割り当て) をクリックします。
- 各製品をマニフェストに割り当てるには、チェックボックスを選択し、必要な数を選択または指定し、ATTACH SELECTED (割り当てを選択) をクリックします。サブスクリプションの割り当てには数分かかることがあります。
- Attach a subscription (サブスクリプションの割り当て) ウィンドウが表示されたら、 をクリックします。
- をクリックし、マニフェストファイルをローカルに保存します。
- カスタマーポータルからログアウトします。
- マニフェストファイルがダウンロードされたホストのシェルプロンプトにアクセスします。Satellite ホストにマニフェストファイルをコピーします。以下の例では、ファイルは
/rootディレクトリーにコピーされます。# scp manifest_file.zip root@satellite.example.com:/root
3.2.4. HTTP プロキシーの内側でのインストール: 事前設定 (オプション)
注記
- 本セクションは、HTTP プロキシーの内側にあるネットワークにのみ適用されます。
- Satellite は HTTP アクセス認証方法としての NTLM をサポートしません。Basic アクセス認証および Digest アクセス認証方法がサポートされます。
/etc/rhsm/rhsm.conf を編集し、HTTP プロキシーの詳細と認証情報を追加して以下の行を編集します。
proxy_hostname = proxy_hostname proxy_port = proxy_port proxy_user = proxy_user proxy_password = proxy_password
3.2.5. Red Hat コンテンツ配信ネットワークでのホストの登録
注記
# subscription-manager register
The system has been registered with ID: 541084ff2-44cab-4eb1-9fa1-7683431bcf9a
3.2.6. Satellite リポジトリーのアクティベート
注記
手順3.11 Satellite リポジトリーのアクティベート
- 利用可能なすべてのサブスクリプションを一覧表示し、Red Hat Satellite 5 サブスクリプションを特定します。利用可能なサブスクリプションの一覧は長くなることがありますが、
lessやmoreなどのページャーユーティリティーに出力をパイプすると、出力を一度に 1 画面ずつ表示できます。# subscription-manager list --all --available | less
Pool IDは、サブスクリプションの割り当てに必要であるため、メモしてください。 - サブスクリプションをホストに割り当てます。
# subscription-manager attach --pool=pool_id
出力は以下のようになります。Successfully attached a subscription for: Red Hat Satellite
- すべてのリポジトリーを無効にします。
# subscription-manager repos --disable "*"
- Red Hat Enterprise Linux 6 リポジトリーを有効にします。Red Hat Satellite 5.8 リポジトリーはインストールプログラムで自動的に有効にされます。AMD64 と Intel 64 の場合
# subscription-manager repos --enable=rhel-6-server-rpms
IBM System z の場合# subscription-manager repos --enable=rhel-6-for-system-z-rpms
3.2.7. 管理データベースのインストール
注記
手順3.12 管理データベースのインストール
rootユーザーで 管理データベース を使用するホストにログインします。- Satellite インストールプログラムを含むディレクトリーに移動します。
# cd /media/cdrom
--managed-dbオプションを使用してインストールプログラムを実行します。# ./install.pl --managed-db
- インストールプログラムにより、以下の情報が求められます。
- データベース名
- データベースのユーザー
- データベースのパスワード
- リッスンするローカルアドレスのコンマ区切りのリスト。すべてのアドレスを空白のままにしておきます。
- アドレス/ネットマスク形式でのリモートアドレスのコンマ区切りリスト。管理データベース はこれらのアドレスからの接続を許可します。
Database name: mydb Database user: mydbuser Database password: mydbpassword Local addresses to listen on (comma-separated, RETURN for all): 127.0.0.1 Remote addresses to allow connection from (address/netmask format, comma-separated): 192.168.1.10/32 Initializing database: [ OK ] Starting postgresql service: [ OK ]
3.2.8. Satellite のインストール
root ユーザーで実行してください。
警告
手順3.13 インストールスクリプトの実行
/media/cdrom/ディレクトリーからインストールスクリプトを実行します。# ./install.pl --external-postgresql
インストールプログラムはまず 2章要件 に記載された要件が満たされていることを確認します。* Starting the Red Hat Satellite installer. * Performing pre-install checks. * Pre-install checks complete. Beginning installation.
- このスクリプトにより、ホストが Red Hat サブスクリプションマネージャーに登録され (まだ登録されていない場合)、必要なパッケージすべてがインストールおよび更新され、管理データベースホスト上のデータベースにデータが設定力されます。
* RHSM Registration. ** Registration: System is already registered with RHSM. Not re-registering. * RHSM Subscriptions. ** Subscriptions: Subscription providing 'Red Hat Satellite' already attached. ** Subscriptions: Subscription providing 'Red Hat Enterprise Linux Server' already attached. ** Subscriptions: Disabling all RHSM repositories (rhel-6-server-rpms). ** Subscriptions: All repositories disabled. ** Subscriptions: Enabling RHEL repository. ** Subscriptions: RHEL repository enabled. * Checking for uninstalled prerequisites. ** Checking if yum is available ... There are some packages from Red Hat Enterprise Linux that are not part of the @base group that Satellite will require to be installed on this system. The installer will try resolve the dependencies automatically. However, you may want to install these prerequisites manually. Do you want the installer to resolve dependencies [y/N]? y * Installing Satellite packages. Warning: yum did not install the following packages: libXt * Now running spacewalk-setup. * Setting up SELinux.. ** Database: Setting up database connection for PostgreSQL backend. Hostname (leave empty for local)? satellite-db.example.com Port [5432]? Database? mydb Username? mydbuser Password? ************ ** Database: Populating database. *** Progress: ####################################
3.2.9. Satellite の設定
/root/.gnupg/ ディレクトリーの設定も行います。
* Configuring tomcat. * Setting up users and groups. ** GPG: Initializing GPG and importing key.
You must enter an email address. Admin Email Address? admin@example.com * Performing initial configuration.
* Activating Red Hat Satellite. Where is your satellite manifest file? /path/manifest_file.zip ** Loading Red Hat Satellite Manifest. ** Verifying manifest locally. ** Activating Red Hat Satellite.
y と回答し、CA 証明書の質問に対して回答します。
- CA cert
- 証明書のパスワードを入力します。
- Organization
- 組織名を入力します。
- Organization Unit
- 組織内の部署名を入力します。
- Email Address
- この証明書に関連付けるメールアドレスを入力します (例: 前述のステップで入力した Admin Email Address など)。
- City
- 都市名を入力します。
- State
- 州名を入力します。
- Country
- 国名を入力します。国コードは必ず 2 文字にします。それ以外だと、証明書の生成に失敗します。国コード一覧を表示するには
?を入力します。
* Configuring apache SSL virtual host. Should setup configure apache's default ssl server for you (saves original ssl.conf) [Y]? ** /etc/httpd/conf.d/ssl.conf has been backed up to ssl.conf-swsave * Configuring jabberd. * Creating SSL certificates. CA certificate password? Re-enter CA certificate password? Organization? Red Hat Organization Unit [satellite.example.com]? Sales Email Address [admin@example.com]? admin@example.com City? Raleigh State? NC Country code (Examples: "US", "JP", "IN", or type "?" to see a list)? US ** SSL: Generating CA certificate. ** SSL: Deploying CA certificate. ** SSL: Generating server certificate. ** SSL: Storing SSL certificates. * Deploying configuration files. * Update configuration in database.
y と回答します。
* Setting up Cobbler.. cobblerd does not appear to be running/accessible Cobbler requires tftp and xinetd services be turned on for PXE provisioning functionality. Enable these services [Y]?
* Restarting services. Installation complete. Visit https://satellite.example.com to create the satellite administrator account.
/tftpboot ディレクトリーに Cobbler の書き込みアクセスを付与します。
setsebool -P cobbler_anon_write on

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.