2014-03-06 22 views
1

我已经安装foreman,foreman-proxypuppet在相同的Ubuntu 12.X箱,并尝试添加smart-proxy条目,但我越来越关注错误任何想法?我已经放弃数据库并重新启动,但仍然是同样的问题。工头智能代理错误注册木偶

Started POST "/smart_proxies" for 10.10.50.15 at 2014-03-06 15:44:53 -0500 
Processing by SmartProxiesController#create as */* 
    Parameters: {"utf8"=>"✓", "authenticity_token"=>"NwndUWNHb78ay/6KKVxDMPSb4TLwaPnNr7vMz06JwnU=", "smart_proxy"=>{"name"=>"a", "url"=>"https://spatel-optiplex-755.example.local:8443"}} 
Failed to save: 
    Rendered smart_proxies/_form.html.erb (2.0ms) 
    Rendered smart_proxies/new.html.erb within layouts/application (2.5ms) 
    Rendered home/_user_dropdown.html.erb (1.1ms) 
Read fragment views/tabs_and_title_records-1 0.1ms 
    Rendered home/_topbar.html.erb (1.8ms) 
    Rendered layouts/base.html.erb (3.0ms) 
Completed 200 OK in 96.3ms (Views: 6.7ms | ActiveRecord: 0.6ms) 
+0

任何解决方案? –

+0

是的,我安装了两个'json' gem版本,双重检查, ,因为其中一个似乎安装不正确(例如''32bit'版本 '64bit'红宝石或其他方式)。还要确保你在'setting.yml'中有':puppet:true' – Satish

回答

1

我有同样的问题,做了一些调查和整个这次谈话传来: https://groups.google.com/forum/#!topic/foreman-users/BcP3XdN-Nbo

它好像在我的情况下,默认工头代理安装启用只有“事实”的特征。由于某种原因,它不足以保存在工头智能代理列表中。在添加更多功能后,工头能够将代理与所提供的功能列表(不包括“事实”)保存在一起。

希望有所帮助。

+0

你添加了什么'更多功能'?另外,你是否能够保存代理? “不包括'事实'”是什么意思? –

+0

@PatrickM的功能我的意思是代理所暴露的功能列表。我通过修改/etc/foreman-proxy/settings.d/{puppet.yml,puppetca.yml}并设置:enabled:true来添加puppet和puppetca功能。是的,重新启动代理服务器后,我可以将它保存在工头应用程序中。当你保存代理时,你会得到它支持的功能列表,在我的情况下是puppet和puppetca,而技术上我的代理支持puppet,puppetca和'Facts'(不管它是什么并且被排除在外)。您可以通过导航到http:// proxyurl/features来检查代理支持哪些功能。 –