0

我有两台 puppet 服务器,其中一台是之前设置的。现在我正试图让另一台服务器准备好并尝试运行librarian-puppet install它失败了Conflict between puppetlabs-apt (< 3.0.0, >= 2.1.0) <https://forgeapi.puppetlabs.com> and puppetlabs-apt/1.8.0 <https://forgeapi.puppetlabs.com>

虽然较早的服务器(生产)可以正常运行此命令。代码库是一样的。我们使用相同的存储库。

木偶文件:

forge 'https://forgeapi.puppetlabs.com'

mod 'puppetlabs/stdlib'#, '4.5'
mod 'deric/accounts', '~> 1.0'
mod 'gdsoperations/hosts', '~> 1.0'
mod 'andschwa/unattended_upgrades', '~> 0.1'
mod 'mayflower-php',
 :git => 'https://github.com/stupied4ever/puppet-php',
  :ref => '5e4deee403e31b2dca402b19d961614566e30bfc'
mod 'rodjek/logrotate', '~> 1.1'
mod 'fsalum/newrelic',
  :git => 'https://github.com/fredsmelo/puppet-newrelic',
  :ref => '4_0_4_with_php_custom_options'
 mod 'puppetlabs/mongodb',
   :git => 'https://github.com/<github_user>/puppetlabs-mongodb',
   :ref => '8325d65376a063f726ec653671d19922e8326173'
mod 'thias/sysctl', '~> 1.0'
mod 'erwbgy/limits', '~> 0.3'
mod 'puppetlabs/inifile', '~> 1.2'
mod 'ssm/munin', '~> 0.0.8'
mod 'puppetlabs/haproxy', '~> 1.3'
mod 'garethr/docker', '~> 5.0.0'
mod 'saz/rsyslog', '~>3.5.1'
mod 'jdowning-awscli', '1.3.0'

这是 Puppetfile.lock 文件:

FORGE
  remote: https://forgeapi.puppetlabs.com
  specs:
    andschwa-unattended_upgrades (0.2.1)
      puppetlabs-stdlib (>= 1.0.0)
    darin-zypprepo (1.0.2)
    deric-accounts (1.1.3)
      puppetlabs-stdlib (>= 4.2.0)
    erwbgy-limits (0.3.1)
    example42-puppi (2.2.1)
    example42-yum (2.1.28)
      example42-puppi (>= 2.0.0)
    garethr-docker (5.0.0)
      puppetlabs-apt (<= 3.0.0, >= 1.8.0)
      puppetlabs-stdlib (>= 4.1.0)
      stahnma-epel (>= 0.0.6)
    gdsoperations-hosts (1.0.1)
    jdowning-awscli (1.3.0)
      puppetlabs-concat (< 2.0.0, >= 1.0.0)
      puppetlabs-stdlib (< 5.0.0, >= 4.0.0)
      stahnma-epel (< 2.0.0, >= 1.0.0)
    puppetlabs-apt (1.8.0)
      puppetlabs-stdlib (>= 2.2.1)
    puppetlabs-concat (1.2.4)
      puppetlabs-stdlib (< 5.0.0, >= 3.2.0)
    puppetlabs-haproxy (1.3.0)
      puppetlabs-concat (< 2.0.0, >= 1.2.3)
      puppetlabs-stdlib (< 5.0.0, >= 2.4.0)
    puppetlabs-inifile (1.4.2)
    puppetlabs-stdlib (4.5.0)
    rodjek-logrotate (1.1.1)
    saz-rsyslog (3.5.1)
    ssm-munin (0.0.10)
      puppetlabs-stdlib (>= 2.3.0)
    stahnma-epel (1.2.2)
      puppetlabs-stdlib (>= 3.0.0)
    thias-sysctl (1.0.2)

GIT
  remote: https://github.com/fredsmelo/puppet-newrelic
  ref: 4_0_4_with_php_custom_options
  sha: 3fda8416263471253c0228b49a8ed28c9ad2f35e
  specs:
    fsalum-newrelic (4.0.4)
      puppetlabs-apt (>= 1.5.0)
      puppetlabs-stdlib (>= 4.1.0)

GIT
  remote: https://github.com/stupied4ever/puppet-php
  ref: 5e4deee403e31b2dca402b19d961614566e30bfc
  sha: 5e4deee403e31b2dca402b19d961614566e30bfc
  specs:
    mayflower-php (3.4.2)
      darin-zypprepo (~> 1.0)
      example42-yum (~> 2.0)
      puppetlabs-apt (< 3.0.0, >= 1.7.0)
      puppetlabs-inifile (~> 1.0)
      puppetlabs-stdlib (< 5.0.0, >= 4.2.0)

DEPENDENCIES
  andschwa-unattended_upgrades (~> 0.1)
  deric-accounts (~> 1.0)
  erwbgy-limits (~> 0.3)
  fsalum-newrelic (>= 0)
  garethr-docker (~> 5.0.0)
  gdsoperations-hosts (~> 1.0)
  jdowning-awscli (= 1.3.0)
  mayflower-php (>= 0)
  puppetlabs-haproxy (~> 1.3)
  puppetlabs-inifile (~> 1.2)
  puppetlabs-stdlib (>= 0)
  rodjek-logrotate (~> 1.1)
  saz-rsyslog (~> 3.5.1)
  ssm-munin (~> 0.0.8)
  thias-sysctl (~> 1.0)
4

1 回答 1

1

librarian-puppet parser Puppetfile、metadata.json、Modulefile 的方式取决于服务器上安装的 puppet 版本。请确保在两台服务器上安装相同版本的 puppet。

如果两个 puppet 服务器上都没有安装相同版本的 puppet,那么对于同一个 Puppetfile,librarian-puppet 的行为可能会有所不同。

于 2017-08-09T17:29:02.120 回答