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.
- checksums.yaml +4 -4
- data/README.md +273 -4
- data/lib/chef/provider/one_flow_service.rb +346 -0
- data/lib/chef/provider/one_flow_template.rb +175 -0
- data/lib/chef/provider/one_image.rb +6 -6
- data/lib/chef/provider/one_template.rb +4 -6
- data/lib/chef/provider/one_user.rb +11 -14
- data/lib/chef/provider/one_vnet.rb +6 -9
- data/lib/chef/provider/one_vnet_lease.rb +3 -3
- data/lib/chef/provisioning/driver_init/opennebula.rb +1 -1
- data/lib/chef/provisioning/driver_init/server_version.rb +28 -0
- data/lib/chef/provisioning/opennebula_driver.rb +1 -1
- data/lib/chef/provisioning/opennebula_driver/credentials.rb +2 -2
- data/lib/chef/provisioning/opennebula_driver/driver.rb +132 -34
- data/lib/chef/provisioning/opennebula_driver/flow_lib.rb +491 -0
- data/lib/chef/provisioning/opennebula_driver/one_lib.rb +39 -49
- data/lib/chef/provisioning/opennebula_driver/resources.rb +2 -2
- data/lib/chef/provisioning/opennebula_driver/version.rb +2 -2
- data/lib/chef/resource/one_flow_service.rb +61 -0
- data/lib/chef/resource/one_flow_template.rb +53 -0
- data/lib/chef/resource/one_image.rb +2 -2
- data/lib/chef/resource/one_template.rb +1 -1
- data/lib/chef/resource/one_user.rb +1 -1
- data/lib/chef/resource/one_vnet.rb +2 -2
- data/lib/chef/resource/one_vnet_lease.rb +1 -1
- data/spec/config_sample.rb +12 -3
- data/spec/integration/test_all_integration_spec.rb +6 -272
- data/spec/integration/test_one_driver.rb +177 -0
- data/spec/integration/test_one_flow.rb +546 -0
- data/spec/recipes/OneDriver/{instantiate_one_template_spec.rb → allocate_change_profile.rb} +5 -7
- data/spec/recipes/OneDriver/{converge_back_two_vm_spec.rb → attach_one_image.rb} +4 -5
- data/spec/recipes/OneDriver/create_one_image.rb +20 -0
- data/spec/recipes/OneDriver/{create_one_template_int_spec.rb → create_one_template_ints.rb} +21 -4
- data/spec/recipes/OneDriver/create_one_template_mix.rb +51 -0
- data/spec/recipes/OneDriver/{create_one_image_spec.rb → create_one_template_strings.rb} +18 -7
- data/spec/recipes/OneDriver/{converge_back_one_vm_spec.rb → create_one_vnet.rb} +5 -5
- data/spec/recipes/OneDriver/delete/{OpenNebula-tpl-1-vm.rb → OpenNebula-test-img.rb} +2 -4
- data/spec/recipes/OneDriver/delete/{OpenNebula-back-1-vm.rb → OpenNebula-test-snap-img.rb} +2 -4
- data/spec/recipes/OneDriver/delete/OpenNebula-test-tpl-ints.rb +2 -4
- data/spec/recipes/OneDriver/delete/{OpenNebula-test-tpl.rb → OpenNebula-test-tpl-mix.rb} +2 -4
- data/spec/recipes/OneDriver/delete/OpenNebula-test-tpl-strings.rb +17 -0
- data/spec/recipes/OneDriver/delete/{OpenNebula-back-2-vm.rb → OpenNebula-test-vm-vnet.rb} +2 -4
- data/spec/recipes/OneDriver/delete/{OpenNebula-bootstrap-vm.rb → OpenNebula-test-vm.rb} +2 -4
- data/spec/recipes/OneDriver/delete/OpenNebula-test-vnet.rb +17 -0
- data/spec/recipes/OneDriver/{attach_back_one_vm_spec.rb → instantiate_one_template.rb} +7 -6
- data/spec/recipes/OneDriver/{converge_bootstrap_vm_spec.rb → instantiate_one_template_vnet.rb} +10 -8
- data/spec/recipes/OneDriver/snapshot_one_image.rb +19 -0
- data/spec/recipes/OneFlowService/action/boot.rb +19 -0
- data/spec/recipes/OneFlowService/action/delete.rb +18 -0
- data/spec/recipes/OneFlowService/action/delete_recreate.rb +18 -0
- data/spec/recipes/OneFlowService/action/hold.rb +19 -0
- data/spec/recipes/OneFlowService/action/poweroff.rb +18 -0
- data/spec/recipes/OneFlowService/action/poweroff_hard.rb +18 -0
- data/spec/recipes/OneFlowService/action/reboot.rb +18 -0
- data/spec/recipes/OneFlowService/action/reboot_hard.rb +18 -0
- data/spec/recipes/OneFlowService/action/release.rb +19 -0
- data/spec/recipes/OneFlowService/action/resume.rb +18 -0
- data/spec/recipes/OneFlowService/action/scale.rb +19 -0
- data/spec/recipes/OneFlowService/action/shutdown.rb +18 -0
- data/spec/recipes/OneFlowService/action/shutdown_hard.rb +18 -0
- data/spec/recipes/OneFlowService/action/shutdown_service.rb +17 -0
- data/spec/recipes/OneFlowService/action/snapshot_create.rb +18 -0
- data/spec/recipes/OneFlowService/action/stop.rb +18 -0
- data/spec/recipes/OneFlowService/action/suspend.rb +18 -0
- data/spec/recipes/OneFlowService/action/undeploy.rb +18 -0
- data/spec/recipes/OneFlowService/action/undeploy_hard.rb +18 -0
- data/spec/recipes/OneFlowService/chmod_simple_by_name.rb +19 -0
- data/spec/recipes/OneFlowService/chmod_simple_by_name_2.rb +18 -0
- data/spec/recipes/OneFlowService/chmod_tpl_opts.rb +31 -0
- data/spec/recipes/OneFlowService/delete/test_instance_template_options.rb +17 -0
- data/spec/recipes/OneFlowService/delete/test_role_action.rb +17 -0
- data/spec/recipes/OneFlowService/delete/test_simple_instance.rb +17 -0
- data/spec/recipes/OneFlowService/delete/test_simple_instance_by_id.rb +17 -0
- data/spec/recipes/{OneDriver/create_bootstrap_vm_spec.rb → OneFlowService/instance_role_action.rb} +19 -11
- data/spec/recipes/OneFlowService/instance_simple_by_id.rb +20 -0
- data/spec/recipes/OneFlowService/instance_simple_by_name.rb +18 -0
- data/spec/recipes/OneFlowService/instance_tpl_opts.rb +30 -0
- data/spec/recipes/OneFlowTemplate/chmod_simple_from_hash.rb +17 -0
- data/spec/recipes/OneFlowTemplate/chmod_update_simple_from_file.rb +19 -0
- data/spec/recipes/OneFlowTemplate/create_branch_from_one_id.rb +43 -0
- data/spec/recipes/OneFlowTemplate/create_branch_from_one_name.rb +20 -0
- data/spec/recipes/OneFlowTemplate/create_role_action_instance.rb +99 -0
- data/spec/recipes/OneFlowTemplate/create_simple_from_file.rb +18 -0
- data/spec/recipes/{OneDriver/attach_back_two_vm_spec.rb → OneFlowTemplate/create_simple_from_hash.rb} +8 -6
- data/spec/recipes/OneFlowTemplate/create_simple_from_web.rb +17 -0
- data/spec/recipes/{OneDriver/attach_one_image_spec.rb → OneFlowTemplate/create_simple_instance_tpl.rb} +8 -6
- data/spec/recipes/OneFlowTemplate/create_tpl_opts_from_file.rb +30 -0
- data/spec/recipes/OneFlowTemplate/create_tpl_opts_from_hash.rb +35 -0
- data/spec/recipes/OneFlowTemplate/delete/branch_from_one_id.rb +17 -0
- data/spec/recipes/OneFlowTemplate/delete/branch_from_one_name.rb +17 -0
- data/spec/recipes/OneFlowTemplate/delete/role_action_instance.rb +17 -0
- data/spec/recipes/OneFlowTemplate/delete/simple_from_file.rb +17 -0
- data/spec/recipes/OneFlowTemplate/delete/simple_from_hash.rb +17 -0
- data/spec/recipes/OneFlowTemplate/delete/simple_from_web.rb +17 -0
- data/spec/recipes/OneFlowTemplate/delete/simple_instance_tpl.rb +17 -0
- data/spec/recipes/OneFlowTemplate/delete/tpl_opts_from_file.rb +17 -0
- data/spec/recipes/OneFlowTemplate/delete/tpl_opts_from_hash.rb +17 -0
- data/spec/recipes/OneFlowTemplate/update_simple_from_hash.rb +57 -0
- data/spec/recipes/{driver_options_spec.rb → common.rb} +9 -3
- data/spec/spec_helper.rb +22 -17
- data/spec/support/opennebula_support.rb +75 -45
- metadata +114 -27
- data/spec/recipes/OneDriver/create_back_one_vm_spec.rb +0 -20
- data/spec/recipes/OneDriver/create_back_two_vm_spec.rb +0 -20
- data/spec/recipes/OneDriver/create_one_template_spec.rb +0 -21
- data/spec/recipes/OneDriver/delete/OpenNebula-bootstrap-img.rb +0 -19
- data/spec/recipes/OneDriver/delete/OpenNebula-snap-1-img.rb +0 -19
- data/spec/recipes/OneDriver/delete/OpenNebula-snap-2-img.rb +0 -19
- data/spec/recipes/OneDriver/snapshot_one_image_spec.rb +0 -21
- 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
|
+
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-
|
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/
|
129
|
-
- spec/
|
130
|
-
- spec/recipes/OneDriver/
|
131
|
-
- spec/recipes/OneDriver/
|
132
|
-
- spec/recipes/OneDriver/
|
133
|
-
- spec/recipes/OneDriver/
|
134
|
-
- spec/recipes/OneDriver/
|
135
|
-
- spec/recipes/OneDriver/
|
136
|
-
- spec/recipes/OneDriver/
|
137
|
-
- spec/recipes/OneDriver/
|
138
|
-
- spec/recipes/OneDriver/
|
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-
|
149
|
-
- spec/recipes/OneDriver/
|
150
|
-
- spec/recipes/OneDriver/
|
151
|
-
- spec/recipes/OneDriver/
|
152
|
-
- spec/recipes/
|
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.
|
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
|