summaryrefslogtreecommitdiffstats
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/profile/base/manila/api.pp13
-rw-r--r--manifests/profile/pacemaker/manila.pp23
2 files changed, 32 insertions, 4 deletions
diff --git a/manifests/profile/base/manila/api.pp b/manifests/profile/base/manila/api.pp
index a86c5b2..374479c 100644
--- a/manifests/profile/base/manila/api.pp
+++ b/manifests/profile/base/manila/api.pp
@@ -29,6 +29,7 @@
# [*backend_vmax_enabled*]
# (Optional) Whether or not the vmax backend is enabled
# Defaults to hiera('manila_backend_vmax_enabled', false)
+#
# [*backend_isilon_enabled*]
# (Optional) Whether or not the isilon backend is enabled
# Defaults to hiera('manila_backend_isilon_enabled', false)
@@ -37,6 +38,10 @@
# (Optional) Whether or not the unity backend is enabled
# Defaults to hiera('manila_backend_unity_enabled', false)
#
+# [*backend_vnx_enabled*]
+# (Optional) Whether or not the vnx backend is enabled
+# Defaults to hiera('manila_backend_vnx_enabled', false)
+#
# [*backend_cephfs_enabled*]
# (Optional) Whether or not the cephfs backend is enabled
# Defaults to hiera('manila_backend_cephfs_enabled', false)
@@ -56,6 +61,7 @@ class tripleo::profile::base::manila::api (
$backend_vmax_enabled = hiera('manila_backend_vmax_enabled', false),
$backend_isilon_enabled = hiera('manila_backend_isilon_enabled', false),
$backend_unity_enabled = hiera('manila_backend_unity_enabled', false),
+ $backend_vnx_enabled = hiera('manila_backend_vnx_enabled', false),
$backend_cephfs_enabled = hiera('manila_backend_cephfs_enabled', false),
$bootstrap_node = hiera('bootstrap_nodeid', undef),
$step = Integer(hiera('step')),
@@ -69,9 +75,10 @@ class tripleo::profile::base::manila::api (
include ::tripleo::profile::base::manila
if $step >= 4 or ($step >= 3 and $sync_db) {
- if $backend_generic_enabled or $backend_netapp_enabled or $backend_vmax_enabled or $backend_isilon_enabled or $backend_unity_enabled {
- $nfs_protocol = 'NFS'
- $cifs_protocol = 'CIFS'
+ if $backend_generic_enabled or $backend_netapp_enabled or $backend_vmax_enabled or
+ $backend_isilon_enabled or $backend_unity_enabled or $backend_vnx_enabled {
+ $nfs_protocol = 'NFS'
+ $cifs_protocol = 'CIFS'
} else {
$nfs_protocol = undef
$cifs_protocol = undef
diff --git a/manifests/profile/pacemaker/manila.pp b/manifests/profile/pacemaker/manila.pp
index d21c9c4..0af0a7b 100644
--- a/manifests/profile/pacemaker/manila.pp
+++ b/manifests/profile/pacemaker/manila.pp
@@ -46,6 +46,10 @@
# (Optional) The hostname of the node responsible for bootstrapping tasks
# Defaults to hiera('manila_share_short_bootstrap_node_name')
#
+# [*backend_vnx_enabled*]
+# (Optional) Whether or not the vnx backend is enabled
+# Defaults to hiera('manila_backend_vnx_enabled', false)
+#
# [*step*]
# (Optional) The current step in deployment. See tripleo-heat-templates
# for more details.
@@ -61,6 +65,7 @@ class tripleo::profile::pacemaker::manila (
$backend_vmax_enabled = hiera('manila_backend_vmax_enabled', false),
$backend_isilon_enabled = hiera('manila_backend_isilon_enabled', false),
$backend_unity_enabled = hiera('manila_backend_unity_enabled', false),
+ $backend_vnx_enabled = hiera('manila_backend_vnx_enabled', false),
$backend_cephfs_enabled = hiera('manila_backend_cephfs_enabled', false),
$bootstrap_node = hiera('manila_share_short_bootstrap_node_name'),
$step = Integer(hiera('step')),
@@ -196,6 +201,21 @@ class tripleo::profile::pacemaker::manila (
unity_ethernet_ports => hiera('manila::backend::dellemc_unity::unity_ethernet_ports'),
}
}
+ # manila vnx:
+ if $backend_vnx_enabled {
+ $manila_vnx_backend = hiera('manila::backend::dellemc_vnx::title')
+ manila::backend::dellemc_vnx { $manila_vnx_backend :
+ driver_handles_share_servers => hiera('manila::backend::dellemc_vnx::driver_handles_share_servers', false),
+ emc_nas_login => hiera('manila::backend::dellemc_vnx::emc_nas_login'),
+ emc_nas_password => hiera('manila::backend::dellemc_vnx::emc_nas_password'),
+ emc_nas_server => hiera('manila::backend::dellemc_vnx::emc_nas_server'),
+ emc_share_backend => hiera('manila::backend::dellemc_vnx::emc_share_backend','vnx'),
+ share_backend_name => hiera('manila::backend::dellemc_vnx::share_backend_name'),
+ vnx_server_container => hiera('manila::backend::dellemc_vnx::vnx_server_container'),
+ vnx_share_data_pools => hiera('manila::backend::dellemc_vnx::vnx_share_data_pools'),
+ vnx_ethernet_ports => hiera('manila::backend::dellemc_vnx::vnx_ethernet_ports'),
+ }
+ }
@@ -222,7 +242,8 @@ class tripleo::profile::pacemaker::manila (
$manila_netapp_backend,
$manila_vmax_backend,
$manila_isilon_backend,
- $manila_unity_backend
+ $manila_unity_backend,
+ $manila_vnx_backend
]
)
class { '::manila::backends' :