Chef_Solo_Nodes 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/Chef_Solo_Nodes.rb +12 -0
- data/lib/Chef_Solo_Nodes/version.rb +1 -1
- metadata +1 -1
data/lib/Chef_Solo_Nodes.rb
CHANGED
@@ -6,6 +6,9 @@ require "json"
|
|
6
6
|
#
|
7
7
|
# role_or_paths = File paths Array OR Role name String.
|
8
8
|
#
|
9
|
+
# Returns:
|
10
|
+
#
|
11
|
+
# Array of Hashes.
|
9
12
|
#
|
10
13
|
def Chef_Solo_Nodes role_or_paths = '*'
|
11
14
|
|
@@ -26,6 +29,15 @@ def Chef_Solo_Nodes role_or_paths = '*'
|
|
26
29
|
|
27
30
|
end
|
28
31
|
|
32
|
+
#
|
33
|
+
# Arguments:
|
34
|
+
#
|
35
|
+
# Same as Chef_Solo_Nodes()
|
36
|
+
#
|
37
|
+
# Returns:
|
38
|
+
#
|
39
|
+
# Array of Strings.
|
40
|
+
#
|
29
41
|
def Chef_Solo_IPs *args
|
30
42
|
Chef_Solo_Nodes(*args).map { |h|
|
31
43
|
[ h['ipaddress'] || h['hostname'], h['port'] ].compact.join(':')
|