puppet-manila/manifests/share/hitachi_hnas.pp
Takashi Kajinami 585dfd182e Deprecate support for backend options in [DEFAULT] section
Recent manila requires these options configured in each backend section
to support multiple backends. The current implementation does not allow
users to use multiple types of backends (eg generic + netapp) and is
not aligned with the multi backend capability of Manila.

What is worse, the ::generic class now can't be used with the core
share class because of some core share options are defined in both.

Deprecate these classes to manage [DEFAULT] section to avoid further
confusion.

Change-Id: Iaef31b91b0f4d5724726ded177e2e107f40adf30
2024-10-17 12:38:52 +00:00

69 lines
2.1 KiB
Puppet

# == Class: manila::share::hitachi_hnas
#
# DEPRECATED !!
# Configures Manila to use the HITACHI NAS platform share driver
#
# === Parameters
#
# [*hitachi_hnas_user*]
# (required) Denotes the username credential used to manage HNAS through
# management interface.
#
# [*hitachi_hnas_password*]
# (required) Denotes the password credential used to manage HNAS through
# management interface.
#
# [*hitachi_hnas_ip*]
# (required) Denotes the IP address used to access HNAS through management
# interface.
#
# [*hitachi_hnas_evs_id*]
# (required) Denotes the identification number of the HNAS EVS data interface
#
# [*hitachi_hnas_evs_ip*]
# (required) Denotes the IP address of the HNAS EVS data interface
#
# [*hitachi_hnas_file_system_name*]
# (required) Denotes the hnas filesystem name used for volume provisioning
#
# [*driver_handles_share_servers*]
# (optional) Denotes whether the driver should handle the responsibility of
# managing share servers.
# Defaults to false.
#
# === Examples
#
# class { 'manila::share::hds_hnas':
# driver_handles_share_servers => false,
# hitachi_hnas_user => 'supervisor',
# hitachi_hnas_password => 'supervisor',
# hitachi_hnas_ip => '172.24.44.15',
# hitachi_hnas_evs_id => '1',
# hitachi_hnas_evs_ip => '10.0.1.20',
# hitachi_hnas_file_system_name => 'FS-Manila',
# }
#
class manila::share::hitachi_hnas (
$hitachi_hnas_user,
$hitachi_hnas_password,
$hitachi_hnas_ip,
$hitachi_hnas_evs_id,
$hitachi_hnas_evs_ip,
$hitachi_hnas_file_system_name,
$driver_handles_share_servers = false,
) {
warning("The manila::share::hitachi_hnas class is deprecated. \
Use the manila::backend::hitachi_hnas defined resource type.")
manila::backend::hitachi_hnas { 'DEFAULT':
driver_handles_share_servers => $driver_handles_share_servers,
hitachi_hnas_user => $hitachi_hnas_user,
hitachi_hnas_password => $hitachi_hnas_password,
hitachi_hnas_ip => $hitachi_hnas_ip,
hitachi_hnas_evs_id => $hitachi_hnas_evs_id,
hitachi_hnas_evs_ip => $hitachi_hnas_evs_ip,
hitachi_hnas_file_system_name => $hitachi_hnas_file_system_name,
}
}