Project

General

Profile

« Previous | Next » 

Revision f00eaf07

Added by Ohad Levy almost 12 years ago

  • ID f00eaf0746492189359177eb7a3664a21b79b70f

fixes #1586 -Root password inheritance doesn't seem to work properly

View differences:

app/models/host.rb
return unless hostgroup
assign_hostgroup_attributes(%w{environment domain puppet_proxy puppet_ca_proxy})
if SETTINGS[:unattended] and (new_record? or managed?)
assign_hostgroup_attributes(%w{operatingsystem medium architecture ptable root_pass subnet})
assign_hostgroup_attributes(%w{operatingsystem medium architecture ptable subnet})
assign_hostgroup_attributes(Vm::PROPERTIES) if hostgroup.hypervisor? and not compute_resource_id
end
end
......
super(:methods => [:host_parameters])
end
# no need to store anything in the db if the password is our default
def root_pass
read_attribute(:root_pass) || hostgroup.try(:root_pass) || Setting[:root_pass]
end
private
# align common mac and ip address input
def normalize_addresses

Also available in: Unified diff