Skip to content

Commit

Permalink
added puppet location and organization parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoppe authored and ohadlevy committed Dec 30, 2012
1 parent cc7c192 commit 038125b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/models/host.rb
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,12 @@ def info
param["puppetmaster"] = puppetmaster
param["domainname"] = domain.fullname unless domain.nil? or domain.fullname.nil?
param["hostgroup"] = hostgroup.to_label unless hostgroup.nil?
if SETTINGS[:locations_enabled]
param["location"] = location.name unless location.blank?
end
if SETTINGS[:organizations_enabled]
param["organization"] = organization.name unless organization.blank?
end
if SETTINGS[:unattended]
param["root_pw"] = root_pass
param["puppet_ca"] = puppet_ca_server if puppetca?
Expand Down

0 comments on commit 038125b

Please sign in to comment.