Project

General

Profile

« Previous | Next » 

Revision 2ccb32e9

Added by Ohad Levy over 11 years ago

  • ID 2ccb32e9ca2f641de43b5a8fcb52544ff6110f4d

adds BMC proxy feature.

This patch simply allows foreman to save a proxy with BMC feature.

without this, Foreman will error out and the proxy won't be usable at all.

View differences:

app/models/smart_proxy.rb
class SmartProxy < ActiveRecord::Base
ProxyFeatures = %w[ TFTP DNS DHCP Puppetca Puppet]
ProxyFeatures = %w[ TFTP BMC DNS DHCP Puppetca Puppet]
attr_accessible :name, :url
#TODO check if there is a way to look into the tftp_id too
# maybe with a predefined sql
......
def self.name_map
{
"tftp" => Feature.find_by_name("TFTP"),
"bmc" => Feature.find_by_name("BMC"),
"dns" => Feature.find_by_name("DNS"),
"dhcp" => Feature.find_by_name("DHCP"),
"puppetca" => Feature.find_by_name("Puppet CA"),

Also available in: Unified diff