puppet-2.6のクライアント側のインストール
1. puppetクライアントの設定ファイルを作成する
puppet-client# puppet agent --genconfig --server puppet > puppet.conf
2. puppetクライアントの設定ファイルを編集する
96行目 factdest をコメントアウトして無効にする
333行目 genconfig をコメントアウトして無効にする
584行目 runintervalを長くする(0で無効にできないため)
702行目 listen = true に変更する
3. CA公開鍵取得,証明書署名要求の作成
puppet-client# puppet agent --test --server puppet warning: peer certificate won't be verified in this SSL session warning: peer certificate won't be verified in this SSL session warning: peer certificate won't be verified in this SSL session Exiting; no certificate found and waitforcert is disabled
4. puppetサーバ側で署名する
puppet-server# puppet cert --list clover puppet-server# puppet cert --sign cosmos notice: Signed certificate request for cosmos notice: Removing file Puppet::SSL::CertificateRequest cosmos at '/var/puppet/ssl/ca/requests/cosmos.pem'
5. puppetサーバ側で site.pp を編集する
今追加したクライアントの情報を追加する
6. puppet でファイルの更新
puppet-client# puppet agent --test --server puppet info: Caching certificate for cosmos info: Caching certificate_revocation_list for ca info: Caching catalog for cosmos info: Applying configuration version '1283581405' notice: Finished catalog run in 0.02 seconds