chef-provisioning-opennebula 0.4.4 → 0.4.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +273 -4
  3. data/lib/chef/provider/one_flow_service.rb +346 -0
  4. data/lib/chef/provider/one_flow_template.rb +175 -0
  5. data/lib/chef/provider/one_image.rb +6 -6
  6. data/lib/chef/provider/one_template.rb +4 -6
  7. data/lib/chef/provider/one_user.rb +11 -14
  8. data/lib/chef/provider/one_vnet.rb +6 -9
  9. data/lib/chef/provider/one_vnet_lease.rb +3 -3
  10. data/lib/chef/provisioning/driver_init/opennebula.rb +1 -1
  11. data/lib/chef/provisioning/driver_init/server_version.rb +28 -0
  12. data/lib/chef/provisioning/opennebula_driver.rb +1 -1
  13. data/lib/chef/provisioning/opennebula_driver/credentials.rb +2 -2
  14. data/lib/chef/provisioning/opennebula_driver/driver.rb +132 -34
  15. data/lib/chef/provisioning/opennebula_driver/flow_lib.rb +491 -0
  16. data/lib/chef/provisioning/opennebula_driver/one_lib.rb +39 -49
  17. data/lib/chef/provisioning/opennebula_driver/resources.rb +2 -2
  18. data/lib/chef/provisioning/opennebula_driver/version.rb +2 -2
  19. data/lib/chef/resource/one_flow_service.rb +61 -0
  20. data/lib/chef/resource/one_flow_template.rb +53 -0
  21. data/lib/chef/resource/one_image.rb +2 -2
  22. data/lib/chef/resource/one_template.rb +1 -1
  23. data/lib/chef/resource/one_user.rb +1 -1
  24. data/lib/chef/resource/one_vnet.rb +2 -2
  25. data/lib/chef/resource/one_vnet_lease.rb +1 -1
  26. data/spec/config_sample.rb +12 -3
  27. data/spec/integration/test_all_integration_spec.rb +6 -272
  28. data/spec/integration/test_one_driver.rb +177 -0
  29. data/spec/integration/test_one_flow.rb +546 -0
  30. data/spec/recipes/OneDriver/{instantiate_one_template_spec.rb → allocate_change_profile.rb} +5 -7
  31. data/spec/recipes/OneDriver/{converge_back_two_vm_spec.rb → attach_one_image.rb} +4 -5
  32. data/spec/recipes/OneDriver/create_one_image.rb +20 -0
  33. data/spec/recipes/OneDriver/{create_one_template_int_spec.rb → create_one_template_ints.rb} +21 -4
  34. data/spec/recipes/OneDriver/create_one_template_mix.rb +51 -0
  35. data/spec/recipes/OneDriver/{create_one_image_spec.rb → create_one_template_strings.rb} +18 -7
  36. data/spec/recipes/OneDriver/{converge_back_one_vm_spec.rb → create_one_vnet.rb} +5 -5
  37. data/spec/recipes/OneDriver/delete/{OpenNebula-tpl-1-vm.rb → OpenNebula-test-img.rb} +2 -4
  38. data/spec/recipes/OneDriver/delete/{OpenNebula-back-1-vm.rb → OpenNebula-test-snap-img.rb} +2 -4
  39. data/spec/recipes/OneDriver/delete/OpenNebula-test-tpl-ints.rb +2 -4
  40. data/spec/recipes/OneDriver/delete/{OpenNebula-test-tpl.rb → OpenNebula-test-tpl-mix.rb} +2 -4
  41. data/spec/recipes/OneDriver/delete/OpenNebula-test-tpl-strings.rb +17 -0
  42. data/spec/recipes/OneDriver/delete/{OpenNebula-back-2-vm.rb → OpenNebula-test-vm-vnet.rb} +2 -4
  43. data/spec/recipes/OneDriver/delete/{OpenNebula-bootstrap-vm.rb → OpenNebula-test-vm.rb} +2 -4
  44. data/spec/recipes/OneDriver/delete/OpenNebula-test-vnet.rb +17 -0
  45. data/spec/recipes/OneDriver/{attach_back_one_vm_spec.rb → instantiate_one_template.rb} +7 -6
  46. data/spec/recipes/OneDriver/{converge_bootstrap_vm_spec.rb → instantiate_one_template_vnet.rb} +10 -8
  47. data/spec/recipes/OneDriver/snapshot_one_image.rb +19 -0
  48. data/spec/recipes/OneFlowService/action/boot.rb +19 -0
  49. data/spec/recipes/OneFlowService/action/delete.rb +18 -0
  50. data/spec/recipes/OneFlowService/action/delete_recreate.rb +18 -0
  51. data/spec/recipes/OneFlowService/action/hold.rb +19 -0
  52. data/spec/recipes/OneFlowService/action/poweroff.rb +18 -0
  53. data/spec/recipes/OneFlowService/action/poweroff_hard.rb +18 -0
  54. data/spec/recipes/OneFlowService/action/reboot.rb +18 -0
  55. data/spec/recipes/OneFlowService/action/reboot_hard.rb +18 -0
  56. data/spec/recipes/OneFlowService/action/release.rb +19 -0
  57. data/spec/recipes/OneFlowService/action/resume.rb +18 -0
  58. data/spec/recipes/OneFlowService/action/scale.rb +19 -0
  59. data/spec/recipes/OneFlowService/action/shutdown.rb +18 -0
  60. data/spec/recipes/OneFlowService/action/shutdown_hard.rb +18 -0
  61. data/spec/recipes/OneFlowService/action/shutdown_service.rb +17 -0
  62. data/spec/recipes/OneFlowService/action/snapshot_create.rb +18 -0
  63. data/spec/recipes/OneFlowService/action/stop.rb +18 -0
  64. data/spec/recipes/OneFlowService/action/suspend.rb +18 -0
  65. data/spec/recipes/OneFlowService/action/undeploy.rb +18 -0
  66. data/spec/recipes/OneFlowService/action/undeploy_hard.rb +18 -0
  67. data/spec/recipes/OneFlowService/chmod_simple_by_name.rb +19 -0
  68. data/spec/recipes/OneFlowService/chmod_simple_by_name_2.rb +18 -0
  69. data/spec/recipes/OneFlowService/chmod_tpl_opts.rb +31 -0
  70. data/spec/recipes/OneFlowService/delete/test_instance_template_options.rb +17 -0
  71. data/spec/recipes/OneFlowService/delete/test_role_action.rb +17 -0
  72. data/spec/recipes/OneFlowService/delete/test_simple_instance.rb +17 -0
  73. data/spec/recipes/OneFlowService/delete/test_simple_instance_by_id.rb +17 -0
  74. data/spec/recipes/{OneDriver/create_bootstrap_vm_spec.rb → OneFlowService/instance_role_action.rb} +19 -11
  75. data/spec/recipes/OneFlowService/instance_simple_by_id.rb +20 -0
  76. data/spec/recipes/OneFlowService/instance_simple_by_name.rb +18 -0
  77. data/spec/recipes/OneFlowService/instance_tpl_opts.rb +30 -0
  78. data/spec/recipes/OneFlowTemplate/chmod_simple_from_hash.rb +17 -0
  79. data/spec/recipes/OneFlowTemplate/chmod_update_simple_from_file.rb +19 -0
  80. data/spec/recipes/OneFlowTemplate/create_branch_from_one_id.rb +43 -0
  81. data/spec/recipes/OneFlowTemplate/create_branch_from_one_name.rb +20 -0
  82. data/spec/recipes/OneFlowTemplate/create_role_action_instance.rb +99 -0
  83. data/spec/recipes/OneFlowTemplate/create_simple_from_file.rb +18 -0
  84. data/spec/recipes/{OneDriver/attach_back_two_vm_spec.rb → OneFlowTemplate/create_simple_from_hash.rb} +8 -6
  85. data/spec/recipes/OneFlowTemplate/create_simple_from_web.rb +17 -0
  86. data/spec/recipes/{OneDriver/attach_one_image_spec.rb → OneFlowTemplate/create_simple_instance_tpl.rb} +8 -6
  87. data/spec/recipes/OneFlowTemplate/create_tpl_opts_from_file.rb +30 -0
  88. data/spec/recipes/OneFlowTemplate/create_tpl_opts_from_hash.rb +35 -0
  89. data/spec/recipes/OneFlowTemplate/delete/branch_from_one_id.rb +17 -0
  90. data/spec/recipes/OneFlowTemplate/delete/branch_from_one_name.rb +17 -0
  91. data/spec/recipes/OneFlowTemplate/delete/role_action_instance.rb +17 -0
  92. data/spec/recipes/OneFlowTemplate/delete/simple_from_file.rb +17 -0
  93. data/spec/recipes/OneFlowTemplate/delete/simple_from_hash.rb +17 -0
  94. data/spec/recipes/OneFlowTemplate/delete/simple_from_web.rb +17 -0
  95. data/spec/recipes/OneFlowTemplate/delete/simple_instance_tpl.rb +17 -0
  96. data/spec/recipes/OneFlowTemplate/delete/tpl_opts_from_file.rb +17 -0
  97. data/spec/recipes/OneFlowTemplate/delete/tpl_opts_from_hash.rb +17 -0
  98. data/spec/recipes/OneFlowTemplate/update_simple_from_hash.rb +57 -0
  99. data/spec/recipes/{driver_options_spec.rb → common.rb} +9 -3
  100. data/spec/spec_helper.rb +22 -17
  101. data/spec/support/opennebula_support.rb +75 -45
  102. metadata +114 -27
  103. data/spec/recipes/OneDriver/create_back_one_vm_spec.rb +0 -20
  104. data/spec/recipes/OneDriver/create_back_two_vm_spec.rb +0 -20
  105. data/spec/recipes/OneDriver/create_one_template_spec.rb +0 -21
  106. data/spec/recipes/OneDriver/delete/OpenNebula-bootstrap-img.rb +0 -19
  107. data/spec/recipes/OneDriver/delete/OpenNebula-snap-1-img.rb +0 -19
  108. data/spec/recipes/OneDriver/delete/OpenNebula-snap-2-img.rb +0 -19
  109. data/spec/recipes/OneDriver/snapshot_one_image_spec.rb +0 -21
  110. data/spec/recipes/OneDriver/snapshot_two_image_spec.rb +0 -21
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-provisioning-opennebula
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew J. Brown
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2016-02-29 00:00:00.000000000 Z
15
+ date: 2016-05-13 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: chef
@@ -62,6 +62,40 @@ dependencies:
62
62
  - - "<"
