Show Table of Contents
第9章 Satellite Server のカスタマイズ
Red Hat Satellite Server は、ユーザーインターフェースプラグインの追加と、オーケストレーションおよび Rails イベントによりトリガーされたフックの使用で拡張できます。一部のプラグインはデフォルトでインストールされますが、追加のプラグインは Red Hat リポジトリーとアップストリームから RPM パッケージとしてインストールできます。Red Hat は、その API をサポートしますが、アップストリームプラグイン自体はサポートしません。一部のフックは RPM パッケージとして提供され、シェルスクリプトとして作成できるフックもあります。これにより、シェルスクリプトの知識がある管理者は、Ruby と Rails を使用せずに Satellite の機能を拡張することが可能になります。
9.1. プラグインの追加
設定されたリポジトリーから利用可能なプラグインをリストするには、
root で以下のコマンドを入力します。
# yum search rubygem-foreman
Loaded plugins: product-id, search-disabled-repos, subscription-manager
=================== N/S matched: rubygem-foreman ==============================
tfm-rubygem-foreman-redhat_access.noarch : Foreman engine to access Red Hat knowledge base and manage support cases.
tfm-rubygem-foreman-tasks.noarch : Tasks support for Foreman with Dynflow integration
tfm-rubygem-foreman_abrt.noarch : Display reports from Automatic Bug Reporting Tool in Foreman
tfm-rubygem-foreman_bootdisk.noarch : Create boot disks to provision hosts with Foreman出力省略
現在インストールされているプラグインを表示するには、root で以下のコマンドを入力します。
# yum list installed | grep rubygem-foreman
新しいプラグインを追加するには、パッケージをインストールし、Foreman を再起動します。たとえば、SCAP クライアントプラグインをインストールするには、
root で以下のコマンドを入力します。
# yum install rubygem-foreman_scap_client.noarch
プラグインを登録するために Foreman サービスを再起動します。
# touch ~foreman/tmp/restart.txt
Foreman Web サイトには追加のプラグイン Popular Plugins[11] があります。Red Hat はプラグイン API をサポートしますが、アップストリームプラグイン自体はサポートしないことに注意してください。
Foreman リポジトリーからのプラグインの追加
Foreman リポジトリーは、yum.theforeman.org/plugins で利用可能です。各 Foreman リリースには、その特定のバージョンと互換性があるプラグインを含む独立したリポジトリーが利用可能です。Foreman のバージョンと互換性があるプラグインをシステムにインストールします。使用している Foreman のリリースを調べるには、以下のコマンドを入力します。
$ rpm -q foreman
foreman-1.7.2.53-1.el7sat.noarch
以下のように Foreman リポジトリーを設定します。
# /etc/yum.repos.d/foreman-plugins.repo
[foreman-plugins]
name=Foreman plugins
baseurl=http://yum.theforeman.org/plugins/1.10/elX/x86_64/
enabled=1
gpgcheck=0
ここで、X は、それぞれ Red Hat Enterprise Linux 6 または 7 向けの 6 または 7 です。使用中の Foreman のリリースに合わせて URL のバージョン番号を変更します。パッケージは現在 GPG 署名されていないことに注意してください。
- 検索機能を使用してプラグインのパッケージを見つけます。たとえば、名前に "discovery" という単語があるプラグインを検索するには、以下のコマンドを実行します。
#
または、プラグインの名前のプラグインドキュメンテーションを確認します。yum search discovery - たとえば、以下のようにパッケージをインストールします。
#
yum install tfm-rubygem-foreman_discovery - プラグインを登録するために Foreman サービスを再起動します。
#
touch ~foreman/tmp/restart.txt

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.