0

我无法在 puppet 版本 3 下启动工头

foreman/usr/lib/ruby/vendor_ruby/puppet/settings.rb:252:in `convert': Error converting value for param 'hostcert': Error converting value for param 'certdir': Error converting value for param 'ssldir': Could not find value for $confdir (Puppet::Settings::InterpolationError)
        from /usr/lib/ruby/vendor_ruby/puppet/settings.rb:243:in `gsub'
        from /usr/lib/ruby/vendor_ruby/puppet/settings.rb:243:in `convert'
        from /usr/lib/ruby/vendor_ruby/puppet/settings.rb:971:in `value'
        from /usr/lib/ruby/vendor_ruby/puppet/settings.rb:249:in `convert'
        from /usr/lib/ruby/vendor_ruby/puppet/settings.rb:243:in `gsub'
        from /usr/lib/ruby/vendor_ruby/puppet/settings.rb:243:in `convert'
        from /usr/lib/ruby/vendor_ruby/puppet/settings.rb:971:in `value'
        from /usr/lib/ruby/vendor_ruby/puppet/settings.rb:249:in `convert'
        from /usr/lib/ruby/vendor_ruby/puppet/settings.rb:243:in `gsub'
        from /usr/lib/ruby/vendor_ruby/puppet/settings.rb:243:in `convert'
        from /usr/lib/ruby/vendor_ruby/puppet/settings.rb:971:in `value'
        from /usr/lib/ruby/vendor_ruby/puppet/settings.rb:66:in `[]'
        from /usr/share/foreman/lib/foreman/default_settings/loader.rb:43:in `load'
        from /usr/share/foreman/vendor/ruby/1.8/gems/activerecord-3.0.17/lib/active_record/connection_adapters/abstract/database_statements.rb:139:in `transaction'
        from /usr/share/foreman/vendor/ruby/1.8/gems/activerecord-3.0.17/lib/active_record/transactions.rb:207:in `transaction'
        from /usr/share/foreman/lib/foreman/default_settings/loader.rb:28:in `load'
        from /usr/share/foreman/config/initializers/foreman.rb:4
        from /usr/share/foreman/vendor/ruby/1.8/gems/activesupport-3.0.17/lib/active_support/dependencies.rb:236:in `load'
        from /usr/share/foreman/vendor/ruby/1.8/gems/activesupport-3.0.17/lib/active_support/dependencies.rb:236:in `load'
        from /usr/share/foreman/vendor/ruby/1.8/gems/activesupport-3.0.17/lib/active_support/dependencies.rb:227:in `load_dependency'
        from /usr/share/foreman/vendor/ruby/1.8/gems/activesupport-3.0.17/lib/active_support/dependencies.rb:236:in `load'
        from /usr/share/foreman/vendor/ruby/1.8/gems/railties-3.0.17/lib/rails/engine.rb:201
        from /usr/share/foreman/vendor/ruby/1.8/gems/railties-3.0.17/lib/rails/engine.rb:200:in `each'
        from /usr/share/foreman/vendor/ruby/1.8/gems/railties-3.0.17/lib/rails/engine.rb:200
        from /usr/share/foreman/vendor/ruby/1.8/gems/railties-3.0.17/lib/rails/initializable.rb:25:in `instance_exec'
        from /usr/share/foreman/vendor/ruby/1.8/gems/railties-3.0.17/lib/rails/initializable.rb:25:in `run'
        from /usr/share/foreman/vendor/ruby/1.8/gems/railties-3.0.17/lib/rails/initializable.rb:50:in `run_initializers'
        from /usr/share/foreman/vendor/ruby/1.8/gems/railties-3.0.17/lib/rails/initializable.rb:49:in `each'
        from /usr/share/foreman/vendor/ruby/1.8/gems/railties-3.0.17/lib/rails/initializable.rb:49:in `run_initializers'
        from /usr/share/foreman/vendor/ruby/1.8/gems/railties-3.0.17/lib/rails/application.rb:134:in `initialize!'
        from /usr/share/foreman/vendor/ruby/1.8/gems/railties-3.0.17/lib/rails/application.rb:77:in `send'
        from /usr/share/foreman/vendor/ruby/1.8/gems/railties-3.0.17/lib/rails/application.rb:77:in `method_missing'
        from /usr/share/foreman/config/environment.rb:5
        from /usr/share/foreman/vendor/ruby/1.8/gems/activesupport-3.0.17/lib/active_support/dependencies.rb:242:in `require'
        from /usr/share/foreman/vendor/ruby/1.8/gems/activesupport-3.0.17/lib/active_support/dependencies.rb:242:in `require'
        from /usr/share/foreman/vendor/ruby/1.8/gems/activesupport-3.0.17/lib/active_support/dependencies.rb:225:in `load_dependency'
        from /usr/share/foreman/vendor/ruby/1.8/gems/activesupport-3.0.17/lib/active_support/dependencies.rb:597:in `new_constants_in'
        from /usr/share/foreman/vendor/ruby/1.8/gems/activesupport-3.0.17/lib/active_support/dependencies.rb:225:in `load_dependency'
        from /usr/share/foreman/vendor/ruby/1.8/gems/activesupport-3.0.17/lib/active_support/dependencies.rb:242:in `require'
        from /usr/share/foreman/config.ru:3
        from /usr/share/foreman/vendor/ruby/1.8/gems/rack-1.2.5/lib/rack/builder.rb:46:in `instance_eval'
        from /usr/share/foreman/vendor/ruby/1.8/gems/rack-1.2.5/lib/rack/builder.rb:46:in `initialize'
        from /usr/share/foreman/config.ru:1:in `new'
        from /usr/share/foreman/config.ru:1
 failed!

我已经应用了以下网址中的所有解决方法,但仍然无法解决

http://theforeman.org/attachments/410/3_0-hack.patch http://theforeman.org/projects/foreman/wiki/PuppetThreeWorkarounds https://groups.google.com/forum/?fromgroups=#!topic /foreman-users/QHyu-U7nE6Q http://theforeman.org/projects/foreman/wiki/Troubleshooting

下面是我的 puppet.conf

[main]
logdir=/var/log/puppet
vardir=/var/lib/puppet
ssldir=/var/lib/puppet/ssl
rundir=/var/run/puppet
factpath=/var/lib/puppet/lib/facter
templatedir=/etc/puppet/templates
hostcert = /var/lib/puppet/ssl/certs/puppet.pem
certdir = /var/lib/puppet/ssl/certs

[master]
ssl_client_header = SSL_CLIENT_S_DN 
ssl_client_verify_header = SSL_CLIENT_VERIFY

#reports
reports = http,store
reporturl = http://puppet:3000/reports

我尝试手动将 confdir=/etc/puppet 添加到 puppet.conf 并且仍然有帮助

我已经重新启动了所有工头代理和木偶服务,但仍然没有运气。感谢您在此框中启动工头的任何帮助。

puppet 3.0.1 版,debian 2.6.32-5 上的工头 1.0 版

谢谢

4

1 回答 1

1

我最近一直在做一些改变来解决这个问题,并且一直在更新你提到的PuppetThreeWorkarounds页面。

从 12 月 6 日开始的夜间套餐或 1.1 RC1,应该可以解决这个问题。

于 2012-12-06T11:11:02.907 回答