63
63
  - !ruby/object:Gem::Version
64
64
  version: '5'
65
+ - !ruby/object:Gem::Dependency
66
+ name: rest-client
67
+ requirement: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - "~>"
70
+ - !ruby/object:Gem::Version
71
+ version: '1.8'
72
+ type: :runtime
73
+ prerelease: false
74
+ version_requirements: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - "~>"
77
+ - !ruby/object:Gem::Version
78
+ version: '1.8'
79
+ - !ruby/object:Gem::Dependency
80
+ name: json
81
+ requirement: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - "~>"
84
+ - !ruby/object:Gem::Version
85
+ version: '1.8'
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: 1.8.3
89
+ type: :runtime
90
+ prerelease: false
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '1.8'
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: 1.8.3
65
99
  - !ruby/object:Gem::Dependency
66
100
  name: rspec
67
101
  requirement: !ruby/object:Gem::Requirement
@@ -106,18 +140,24 @@ files:
106
140
  - LICENSE
107
141
  - README.md
108
142
  - Rakefile
143
+ - lib/chef/provider/one_flow_service.rb
144
+ - lib/chef/provider/one_flow_template.rb
109
145
  - lib/chef/provider/one_image.rb
110
146
  - lib/chef/provider/one_template.rb
111
147
  - lib/chef/provider/one_user.rb
