chef-provisioning-opennebula 0.4.3 → 0.4.4
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 +4 -4
- data/README.md +8 -18
- data/lib/chef/provider/one_template.rb +19 -3
- data/lib/chef/provisioning/opennebula_driver/one_lib.rb +11 -4
- data/lib/chef/provisioning/opennebula_driver/version.rb +1 -1
- data/spec/config_sample.rb +60 -0
- data/spec/integration/test_all_integration_spec.rb +264 -79
- data/spec/recipes/OneDriver/attach_back_one_vm_spec.rb +20 -0
- data/spec/recipes/OneDriver/attach_back_two_vm_spec.rb +20 -0
- data/spec/recipes/OneDriver/attach_one_image_spec.rb +20 -0
- data/spec/recipes/OneDriver/converge_back_one_vm_spec.rb +19 -0
- data/spec/recipes/OneDriver/converge_back_two_vm_spec.rb +19 -0
- data/spec/recipes/OneDriver/converge_bootstrap_vm_spec.rb +26 -0
- data/spec/recipes/OneDriver/create_back_one_vm_spec.rb +20 -0
- data/spec/recipes/OneDriver/create_back_two_vm_spec.rb +20 -0
- data/spec/recipes/OneDriver/create_bootstrap_vm_spec.rb +26 -0
- data/spec/recipes/OneDriver/create_one_image_spec.rb +23 -0
- data/spec/recipes/OneDriver/create_one_template_int_spec.rb +21 -0
- data/spec/recipes/OneDriver/create_one_template_spec.rb +21 -0
- data/spec/recipes/OneDriver/delete/OpenNebula-back-1-vm.rb +19 -0
- data/spec/recipes/OneDriver/delete/OpenNebula-back-2-vm.rb +19 -0
- data/spec/recipes/OneDriver/delete/OpenNebula-bootstrap-img.rb +19 -0
- data/spec/recipes/OneDriver/delete/OpenNebula-bootstrap-vm.rb +19 -0
- data/spec/recipes/OneDriver/delete/OpenNebula-snap-1-img.rb +19 -0
- data/spec/recipes/OneDriver/delete/OpenNebula-snap-2-img.rb +19 -0
- data/spec/recipes/OneDriver/delete/OpenNebula-test-tpl-ints.rb +19 -0
- data/spec/recipes/OneDriver/delete/OpenNebula-test-tpl.rb +19 -0
- data/spec/recipes/OneDriver/delete/OpenNebula-tpl-1-vm.rb +19 -0
- data/spec/recipes/OneDriver/instantiate_one_template_spec.rb +25 -0
- data/spec/recipes/OneDriver/snapshot_one_image_spec.rb +21 -0
- data/spec/recipes/OneDriver/snapshot_two_image_spec.rb +21 -0
- data/spec/recipes/driver_options_spec.rb +19 -62
- data/spec/spec_helper.rb +42 -14
- data/spec/support/opennebula_support.rb +69 -34
- metadata +27 -17
- data/spec/recipes/attach_back_one_vm_spec.rb +0 -20
- data/spec/recipes/attach_back_two_vm_spec.rb +0 -20
- data/spec/recipes/attach_one_image_spec.rb +0 -20
- data/spec/recipes/converge_back_one_vm_spec.rb +0 -19
- data/spec/recipes/converge_back_two_vm_spec.rb +0 -19
- data/spec/recipes/converge_bootstrap_vm_spec.rb +0 -34
- data/spec/recipes/create_back_one_vm_spec.rb +0 -20
- data/spec/recipes/create_back_two_vm_spec.rb +0 -20
- data/spec/recipes/create_bootstrap_vm_spec.rb +0 -34
- data/spec/recipes/create_one_image_spec.rb +0 -21
- data/spec/recipes/create_one_template_spec.rb +0 -52
- data/spec/recipes/delete_all_spec.rb +0 -47
- data/spec/recipes/instantiate_one_template_spec.rb +0 -35
- data/spec/recipes/snapshot_one_image_spec.rb +0 -21
- data/spec/recipes/snapshot_two_image_spec.rb +0 -21
@@ -0,0 +1,20 @@
|
|
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-back-1-vm'
|
19
|
+
action :attach
|
20
|
+
end
|
@@ -0,0 +1,20 @@
|
|
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-back-2-vm'
|
19
|
+
action :attach
|
20
|
+
end
|
@@ -0,0 +1,20 @@
|
|
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
|
+
machine_id 'OpenNebula-bootstrap-vm'
|
19
|
+
action :attach
|
20
|
+
end
|
@@ -0,0 +1,19 @@
|
|
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
|
+
run_list []
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
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
|
+
run_list []
|
19
|
+
end
|
@@ -0,0 +1,26 @@
|
|
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
|
+
machine 'OpenNebula-bootstrap-vm' do
|
19
|
+
machine_options MACHINE_OPTIONS.merge(
|
20
|
+
:bootstrap_options => {
|
21
|
+
:template_options => { 'MEMORY' => '512', 'CONTEXT' => { 'TEST' => 'test' } },
|
22
|
+
:template_name => 'OpenNebula-test-tpl'
|
23
|
+
}
|
24
|
+
)
|
25
|
+
run_list []
|
26
|
+
end
|
@@ -0,0 +1,20 @@
|
|
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
|
@@ -0,0 +1,20 @@
|
|
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
|
@@ -0,0 +1,26 @@
|
|
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
|
+
machine 'OpenNebula-bootstrap-vm' do
|
19
|
+
machine_options MACHINE_OPTIONS.merge(
|
20
|
+
:bootstrap_options => {
|
21
|
+
:template_options => { 'MEMORY' => '512', 'CONTEXT' => { 'TEST' => 'test' } },
|
22
|
+
:template_name => 'OpenNebula-test-tpl'
|
23
|
+
}
|
24
|
+
)
|
25
|
+
action :ready
|
26
|
+
end
|
@@ -0,0 +1,23 @@
|
|
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_image 'OpenNebula-bootstrap-img' do
|
19
|
+
type 'DATABLOCK'
|
20
|
+
size 2048
|
21
|
+
datastore_id DATASTORE_ID
|
22
|
+
action :create
|
23
|
+
end
|
@@ -0,0 +1,21 @@
|
|
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-ints' do
|
19
|
+
template VM_TEMPLATE.merge('MEMORY' => 256)
|
20
|
+
action :create
|
21
|
+
end
|
@@ -0,0 +1,21 @@
|
|
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
|
@@ -0,0 +1,19 @@
|
|
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
|
+
action :destroy
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
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
|
+
action :destroy
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
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
|
@@ -0,0 +1,19 @@
|
|
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-bootstrap-vm" do
|
18
|
+
action :destroy
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
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
|
@@ -0,0 +1,19 @@
|
|
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
|
@@ -0,0 +1,19 @@
|
|
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_template "OpenNebula-test-tpl-ints" do
|
18
|
+
action :delete
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
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_template "OpenNebula-test-tpl" do
|
18
|
+
action :delete
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
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-tpl-1-vm" do
|
18
|
+
action :destroy
|
19
|
+
end
|