Puppet は puppet-agent パッケージのバージョンとは異なるバージョンを表示します。

Puppet は puppet-agent パッケージのバージョンとは異なるバージョンを表示します。

Puppetがシステムに異なるバージョンを表示する理由:

[root@localhost ~]# puppet --version
4.7.0
[root@localhost ~]# puppet agent --version
4.7.0

ところでrpmを見るとエージェントとサーバーのバージョンが違うと出てきます。

[root@localhost ~]# rpm -qa | grep puppet
mcollective-puppet-common-1.11.1-1.el7.noarch
puppetlabs-release-22.0-2.noarch
mcollective-puppet-agent-1.11.1-1.el7.noarch
puppet-agent-1.7.0-1.el7.x86_64
puppet-agent-oauth-0.5.1-1.el7.noarch
puppetserver-2.6.0-1.el7.noarch
mcollective-puppet-client-1.11.1-1.el7.noarch

明確にしてください?

ベストアンサー1

puppet-agentAIO(All-in-One)パッケージと呼ばれる多くのコンポーネントのバンドルです。これに関する詳細情報は次のとおりです。

RPMでは、以下を使用してpuppet-agent各コンポーネントの内容とバージョンを見つけることができます。rpm -qi puppet-agent

# rpm -qi puppet-agent
Name        : puppet-agent
Version     : 1.8.2
Release     : 1.el7
Architecture: x86_64
Install Date: Wed 07 Dec 2016 07:12:31 EST
Group       : System Environment/Base
Size        : 126776210
License     : See components
Signature   : RSA/SHA512, Tue 06 Dec 2016 14:30:51 EST, Key ID 7f438280ef8d349f
Source RPM  : puppet-agent-1.8.2-1.el7.src.rpm
Build Date  : Mon 05 Dec 2016 19:37:56 EST
Build Host  : hk1ldlzw0klwdyo.delivery.puppetlabs.net
Relocations : (not relocatable)
Vendor      : Puppet Labs
URL         : https://www.puppetlabs.com
Summary     : The Puppet Agent package contains all of the elements needed to run puppet, including ruby, facter, hiera and mcollective.
Description :
The Puppet Agent package contains all of the elements needed to run puppet, including ruby, facter, hiera and mcollective.

Contains the following components:
augeas 1.4.0
cpp-hocon 0.1.4
[..]
puppet 4.8.1
[..]

出力の「puppet」バージョンはPuppetバージョンに対応します。

# puppet --version
4.8.1

次のサイトでオンラインで要約された情報を見つけることもできます。人形エージェント:それは何であり、その中に何が含まれていますか?puppet-agent/Puppet バージョン番号テーブルがあります。

パペットサーバーも似ています。独自の番号付け方式があり、作成時の最新バージョンは2.7.2で、あなたのバージョンは2.6.0です。バラよりPuppetサーバー:リリースノート各バージョンに関する情報です。

このpuppetserverパッケージには依存関係があるため、puppet-agentPuppet Serverを実行するときpuppet-agent。サーバーはPuppet 4.7.0のすべての言語機能にアクセスできます。

つまり、Puppet 4.7.0をサーバーとエージェントとして使用しています。信じるpuppet --version

おすすめ記事