112
148
  - lib/chef/provider/one_vnet.rb
113
149
  - lib/chef/provider/one_vnet_lease.rb
114
150
  - lib/chef/provisioning/driver_init/opennebula.rb
151
+ - lib/chef/provisioning/driver_init/server_version.rb
115
152
  - lib/chef/provisioning/opennebula_driver.rb
116
153
  - lib/chef/provisioning/opennebula_driver/credentials.rb
117
154
  - lib/chef/provisioning/opennebula_driver/driver.rb
155
+ - lib/chef/provisioning/opennebula_driver/flow_lib.rb
118
156
  - lib/chef/provisioning/opennebula_driver/one_lib.rb
119
157
  - lib/chef/provisioning/opennebula_driver/resources.rb
120
158
  - lib/chef/provisioning/opennebula_driver/version.rb
159
+ - lib/chef/resource/one_flow_service.rb
160
+ - lib/chef/resource/one_flow_template.rb
121
161
  - lib/chef/resource/one_image.rb
122
162
  - lib/chef/resource/one_template.rb
123
163
  - lib/chef/resource/one_user.rb
@@ -125,31 +165,78 @@ files:
125
165
  - lib/chef/resource/one_vnet_lease.rb
126
166
  - spec/config_sample.rb
127
167
  - spec/integration/test_all_integration_spec.rb
