2014-03-06 23 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來檢查代理支持哪些功能。 –