9 changed files with 1 additions and 413 deletions
@ -1,45 +0,0 @@
|
||||
# Copyright (c) 2016-2017 Dell Inc, or its subsidiaries. |
||||
# |
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may |
||||
# not use this file except in compliance with the License. You may obtain |
||||
# a copy of the License at |
||||
# |
||||
# http://www.apache.org/licenses/LICENSE-2.0 |
||||
# |
||||
# Unless required by applicable law or agreed to in writing, software |
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
||||
# License for the specific language governing permissions and limitations |
||||
# under the License. |
||||
# |
||||
# == Class: tripleo::profile::base::cinder::volume::dellemc_vmax_iscsi |
||||
# |
||||
# Cinder Volume dellemc_vmax_iscsi profile for tripleo |
||||
# |
||||
# === Parameters |
||||
# |
||||
# [*backend_name*] |
||||
# (Optional) Name given to the Cinder backend stanza |
||||
# Defaults to 'tripleo_dellemc_vmax_iscsi' |
||||
# |
||||
# [*step*] |
||||
# (Optional) The current step in deployment. See tripleo-heat-templates |
||||
# for more details. |
||||
# Defaults to hiera('step') |
||||
# |
||||
class tripleo::profile::base::cinder::volume::dellemc_vmax_iscsi ( |
||||
$backend_name = hiera('cinder::backend::dellemc_vmax_iscsi::volume_backend_name', 'tripleo_dellemc_vmax_iscsi'), |
||||
$step = Integer(hiera('step')), |
||||
) { |
||||
include tripleo::profile::base::cinder::volume |
||||
|
||||
warning('The tripleo_dellemc_vmax_iscsi class is not supported, please use the triplo_dellemc_powermax resource instead.') |
||||
|
||||
if $step >= 4 { |
||||
create_resources('cinder::backend::dellemc_vmax_iscsi', { $backend_name => delete_undef_values({ |
||||
'backend_availability_zone' => hiera('cinder::backend::dellemc_vmax_iscsi::backend_availability_zone', undef), |
||||
'cinder_emc_config_file' => hiera('cinder::backend::dellemc_vmax_iscsi::cinder_emc_config_file', undef), |
||||
})}) |
||||
} |
||||
|
||||
} |
@ -1,57 +0,0 @@
|
||||
# Copyright (c) 2020 Dell Inc, or its subsidiaries. |
||||
# |
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may |
||||
# not use this file except in compliance with the License. You may obtain |
||||
# a copy of the License at |
||||
# |
||||
# http://www.apache.org/licenses/LICENSE-2.0 |
||||
# |
||||
# Unless required by applicable law or agreed to in writing, software |
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
||||
# License for the specific language governing permissions and limitations |
||||
# under the License. |
||||
# |
||||
# == Class: tripleo::profile::base::cinder::volume::dellemc_vxflexos |
||||
# |
||||
# Cinder Volume dellemc_vxflexos profile for tripleo |
||||
# |
||||
# === Parameters |
||||
# |
||||
# [*backend_name*] |
||||
# (Optional) Name given to the Cinder backend stanza |
||||
# Defaults to 'tripleo_dellemc_vxflexos' |
||||
# |
||||
# [*step*] |
||||
# (Optional) The current step in deployment. See tripleo-heat-templates |
||||
# for more details. |
||||
# Defaults to hiera('step') |
||||
# |
||||
class tripleo::profile::base::cinder::volume::dellemc_vxflexos ( |
||||
$backend_name = hiera('cinder::backend::dellemc_vxflexos::volume_backend_name', 'tripleo_dellemc_vxflexos'), |
||||
$step = Integer(hiera('step')), |
||||
) { |
||||
include tripleo::profile::base::cinder::volume |
||||
|
||||
warning('The dellemc_vxflexos class will be removed in W-Release, please use dellemc_powerflex instead.') |
||||
|
||||
if $step >= 4 { |
||||
create_resources('cinder::backend::dellemc_vxflexos', { $backend_name => delete_undef_values({ |
||||
'backend_availability_zone' => hiera('cinder::backend::dellemc_vxflexos::backend_availability_zone', undef), |
||||
'san_login' => hiera('cinder::backend::dellemc_vxflexos::san_login', undef), |
||||
'san_password' => hiera('cinder::backend::dellemc_vxflexos::san_password', undef), |
||||
'san_ip' => hiera('cinder::backend::dellemc_vxflexos::san_ip', undef), |
||||
'vxflexos_storage_pools' => hiera('cinder::backend::dellemc_vxflexos::vxflexos_storage_pools', undef), |
||||
'vxflexos_allow_migration_during_rebuild' => hiera('cinder::backend::dellemc_vxflexos::vxflexos_allow_migration_during_rebuild', undef), |
||||
'vxflexos_allow_non_padded_volumes' => hiera('cinder::backend::dellemc_vxflexos::vxflexos_allow_non_padded_volumes', undef), |
||||
'vxflexos_max_over_subscription_ratio' => hiera('cinder::backend::dellemc_vxflexos::vxflexos_max_over_subscription_ratio', undef), |
||||
'vxflexos_rest_server_port' => hiera('cinder::backend::dellemc_vxflexos::vxflexos_rest_server_port', undef), |
||||
'vxflexos_round_volume_capacity' => hiera('cinder::backend::dellemc_vxflexos::vxflexos_round_volume_capacity', undef), |
||||
'vxflexos_server_api_version' => hiera('cinder::backend::dellemc_vxflexos::vxflexos_server_api_version', undef), |
||||
'vxflexos_unmap_volume_before_deletion' => hiera('cinder::backend::dellemc_vxflexos::vxflexos_unmap_volume_before_deletion', undef), |
||||
'san_thin_provision' => hiera('cinder::backend::dellemc_vxflexos::san_thin_provision', undef), |
||||
'driver_ssl_cert_verify' => hiera('cinder::backend::dellemc_vxflexos::driver_ssl_cert_verify', undef), |
||||
'driver_ssl_cert_path' => hiera('cinder::backend::dellemc_vxflexos::driver_ssl_cert_path', undef) |
||||
})}) |
||||
} |
||||
} |
@ -1,60 +0,0 @@
|
||||
# Copyright 2016 Red Hat, Inc. |
||||
# |
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may |
||||
# not use this file except in compliance with the License. You may obtain |
||||
# a copy of the License at |
||||
# |
||||
# http://www.apache.org/licenses/LICENSE-2.0 |
||||
# |
||||
# Unless required by applicable law or agreed to in writing, software |
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
||||
# License for the specific language governing permissions and limitations |
||||
# under the License. |
||||
# |
||||
# == Class: tripleo::profile::base::cinder::volume::scaleio |
||||
# |
||||
# Cinder Volume scaleio profile for tripleo |
||||
# |
||||
# === Parameters |
||||
# |
||||
# [*backend_name*] |
||||
# (Optional) Name given to the Cinder backend stanza |
||||
# Defaults to 'tripleo_scaleio' |
||||
# |
||||
# [*step*] |
||||
# (Optional) The current step in deployment. See tripleo-heat-templates |
||||
# for more details. |
||||
# Defaults to hiera('step') |
||||
# |
||||
class tripleo::profile::base::cinder::volume::scaleio ( |
||||
$backend_name = hiera('cinder::backend::scaleio::volume_backend_name', 'tripleo_scaleio'), |
||||
$step = Integer(hiera('step')), |
||||
) { |
||||
include tripleo::profile::base::cinder::volume |
||||
|
||||
|
||||
warning('The scaleio class will be removed in W-Release, please use the dellemc_vxflexos resource instead.') |
||||
|
||||
if $step >= 4 { |
||||
create_resources('cinder::backend::scaleio', { $backend_name => delete_undef_values({ |
||||
'backend_availability_zone' => hiera('cinder::backend::scaleio::backend_availability_zone', undef), |
||||
'sio_login' => hiera('cinder::backend::scaleio::sio_login', undef), |
||||
'sio_password' => hiera('cinder::backend::scaleio::sio_password', undef), |
||||
'sio_server_hostname' => hiera('cinder::backend::scaleio::sio_server_hostname', undef), |
||||
'sio_server_port' => hiera('cinder::backend::scaleio::sio_server_port', undef), |
||||
'sio_verify_server_certificate' => hiera('cinder::backend::scaleio::sio_verify_server_certificate', undef), |
||||
'sio_server_certificate_path' => hiera('cinder::backend::scaleio::sio_server_certificate_path', undef), |
||||
'sio_protection_domain_name' => hiera('cinder::backend::scaleio::sio_protection_domain_name', undef), |
||||
'sio_protection_domain_id' => hiera('cinder::backend::scaleio::sio_protection_domain_id', undef), |
||||
'sio_storage_pool_id' => hiera('cinder::backend::scaleio::sio_storage_pool_id', undef), |
||||
'sio_storage_pool_name' => hiera('cinder::backend::scaleio::sio_storage_pool_name', undef), |
||||
'sio_storage_pools' => hiera('cinder::backend::scaleio::sio_storage_pools', undef), |
||||
'sio_round_volume_capacity' => hiera('cinder::backend::scaleio::sio_round_volume_capacity', undef), |
||||
'sio_unmap_volume_before_deletion' => hiera('cinder::backend::scaleio::sio_unmap_volume_before_deletion', undef), |
||||
'sio_max_over_subscription_ratio' => hiera('cinder::backend::scaleio::sio_max_over_subscription_ratio', undef), |
||||
'sio_thin_provision' => hiera('cinder::backend::scaleio::sio_thin_provision', undef), |
||||
})}) |
||||
} |
||||
|
||||
} |
@ -1,58 +0,0 @@
|
||||
# |
||||
# Copyright (C) 2016 Red Hat, Inc. |
||||
# |
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may |
||||
# not use this file except in compliance with the License. You may obtain |
||||
# a copy of the License at |
||||
# |
||||
# http://www.apache.org/licenses/LICENSE-2.0 |
||||
# |
||||
# Unless required by applicable law or agreed to in writing, software |
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
||||
# License for the specific language governing permissions and limitations |
||||
# under the License. |
||||
# |
||||
|
||||
require 'spec_helper' |
||||
|
||||
describe 'tripleo::profile::base::cinder::volume::scaleio' do |
||||
shared_examples_for 'tripleo::profile::base::cinder::volume::scaleio' do |
||||
before :each do |
||||
facts.merge!({ :step => params[:step] }) |
||||
end |
||||
|
||||
context 'with step less than 4' do |
||||
let(:params) { { :step => 3 } } |
||||
|
||||
it 'should do nothing' do |
||||
is_expected.to contain_class('tripleo::profile::base::cinder::volume::scaleio') |
||||
is_expected.to contain_class('tripleo::profile::base::cinder::volume') |
||||
is_expected.to contain_class('tripleo::profile::base::cinder') |
||||
is_expected.to_not contain_cinder__backend__scaleio('tripleo_scaleio') |
||||
end |
||||
end |
||||
|
||||
context 'with step 4' do |
||||
let(:params) { { |
||||
:step => 4, |
||||
} } |
||||
|
||||
it 'should trigger complete configuration' do |
||||
# TODO(aschultz): check hiera parameters |
||||
is_expected.to contain_cinder__backend__scaleio('tripleo_scaleio') |
||||
end |
||||
end |
||||
end |
||||
|
||||
|
||||
on_supported_os.each do |os, facts| |
||||
context "on #{os}" do |
||||
let(:facts) do |
||||
facts.merge({ :hostname => 'node.example.com' }) |
||||
end |
||||
|
||||
it_behaves_like 'tripleo::profile::base::cinder::volume::scaleio' |
||||
end |
||||
end |
||||
end |
@ -1,57 +0,0 @@
|
||||
# Copyright (c) 2016-2017 Dell Inc, or its subsidiaries |
||||
# |
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may |
||||
# not use this file except in compliance with the License. You may obtain |
||||
# a copy of the License at |
||||
# |
||||
# http://www.apache.org/licenses/LICENSE-2.0 |
||||
# |
||||
# Unless required by applicable law or agreed to in writing, software |
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
||||
# License for the specific language governing permissions and limitations |
||||
# under the License. |
||||
# |
||||
|
||||
require 'spec_helper' |
||||
|
||||
describe 'tripleo::profile::base::cinder::volume::dellemc_vmax_iscsi' do |
||||
shared_examples_for 'tripleo::profile::base::cinder::volume::dellemc_vmax_iscsi' do |
||||
before :each do |
||||
facts.merge!({ :step => params[:step] }) |
||||
end |
||||
|
||||
context 'with step less than 4' do |
||||
let(:params) { { :step => 3 } } |
||||
|
||||
it 'should do nothing' do |
||||
is_expected.to contain_class('tripleo::profile::base::cinder::volume::dellemc_vmax_iscsi') |
||||
is_expected.to contain_class('tripleo::profile::base::cinder::volume') |
||||
is_expected.to contain_class('tripleo::profile::base::cinder') |
||||
is_expected.to_not contain_cinder__backend__dellemc_vmax_iscsi('tripleo_dellemc_vmax_iscsi') |
||||
end |
||||
end |
||||
|
||||
context 'with step 4' do |
||||
let(:params) { { |
||||
:step => 4, |
||||
} } |
||||
|
||||
it 'should trigger complete configuration' do |
||||
# TODO(aschultz): check hiera parameters |
||||
is_expected.to contain_cinder__backend__dellemc_vmax_iscsi('tripleo_dellemc_vmax_iscsi') |
||||
end |
||||
end |
||||
end |
||||
|
||||
|
||||
on_supported_os.each do |os, facts| |
||||
context "on #{os}" do |
||||
let(:facts) do |
||||
facts.merge({ :hostname => 'node.example.com' }) |
||||
end |
||||
|
||||
it_behaves_like 'tripleo::profile::base::cinder::volume::dellemc_vmax_iscsi' |
||||
end |
||||
end |
||||
end |
@ -1,58 +0,0 @@
|
||||
# |
||||
# Copyright (c) 2020 Dell Inc, or its subsidiaries |
||||
# |
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may |
||||
# not use this file except in compliance with the License. You may obtain |
||||
# a copy of the License at |
||||
# |
||||
# http://www.apache.org/licenses/LICENSE-2.0 |
||||
# |
||||
# Unless required by applicable law or agreed to in writing, software |
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
||||
# License for the specific language governing permissions and limitations |
||||
# under the License. |
||||
# |
||||
|
||||
require 'spec_helper' |
||||
|
||||
describe 'tripleo::profile::base::cinder::volume::dellemc_vxflexos' do |
||||
shared_examples_for 'tripleo::profile::base::cinder::volume::dellemc_vxflexos' do |
||||
before :each do |
||||
facts.merge!({ :step => params[:step] }) |
||||
end |
||||
|
||||
context 'with step less than 4' do |
||||
let(:params) { { :step => 3 } } |
||||
|
||||
it 'should do nothing' do |
||||
is_expected.to contain_class('tripleo::profile::base::cinder::volume::dellemc_vxflexos') |
||||
is_expected.to contain_class('tripleo::profile::base::cinder::volume') |
||||
is_expected.to contain_class('tripleo::profile::base::cinder') |
||||
is_expected.to_not contain_cinder__backend__dellemc_vxflexos('tripleo_dellemc_vxflexos') |
||||
end |
||||
end |
||||
|
||||
context 'with step 4' do |
||||
let(:params) { { |
||||
:step => 4, |
||||
} } |
||||
|
||||
it 'should trigger complete configuration' do |
||||
# TODO(aschultz): check hiera parameters |
||||
is_expected.to contain_cinder__backend__dellemc_vxflexos('tripleo_dellemc_vxflexos') |
||||
end |
||||
end |
||||
end |
||||
|
||||
|
||||
on_supported_os.each do |os, facts| |
||||
context "on #{os}" do |
||||
let(:facts) do |
||||
facts.merge({ :hostname => 'node.example.com' }) |
||||
end |
||||
|
||||
it_behaves_like 'tripleo::profile::base::cinder::volume::dellemc_vxflexos' |
||||
end |
||||
end |
||||
end |
Loading…
Reference in new issue