128
- - spec/recipes/OneDriver/attach_back_one_vm_spec.rb
129
- - spec/recipes/OneDriver/attach_back_two_vm_spec.rb
130
- - spec/recipes/OneDriver/attach_one_image_spec.rb
131
- - spec/recipes/OneDriver/converge_back_one_vm_spec.rb
132
- - spec/recipes/OneDriver/converge_back_two_vm_spec.rb
133
- - spec/recipes/OneDriver/converge_bootstrap_vm_spec.rb
134
- - spec/recipes/OneDriver/create_back_one_vm_spec.rb
135
- - spec/recipes/OneDriver/create_back_two_vm_spec.rb
136
- - spec/recipes/OneDriver/create_bootstrap_vm_spec.rb
137
- - spec/recipes/OneDriver/create_one_image_spec.rb
138
- - spec/recipes/OneDriver/create_one_template_int_spec.rb
139
- - spec/recipes/OneDriver/create_one_template_spec.rb
140
- - spec/recipes/OneDriver/delete/OpenNebula-back-1-vm.rb
141
- - spec/recipes/OneDriver/delete/OpenNebula-back-2-vm.rb
142
- - spec/recipes/OneDriver/delete/OpenNebula-bootstrap-img.rb
143
- - spec/recipes/OneDriver/delete/OpenNebula-bootstrap-vm.rb
144
- - spec/recipes/OneDriver/delete/OpenNebula-snap-1-img.rb
145
- - spec/recipes/OneDriver/delete/OpenNebula-snap-2-img.rb
168
+ - spec/integration/test_one_driver.rb
169
+ - spec/integration/test_one_flow.rb
170
+ - spec/recipes/OneDriver/allocate_change_profile.rb
171
+ - spec/recipes/OneDriver/attach_one_image.rb
172
+ - spec/recipes/OneDriver/create_one_image.rb
173
+ - spec/recipes/OneDriver/create_one_template_ints.rb
174
+ - spec/recipes/OneDriver/create_one_template_mix.rb
175
+ - spec/recipes/OneDriver/create_one_template_strings.rb
176
+ - spec/recipes/OneDriver/create_one_vnet.rb
177
+ - spec/recipes/OneDriver/delete/OpenNebula-test-img.rb
178
+ - spec/recipes/OneDriver/delete/OpenNebula-test-snap-img.rb
146
179
  - spec/recipes/OneDriver/delete/OpenNebula-test-tpl-ints.rb
