3.7. 手動によるホストでの Puppet エージェントのインストールおよび設定
Puppet エージェントを手動でホストにインストールし、設定します。
前提条件
- ホストに Puppet 環境が割り当てられている。
- Satellite Client 6 リポジトリーを有効化して Satellite Server に同期し、ホスト上で有効化している必要がある。詳細は コンテンツの管理 のコンテンツのインポート を参照してください。
手順
-
root
ユーザーで、ホストにログインします。 Puppet エージェントパッケージをインストールします。
Red Hat Enterprise Linux 8 以降を実行しているホストの場合:
# dnf install puppet-agent
Red Hat Enterprise Linux 7 以前を実行しているホストの場合:
# yum install puppet-agent
次のスクリプトを使用して、Puppet エージェントを現在のシェルの
PATH
に追加します。. /etc/profile.d/puppet-agent.sh
Puppet エージェントを設定します。ホストの所属先の Puppet 環境名に
environment
パラメーターを設定します。# puppet config set server satellite.example.com --section agent # puppet config set environment My_Puppet_Environment --section agent
Puppet エージェントサービスを開始します。
# puppet resource service puppet ensure=running enable=true
ホストの証明書を作成します。
# puppet ssl bootstrap
- Satellite Web UI で、Infrastructure > Capsules に移動します。
- 必要な Capsule Server の Actions コラムの一覧から、Certificates を選択します。
- 必要なホストの右にある Sign をクリックして、Puppet エージェントの SSL 証明書に署名します。
ホスト上で、Puppet エージェントを再度実行します。
# puppet ssl bootstrap
関連情報
- Puppet の詳細は、Red Hat Satellite での Puppet 統合を使用した設定の管理 を参照してください。