Puppet Function: getTungstenININonClusteredSections
- Defined in:
-
lib/puppet/parser/functions/getTungstenININonClusteredSections.rb
- Function type:
- Ruby 3.x API
Overview
getTungstenININonClusteredSections() ⇒ Any
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# File 'lib/puppet/parser/functions/getTungstenININonClusteredSections.rb', line 16
newfunction(:getTungstenININonClusteredSections, :type => :rvalue) do |args|
clusterHash = args[0]
sections = []
if clusterHash == false
return sections
end
clusterHash.each{
|key, value|
if key =~ /^defaults/
next
end
if value.has_key?("topology") != true || value["topology"] == "clustered"
next
else
sections << key
end
}
return sections.sort()
end
|