147
- - spec/recipes/OneDriver/delete/OpenNebula-test-tpl.rb
148
- - spec/recipes/OneDriver/delete/OpenNebula-tpl-1-vm.rb
149
- - spec/recipes/OneDriver/instantiate_one_template_spec.rb
150
- - spec/recipes/OneDriver/snapshot_one_image_spec.rb
151
- - spec/recipes/OneDriver/snapshot_two_image_spec.rb
152
- - spec/recipes/driver_options_spec.rb
180
+ - spec/recipes/OneDriver/delete/OpenNebula-test-tpl-mix.rb
181
+ - spec/recipes/OneDriver/delete/OpenNebula-test-tpl-strings.rb
182
+ - spec/recipes/OneDriver/delete/OpenNebula-test-vm-vnet.rb
183
+ - spec/recipes/OneDriver/delete/OpenNebula-test-vm.rb
184
+ - spec/recipes/OneDriver/delete/OpenNebula-test-vnet.rb
185
+ - spec/recipes/OneDriver/instantiate_one_template.rb
186
+ - spec/recipes/OneDriver/instantiate_one_template_vnet.rb
187
+ - spec/recipes/OneDriver/snapshot_one_image.rb
188
+ - spec/recipes/OneFlowService/action/boot.rb
189
+ - spec/recipes/OneFlowService/action/delete.rb
190
+ - spec/recipes/OneFlowService/action/delete_recreate.rb
191
+ - spec/recipes/OneFlowService/action/hold.rb
192
+ - spec/recipes/OneFlowService/action/poweroff.rb
193
+ - spec/recipes/OneFlowService/action/poweroff_hard.rb
194
+ - spec/recipes/OneFlowService/action/reboot.rb
195
+ - spec/recipes/OneFlowService/action/reboot_hard.rb
196
+ - spec/recipes/OneFlowService/action/release.rb
197
+ - spec/recipes/OneFlowService/action/resume.rb
198
+ - spec/recipes/OneFlowService/action/scale.rb
199
+ - spec/recipes/OneFlowService/action/shutdown.rb
200
+ - spec/recipes/OneFlowService/action/shutdown_hard.rb
201
+ - spec/recipes/OneFlowService/action/shutdown_service.rb
202
+ - spec/recipes/OneFlowService/action/snapshot_create.rb
203
+ - spec/recipes/OneFlowService/action/stop.rb
204
+ - spec/recipes/OneFlowService/action/suspend.rb
205
+ - spec/recipes/OneFlowService/action/undeploy.rb
206
+ - spec/recipes/OneFlowService/action/undeploy_hard.rb
207
+ - spec/recipes/OneFlowService/chmod_simple_by_name.rb
208
+ - spec/recipes/OneFlowService/chmod_simple_by_name_2.rb
209
+ - spec/recipes/OneFlowService/chmod_tpl_opts.rb
210
+ - spec/recipes/OneFlowService/delete/test_instance_template_options.rb
211
+ - spec/recipes/OneFlowService/delete/test_role_action.rb
212
+ - spec/recipes/OneFlowService/delete/test_simple_instance.rb
213
+ - spec/recipes/OneFlowService/delete/test_simple_instance_by_id.rb
214
+ - spec/recipes/OneFlowService/instance_role_action.rb
215
+ - spec/recipes/OneFlowService/instance_simple_by_id.rb
216
+ - spec/recipes/OneFlowService/instance_simple_by_name.rb
217
+ - spec/recipes/OneFlowService/instance_tpl_opts.rb
218
+ - spec/recipes/OneFlowTemplate/chmod_simple_from_hash.rb
219
+ - spec/recipes/OneFlowTemplate/chmod_update_simple_from_file.rb
220
+ - spec/recipes/OneFlowTemplate/create_branch_from_one_id.rb
221
+ - spec/recipes/OneFlowTemplate/create_branch_from_one_name.rb
222
+ - spec/recipes/OneFlowTemplate/create_role_action_instance.rb
223
+ - spec/recipes/OneFlowTemplate/create_simple_from_file.rb
224
+ - spec/recipes/OneFlowTemplate/create_simple_from_hash.rb
225
+ - spec/recipes/OneFlowTemplate/create_simple_from_web.rb
226
+ - spec/recipes/OneFlowTemplate/create_simple_instance_tpl.rb
227
+ - spec/recipes/OneFlowTemplate/create_tpl_opts_from_file.rb
228
+ - spec/recipes/OneFlowTemplate/create_tpl_opts_from_hash.rb
229
+ - spec/recipes/OneFlowTemplate/delete/branch_from_one_id.rb
230
+ - spec/recipes/OneFlowTemplate/delete/branch_from_one_name.rb
231
+ - spec/recipes/OneFlowTemplate/delete/role_action_instance.rb
232
+ - spec/recipes/OneFlowTemplate/delete/simple_from_file.rb
233
+ - spec/recipes/OneFlowTemplate/delete/simple_from_hash.rb
234
+ - spec/recipes/OneFlowTemplate/delete/simple_from_web.rb
235
+ - spec/recipes/OneFlowTemplate/delete/simple_instance_tpl.rb
236
+ - spec/recipes/OneFlowTemplate/delete/tpl_opts_from_file.rb
237
+ - spec/recipes/OneFlowTemplate/delete/tpl_opts_from_hash.rb
238
+ - spec/recipes/OneFlowTemplate/update_simple_from_hash.rb
239
+ - spec/recipes/common.rb
153
240
  - spec/spec_helper.rb
