Bug #1600 ยป 0001-fixes-1600-delete-unmanaged-host.patch
app/models/host_common.rb | ||
---|---|---|
end
|
||
def puppetca?
|
||
return false if self.respond_to?(:managed?) and !managed?
|
||
(!puppetproxy_id.nil? and !puppetproxy.url.empty?)
|
||
end
|
||
app/models/orchestration/dhcp.rb | ||
---|---|---|
module InstanceMethods
|
||
def dhcp?
|
||
!subnet.nil? and subnet.dhcp? and errors.empty?
|
||
!subnet.nil? and subnet.dhcp? and errors.empty? and managed?
|
||
end
|
||
def sp_dhcp?
|
app/models/orchestration/dns.rb | ||
---|---|---|
module InstanceMethods
|
||
def dns?
|
||
!domain.nil? and !domain.proxy.nil? and errors.empty?
|
||
!domain.nil? and !domain.proxy.nil? and errors.empty? and managed?
|
||
end
|
||
def dns_a_record
|
app/models/orchestration/tftp.rb | ||
---|---|---|
module InstanceMethods
|
||
def tftp?
|
||
!!(subnet and subnet.tftp?)
|
||
!!(subnet and subnet.tftp?) and managed?
|
||
end
|
||
def tftp
|