Skip to content

Commit

Permalink
Merge pull request #5140 from stbenjam/8447
Browse files Browse the repository at this point in the history
refs #8477 - remove defaulting of foreman templates
  • Loading branch information
stbenjam committed Mar 26, 2015
2 parents 45e08db + 931718a commit d1d7228
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions db/seeds.rb
Expand Up @@ -52,13 +52,6 @@ def format_errors(model = nil)
ConfigTemplate.find_or_create_by_name(template).update_attributes(defaults.merge(template))
end

# Make some Foreman templates default so they automatically get added to new orgs like our Katello templates
templates = ["puppet.conf", "freeipa_register", "Kickstart default iPXE", "Kickstart default PXELinux", "PXELinux global default"]

ConfigTemplate.where(:name => templates).each do |template|
template.update_attribute(:default, true)
end

# Ensure all default templates are seeded into the first org and loc
ConfigTemplate.where(:default => true).each do |template|
template.organizations << Organization.first unless template.organizations.include?(Organization.first) || Organization.count.zero?
Expand Down

0 comments on commit d1d7228

Please sign in to comment.