Module: ForemanChef::ChefProxyForm
- Defined in:
- app/helpers/foreman_chef/chef_proxy_form.rb
Instance Method Summary collapse
Instance Method Details
#chef_proxy_form(f) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'app/helpers/foreman_chef/chef_proxy_form.rb', line 3 def chef_proxy_form(f) # Don't show this if we have no Chef proxies, otherwise always include blank # so the user can choose not to use puppet on this host proxies = SmartProxy.with_taxonomy_scope_override(@location,@organization).with_features('Chef') return if proxies.count == 0 select_f f, :chef_proxy_id, proxies, :id, :name, { :include_blank => blank_or_inherit_f(f, :chef_proxy) }, { :label => _("Chef proxy"), :help_inline => _("Use this foreman proxy as an entry point to your Chef, node will be managed via this proxy") } end |