chef-provisioning-opennebula 0.4.8 → 0.4.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +2 -3
- data/lib/chef/provisioning/opennebula_driver/driver.rb +7 -1
- data/lib/chef/provisioning/opennebula_driver/version.rb +1 -1
- data/spec/config_sample.rb +19 -18
- data/spec/integration/one_driver_spec.rb +84 -0
- data/spec/integration/one_flow_spec.rb +340 -0
- data/spec/recipes/OneDriver/{instantiate_one_template_vnet.rb → allocate_one_vm.rb} +6 -4
- data/spec/recipes/OneDriver/attach_one_image.rb +2 -2
- data/spec/recipes/OneDriver/converge_one_vm.rb +17 -0
- data/spec/recipes/OneDriver/create_one_image.rb +1 -1
- data/spec/recipes/OneDriver/create_one_template.rb +18 -0
- data/spec/recipes/OneDriver/create_one_vnet.rb +2 -2
- data/spec/recipes/OneDriver/{delete/OpenNebula-test-vm.rb → delete_one_img.rb} +1 -1
- data/spec/recipes/OneDriver/{delete/OpenNebula-test-img.rb → delete_one_snap-img.rb} +1 -1
- data/spec/recipes/{OneFlowService/delete/test_role_action.rb → OneDriver/delete_one_template.rb} +1 -1
- data/spec/recipes/OneDriver/{delete/OpenNebula-test-vm-vnet.rb → delete_one_vm.rb} +1 -1
- data/spec/recipes/OneDriver/{delete/OpenNebula-test-vnet.rb → delete_one_vnet.rb} +1 -1
- data/spec/recipes/OneDriver/ready_one_vm.rb +17 -0
- data/spec/recipes/OneDriver/snapshot_one_image.rb +3 -3
- data/spec/recipes/OneDriver/update_one_template.rb +20 -0
- data/spec/recipes/{OneFlowTemplate/create_branch_from_one_id.rb → OneFlow/branch_json_template_by_id.rb} +6 -6
- data/spec/recipes/OneFlow/branch_json_template_by_name.rb +42 -0
- data/spec/recipes/{OneFlowTemplate/chmod_simple_from_hash.rb → OneFlow/chmod_file_template.rb} +1 -1
- data/spec/recipes/{OneFlowService/chmod_simple_by_name_2.rb → OneFlow/chmod_json_service_by_id.rb} +2 -2
- data/spec/recipes/{OneFlowService/instance_simple_by_name.rb → OneFlow/chmod_json_service_by_name.rb} +2 -2
- data/spec/recipes/{OneDriver/delete/OpenNebula-test-snap-img.rb → OneFlow/chmod_json_template.rb} +2 -2
- data/spec/recipes/OneFlow/create_file_template.rb +18 -0
- data/spec/recipes/{OneFlowTemplate/create_tpl_opts_from_hash.rb → OneFlow/create_file_template_with_opts.rb} +8 -11
- data/spec/recipes/OneFlow/create_http_template.rb +17 -0
- data/spec/recipes/{OneFlowService/instance_simple_by_id.rb → OneFlow/create_json_service_by_id.rb} +4 -2
- data/spec/recipes/{OneFlowService/chmod_simple_by_name.rb → OneFlow/create_json_service_by_name.rb} +2 -2
- data/spec/recipes/{OneFlowService/instance_tpl_opts.rb → OneFlow/create_json_service_with_opts.rb} +8 -6
- data/spec/recipes/{OneFlowTemplate/create_simple_from_hash.rb → OneFlow/create_json_template.rb} +4 -3
- data/spec/recipes/{OneFlowTemplate/create_tpl_opts_from_file.rb → OneFlow/create_json_template_with_opts.rb} +15 -7
- data/spec/recipes/{OneFlowService/instance_role_action.rb → OneFlow/create_role_action_service.rb} +8 -8
- data/spec/recipes/OneFlow/create_role_action_template.rb +89 -0
- data/spec/recipes/OneFlow/delete_branched_template_by_id.rb +17 -0
- data/spec/recipes/OneFlow/delete_branched_template_by_name.rb +17 -0
- data/spec/recipes/{OneDriver/delete/OpenNebula-test-tpl-strings.rb → OneFlow/delete_file_template.rb} +1 -1
- data/spec/recipes/OneFlow/delete_file_template_with_opts.rb +17 -0
- data/spec/recipes/{OneDriver/delete/OpenNebula-test-tpl-ints.rb → OneFlow/delete_http_template.rb} +1 -1
- data/spec/recipes/{OneDriver/delete/OpenNebula-test-tpl-mix.rb → OneFlow/delete_json_service_by_id.rb} +1 -1
- data/spec/recipes/OneFlow/delete_json_service_by_name.rb +17 -0
- data/spec/recipes/OneFlow/delete_json_service_with_opts.rb +17 -0
- data/spec/recipes/OneFlow/delete_json_template.rb +17 -0
- data/spec/recipes/OneFlow/delete_json_template_with_opts.rb +17 -0
- data/spec/recipes/OneFlow/delete_role_action_service.rb +17 -0
- data/spec/recipes/OneFlow/delete_role_action_template.rb +17 -0
- data/spec/recipes/{OneFlowService/action/boot.rb → OneFlow/service_action_boot.rb} +4 -3
- data/spec/recipes/OneFlow/service_action_delete.rb +18 -0
- data/spec/recipes/{OneFlowService/action/delete_recreate.rb → OneFlow/service_action_delete_recreate.rb} +2 -2
- data/spec/recipes/{OneFlowService/action/hold.rb → OneFlow/service_action_hold.rb} +4 -3
- data/spec/recipes/{OneFlowService/action/poweroff.rb → OneFlow/service_action_poweroff.rb} +2 -2
- data/spec/recipes/{OneFlowService/action/poweroff_hard.rb → OneFlow/service_action_poweroff_hard.rb} +2 -2
- data/spec/recipes/{OneFlowService/action/reboot.rb → OneFlow/service_action_reboot.rb} +2 -2
- data/spec/recipes/{OneFlowService/action/reboot_hard.rb → OneFlow/service_action_reboot_hard.rb} +2 -2
- data/spec/recipes/{OneFlowService/action/release.rb → OneFlow/service_action_release.rb} +4 -3
- data/spec/recipes/OneFlow/service_action_resume_poweroff.rb +18 -0
- data/spec/recipes/OneFlow/service_action_resume_poweroff_hard.rb +18 -0
- data/spec/recipes/{OneFlowService/action/resume.rb → OneFlow/service_action_resume_stop.rb} +2 -2
- data/spec/recipes/OneFlow/service_action_resume_suspend.rb +18 -0
- data/spec/recipes/OneFlow/service_action_resume_undeploy.rb +18 -0
- data/spec/recipes/OneFlow/service_action_resume_undeploy_hard.rb +18 -0
- data/spec/recipes/{OneFlowService/action/scale.rb → OneFlow/service_action_scale.rb} +2 -2
- data/spec/recipes/{OneFlowService/action/shutdown.rb → OneFlow/service_action_shutdown.rb} +2 -2
- data/spec/recipes/{OneFlowService/action/shutdown_hard.rb → OneFlow/service_action_shutdown_hard.rb} +2 -2
- data/spec/recipes/{OneFlowService/action/snapshot_create.rb → OneFlow/service_action_snapshot_create.rb} +2 -2
- data/spec/recipes/{OneFlowService/action/stop.rb → OneFlow/service_action_stop.rb} +2 -2
- data/spec/recipes/{OneFlowService/action/suspend.rb → OneFlow/service_action_suspend.rb} +2 -2
- data/spec/recipes/{OneFlowService/action/undeploy.rb → OneFlow/service_action_undeploy.rb} +2 -2
- data/spec/recipes/{OneFlowService/action/undeploy_hard.rb → OneFlow/service_action_undeploy_hard.rb} +2 -2
- data/spec/recipes/{OneFlowService/action/shutdown_service.rb → OneFlow/shutdown_role_action_service.rb} +1 -1
- data/spec/recipes/{OneFlowTemplate/update_simple_from_hash.rb → OneFlow/update_json_template.rb} +17 -14
- data/spec/recipes/common.rb +0 -2
- data/spec/spec_helper.rb +97 -42
- metadata +86 -89
- data/spec/integration/test_all_integration_spec.rb +0 -21
- data/spec/integration/test_one_driver.rb +0 -177
- data/spec/integration/test_one_flow.rb +0 -546
- data/spec/recipes/OneDriver/allocate_change_profile.rb +0 -23
- data/spec/recipes/OneDriver/create_one_template_ints.rb +0 -38
- data/spec/recipes/OneDriver/create_one_template_mix.rb +0 -51
- data/spec/recipes/OneDriver/create_one_template_strings.rb +0 -34
- data/spec/recipes/OneDriver/instantiate_one_template.rb +0 -21
- data/spec/recipes/OneFlowService/action/delete.rb +0 -18
- data/spec/recipes/OneFlowService/chmod_tpl_opts.rb +0 -31
- data/spec/recipes/OneFlowService/delete/test_instance_template_options.rb +0 -17
- data/spec/recipes/OneFlowService/delete/test_simple_instance.rb +0 -17
- data/spec/recipes/OneFlowService/delete/test_simple_instance_by_id.rb +0 -17
- data/spec/recipes/OneFlowTemplate/chmod_update_simple_from_file.rb +0 -19
- data/spec/recipes/OneFlowTemplate/create_branch_from_one_name.rb +0 -20
- data/spec/recipes/OneFlowTemplate/create_role_action_instance.rb +0 -99
- data/spec/recipes/OneFlowTemplate/create_simple_from_file.rb +0 -18
- data/spec/recipes/OneFlowTemplate/create_simple_from_web.rb +0 -17
- data/spec/recipes/OneFlowTemplate/create_simple_instance_tpl.rb +0 -22
- data/spec/recipes/OneFlowTemplate/delete/branch_from_one_id.rb +0 -17
- data/spec/recipes/OneFlowTemplate/delete/branch_from_one_name.rb +0 -17
- data/spec/recipes/OneFlowTemplate/delete/role_action_instance.rb +0 -17
- data/spec/recipes/OneFlowTemplate/delete/simple_from_file.rb +0 -17
- data/spec/recipes/OneFlowTemplate/delete/simple_from_hash.rb +0 -17
- data/spec/recipes/OneFlowTemplate/delete/simple_from_web.rb +0 -17
- data/spec/recipes/OneFlowTemplate/delete/simple_instance_tpl.rb +0 -17
- data/spec/recipes/OneFlowTemplate/delete/tpl_opts_from_file.rb +0 -17
- data/spec/recipes/OneFlowTemplate/delete/tpl_opts_from_hash.rb +0 -17
- data/spec/support/opennebula_support.rb +0 -129
@@ -1,23 +0,0 @@
|
|
1
|
-
# Copyright 2016, BlackBerry Limited
|
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
|
-
machine 'OpenNebula-test-vm' do
|
16
|
-
machine_options MACHINE_OPTIONS.merge(
|
17
|
-
:bootstrap_options => {
|
18
|
-
:template_name => 'OpenNebula-test-tpl-mix'
|
19
|
-
}
|
20
|
-
)
|
21
|
-
driver DRIVER_URL_2
|
22
|
-
action :allocate
|
23
|
-
end
|
@@ -1,38 +0,0 @@
|
|
1
|
-
# Copyright 2016, BlackBerry Limited
|
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
|
-
def i?(s)
|
16
|
-
!!(s =~ /\A[-+]?[0-9]+\z/)
|
17
|
-
end
|
18
|
-
|
19
|
-
# supports Hash, Array
|
20
|
-
def primitive_strings_to_ints(data)
|
21
|
-
case data
|
22
|
-
when Hash
|
23
|
-
data.map { |k, v| [k, primitive_strings_to_ints(v)] }.to_h
|
24
|
-
when Array
|
25
|
-
data.map { |x| primitive_strings_to_ints(x) }
|
26
|
-
when String
|
27
|
-
i?(data) ? data.to_i : data
|
28
|
-
else
|
29
|
-
data
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
vm_template = primitive_strings_to_ints(VM_TEMPLATE)
|
34
|
-
|
35
|
-
one_template 'OpenNebula-test-tpl-ints' do
|
36
|
-
template vm_template
|
37
|
-
action :create
|
38
|
-
end
|
@@ -1,51 +0,0 @@
|
|
1
|
-
# Copyright 2016, BlackBerry Limited
|
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
|
-
def i?(s)
|
16
|
-
!!(s =~ /\A[-+]?[0-9]+\z/)
|
17
|
-
end
|
18
|
-
|
19
|
-
@n = 0
|
20
|
-
def int_or_str?
|
21
|
-
@n += 1
|
22
|
-
@n.even? ? :int : :string
|
23
|
-
end
|
24
|
-
|
25
|
-
# supports Hash, Array
|
26
|
-
def mix_ints_and_strings(data)
|
27
|
-
case data
|
28
|
-
when Hash
|
29
|
-
data.map { |k, v| [k, mix_ints_and_strings(v)] }.to_h
|
30
|
-
when Array
|
31
|
-
data.map { |x| mix_ints_and_strings(x) }
|
32
|
-
when String
|
33
|
-
if i?(data)
|
34
|
-
int_or_str? == :int ? data.to_i : data
|
35
|
-
else
|
36
|
-
data
|
37
|
-
end
|
38
|
-
when Fixnum
|
39
|
-
int_or_str? == :string ? data.to_s : data
|
40
|
-
else
|
41
|
-
data
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
vm_template = mix_ints_and_strings(VM_TEMPLATE)
|
46
|
-
|
47
|
-
one_template 'OpenNebula-test-tpl-mix' do
|
48
|
-
template vm_template
|
49
|
-
mode '666'
|
50
|
-
action :create
|
51
|
-
end
|
@@ -1,34 +0,0 @@
|
|
1
|
-
# Copyright 2016, BlackBerry Limited
|
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
|
-
# supports Hash, Array
|
16
|
-
def ints_to_strings(data)
|
17
|
-
case data
|
18
|
-
when Hash
|
19
|
-
data.map { |k, v| [k, ints_to_strings(v)] }.to_h
|
20
|
-
when Array
|
21
|
-
data.map { |x| ints_to_strings(x) }
|
22
|
-
when Fixnum
|
23
|
-
data.to_s
|
24
|
-
else
|
25
|
-
data
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
vm_template = ints_to_strings(VM_TEMPLATE)
|
30
|
-
|
31
|
-
one_template 'OpenNebula-test-tpl-strings' do
|
32
|
-
template vm_template
|
33
|
-
action :create
|
34
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
# Copyright 2016, BlackBerry Limited
|
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
|
-
machine 'OpenNebula-test-vm' do
|
16
|
-
machine_options MACHINE_OPTIONS.merge(
|
17
|
-
:bootstrap_options => {
|
18
|
-
:template_name => 'OpenNebula-test-tpl-mix'
|
19
|
-
}
|
20
|
-
)
|
21
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# Copyright 2016, BlackBerry Limited
|
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
|
-
one_flow_service 'test_role_action' do
|
16
|
-
role 'delete'
|
17
|
-
action :delete
|
18
|
-
end
|
@@ -1,31 +0,0 @@
|
|
1
|
-
# Copyright 2016, BlackBerry Limited
|
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
|
-
one_flow_service 'test_instance_template_options' do
|
16
|
-
template 'test_simple_instance_tpl'
|
17
|
-
template_options :name => 'gary',
|
18
|
-
:deployment => 'none',
|
19
|
-
:roles => [
|
20
|
-
{
|
21
|
-
:name => 'gary_ubuntu',
|
22
|
-
:delete_role => true
|
23
|
-
},
|
24
|
-
{
|
25
|
-
:name => 'gary_ubuntu_new',
|
26
|
-
:vm_template => 'OpenNebula-test-tpl-strings'
|
27
|
-
}
|
28
|
-
]
|
29
|
-
mode '644'
|
30
|
-
action :instantiate
|
31
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# Copyright 2016, BlackBerry Limited
|
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
|
-
one_flow_service 'test_instance_template_options' do
|
16
|
-
action :delete
|
17
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# Copyright 2016, BlackBerry Limited
|
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
|
-
one_flow_service 'test_simple_instance' do
|
16
|
-
action :delete
|
17
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# Copyright 2016, BlackBerry Limited
|
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
|
-
one_flow_service 'test_simple_instance_by_id' do
|
16
|
-
action :delete
|
17
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# Copyright 2016, BlackBerry Limited
|
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
|
-
one_flow_template 'gary' do
|
16
|
-
name 'test_simple_from_file'
|
17
|
-
template 'file:///tmp/one_rspec_test.json'
|
18
|
-
mode '666'
|
19
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# Copyright 2016, BlackBerry Limited
|
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
|
-
one_flow_template 'gary' do
|
16
|
-
name 'gary2'
|
17
|
-
template 'test_simple_from_hash'
|
18
|
-
template_options :name => 'test_branch_from_one_name',
|
19
|
-
:description => 'my description is very descriptive'
|
20
|
-
end
|
@@ -1,99 +0,0 @@
|
|
1
|
-
# Copyright 2016, BlackBerry Limited
|
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
|
-
one_flow_template 'test_role_action_instance' do
|
16
|
-
template :roles => [
|
17
|
-
{
|
18
|
-
:name => 'shutdown',
|
19
|
-
:vm_template => 'OpenNebula-test-tpl-strings',
|
20
|
-
:cooldown => 10
|
21
|
-
},
|
22
|
-
{
|
23
|
-
:name => 'shutdown_hard',
|
24
|
-
:vm_template => 'OpenNebula-test-tpl-strings',
|
25
|
-
:cooldown => 10
|
26
|
-
},
|
27
|
-
{
|
28
|
-
:name => 'undeploy',
|
29
|
-
:vm_template => 'OpenNebula-test-tpl-strings',
|
30
|
-
:cooldown => 10
|
31
|
-
},
|
32
|
-
{
|
33
|
-
:name => 'undeploy_hard',
|
34
|
-
:vm_template => 'OpenNebula-test-tpl-strings',
|
35
|
-
:cooldown => 10
|
36
|
-
},
|
37
|
-
{
|
38
|
-
:name => 'hold',
|
39
|
-
:vm_template => 'OpenNebula-test-tpl-strings',
|
40
|
-
:cooldown => 10
|
41
|
-
},
|
42
|
-
{
|
43
|
-
:name => 'release',
|
44
|
-
:vm_template => 'OpenNebula-test-tpl-strings',
|
45
|
-
:cooldown => 10
|
46
|
-
},
|
47
|
-
{
|
48
|
-
:name => 'stop',
|
49
|
-
:vm_template => 'OpenNebula-test-tpl-strings',
|
50
|
-
:cooldown => 10
|
51
|
-
},
|
52
|
-
{
|
53
|
-
:name => 'suspend_resume',
|
54
|
-
:vm_template => 'OpenNebula-test-tpl-strings',
|
55
|
-
:cooldown => 10
|
56
|
-
},
|
57
|
-
{
|
58
|
-
:name => 'boot',
|
59
|
-
:vm_template => 'OpenNebula-test-tpl-strings',
|
60
|
-
:cooldown => 10
|
61
|
-
},
|
62
|
-
{
|
63
|
-
:name => 'delete',
|
64
|
-
:vm_template => 'OpenNebula-test-tpl-strings',
|
65
|
-
:cooldown => 10
|
66
|
-
},
|
67
|
-
{
|
68
|
-
:name => 'delete_recreate',
|
69
|
-
:vm_template => 'OpenNebula-test-tpl-strings',
|
70
|
-
:cooldown => 10
|
71
|
-
},
|
72
|
-
{
|
73
|
-
:name => 'reboot',
|
74
|
-
:vm_template => 'OpenNebula-test-tpl-strings',
|
75
|
-
:cooldown => 10
|
76
|
-
},
|
77
|
-
{
|
78
|
-
:name => 'reboot_hard',
|
79
|
-
:vm_template => 'OpenNebula-test-tpl-strings',
|
80
|
-
:cooldown => 10
|
81
|
-
},
|
82
|
-
{
|
83
|
-
:name => 'poweroff',
|
84
|
-
:vm_template => 'OpenNebula-test-tpl-strings',
|
85
|
-
:cooldown => 10
|
86
|
-
},
|
87
|
-
{
|
88
|
-
:name => 'poweroff_hard',
|
89
|
-
:vm_template => 'OpenNebula-test-tpl-strings',
|
90
|
-
:cooldown => 10
|
91
|
-
},
|
92
|
-
{
|
93
|
-
:name => 'do_not_instance',
|
94
|
-
:vm_template => 'OpenNebula-test-tpl-strings',
|
95
|
-
:cooldown => 10
|
96
|
-
}
|
97
|
-
]
|
98
|
-
action :create
|
99
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# Copyright 2016, BlackBerry Limited
|
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
|
-
one_flow_template 'gary' do
|
16
|
-
name 'test_simple_from_file'
|
17
|
-
template 'file:///tmp/one_rspec_test.json'
|
18
|
-
end
|