154
241
  - spec/support/opennebula_support.rb
155
242
  homepage: https://github.com/blackberry/chef-provisioning-opennebula
@@ -172,7 +259,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
259
  version: '0'
173
260
  requirements: []
174
261
  rubyforge_project:
175
- rubygems_version: 2.4.8
262
+ rubygems_version: 2.5.2
176
263
  signing_key:
177
264
  specification_version: 4
178
265
  summary: Driver for creating OpenNebula instances in Chef Provisioning.
@@ -1,20 +0,0 @@
1
- # Copyright 2016, BlackBerry, Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'chef/provisioning/opennebula_driver'
16
-
17
- machine 'OpenNebula-back-1-vm' do
18
- from_image 'OpenNebula-snap-1-img'
19
- action :ready
20
- end
@@ -1,20 +0,0 @@
1
- # Copyright 2016, BlackBerry, Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'chef/provisioning/opennebula_driver'
16
-
17
- machine 'OpenNebula-back-2-vm' do
18
- from_image 'OpenNebula-snap-2-img'
19
- action :ready
20
- end
@@ -1,21 +0,0 @@
1
- # Copyright 2016, BlackBerry, Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'chef/provisioning/opennebula_driver'
16
- require "#{File.dirname(__FILE__)}/../../config.rb"
17
-
18
- one_template 'OpenNebula-test-tpl' do
19
- template VM_TEMPLATE
20
- action :create
21
- end
@@ -1,19 +0,0 @@
1
- # Copyright 2016, BlackBerry, Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'chef/provisioning/opennebula_driver'
16
-
17
- one_image "OpenNebula-bootstrap-img" do
18
- action :destroy
19
- end
@@ -1,19 +0,0 @@
1
- # Copyright 2016, BlackBerry, Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'chef/provisioning/opennebula_driver'
16
-
17
- one_image "OpenNebula-snap-1-img" do
18
- action :destroy
19
- end
@@ -1,19 +0,0 @@
1
- # Copyright 2016, BlackBerry, Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'chef/provisioning/opennebula_driver'
16
-
17
- one_image "OpenNebula-snap-2-img" do
18
- action :destroy
19
- end
@@ -1,21 +0,0 @@
1
- # Copyright 2016, BlackBerry, Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'chef/provisioning/opennebula_driver'
16
-
17
- one_image 'OpenNebula-snap-1-img' do
18
- machine_id 'OpenNebula-bootstrap-vm'
19
- disk_id 'OpenNebula-bootstrap-img'
20
- action :snapshot
21
- end
@@ -1,21 +0,0 @@
1
- # Copyright 2016, BlackBerry, Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'chef/provisioning/opennebula_driver'
16
-
17
- one_image 'OpenNebula-snap-2-img' do
18
- machine_id 'OpenNebula-bootstrap-vm'
19
- disk_id 'OpenNebula-bootstrap-img'
20
- action :snapshot
21
- end