foreman_opennebula 3.1.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c48a6d24abe1e59d488b278f70f0d7531f943e75c526c4365c3055aa36977634
|
|
4
|
+
data.tar.gz: 96d5d5e61d383a2af6e5fa221ac126346e69edf0f714f28aab18427c29c5e61b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c069c85d6a9fed4f8d9f059845eed3a151eebf0675cae9ec96d8cd28a11aa4874d6f6d83df5f6d29ee45afa17b53734502dc39e0ec21a9985bc9ea95e3cd88bf
|
|
7
|
+
data.tar.gz: d8bab1c6c864aeffb797c2904b81d033d1baa4e873232eb5c64d09edd7c39c0ce3521a1a52bf196faca6ae95a347cabf6046c97230c783e84029958e71e4bb1a
|
|
@@ -9,6 +9,7 @@ module FogExtensions
|
|
|
9
9
|
attribute :pci
|
|
10
10
|
attribute :vmgroup
|
|
11
11
|
attribute :template_id
|
|
12
|
+
attribute :topology
|
|
12
13
|
|
|
13
14
|
# rubocop:disable Style/StringConcatenation
|
|
14
15
|
def to_s
|
|
@@ -30,7 +31,8 @@ module FogExtensions
|
|
|
30
31
|
+ get_cpu_model \
|
|
31
32
|
+ get_nic_default \
|
|
32
33
|
+ get_vmgroup \
|
|
33
|
-
+ get_template_id
|
|
34
|
+
+ get_template_id \
|
|
35
|
+
+ get_topology
|
|
34
36
|
end
|
|
35
37
|
# rubocop:enable Style/StringConcatenation
|
|
36
38
|
|
|
@@ -105,6 +107,16 @@ module FogExtensions
|
|
|
105
107
|
ret.delete!('>')
|
|
106
108
|
ret
|
|
107
109
|
end
|
|
110
|
+
|
|
111
|
+
def get_topology
|
|
112
|
+
return '' unless attributes[:topology]
|
|
113
|
+
|
|
114
|
+
ret = "TOPOLOGY=#{attributes[:topology]}\n"
|
|
115
|
+
ret.tr!('{', '[')
|
|
116
|
+
ret.tr!('}', ']')
|
|
117
|
+
ret.delete!('>')
|
|
118
|
+
ret
|
|
119
|
+
end
|
|
108
120
|
end
|
|
109
121
|
end
|
|
110
122
|
end
|