Revision acfbc458
Added by Marek Hulán about 10 years ago
app/models/hostgroup.rb | ||
---|---|---|
class Hostgroup < ActiveRecord::Base
|
||
include Authorization
|
||
has_ancestry :orphan_strategy => :restrict
|
||
include Authorizable
|
||
include Taxonomix
|
||
include HostCommon
|
||
include NestedAncestryCommon
|
||
... | ... | |
scoped_search :in => :hosts, :on => :name, :complete_value => :true, :rename => "host"
|
||
scoped_search :in => :puppetclasses, :on => :name, :complete_value => true, :rename => :class, :operators => ['= ', '~ ']
|
||
scoped_search :in => :environment, :on => :name, :complete_value => :true, :rename => :environment
|
||
scoped_search :on => :id, :complete_value => :true
|
||
if SETTINGS[:unattended]
|
||
scoped_search :in => :architecture, :on => :name, :complete_value => :true, :rename => :architecture
|
||
scoped_search :in => :operatingsystem, :on => :name, :complete_value => true, :rename => :os
|
Also available in: Unified diff
fixes #812 - new permissions model, user group role and nest support, role filters for better granularity
Contributions from: