Revision 1cb5ba7e
Added by Stephen Benjamin almost 10 years ago
app/models/hostgroup.rb | ||
---|---|---|
has_many :config_templates, :through => :template_combinations
|
||
before_save :remove_duplicated_nested_class
|
||
|
||
alias_attribute :arch, :architecture
|
||
alias_attribute :os, :operatingsystem
|
||
has_many :trends, :as => :trendable, :class_name => "ForemanTrend"
|
||
|
||
... | ... | |
class Jail < Safemode::Jail
|
||
allow :name, :diskLayout, :puppetmaster, :operatingsystem, :architecture,
|
||
:environment, :ptable, :url_for_boot, :params, :puppetproxy, :param_true?,
|
||
:param_false?
|
||
:param_false?, :puppet_ca_server, :indent, :os, :arch, :domain, :subnet,
|
||
:realm
|
||
end
|
||
|
||
#TODO: add a method that returns the valid os for a hostgroup
|
Also available in: Unified diff
fixes #6860 - add missing attributes to hostgroup jail