Puppet Class: manila::share::generic

Defined in:
manifests/share/generic.pp

Overview

Class: manila::share::generic

DEPRECATED !! Configures Manila to use the generic share driver

Parameters

driver_handles_share_servers

(required) Denotes whether the driver should handle the responsibility of managing share servers. This must be set to false if the driver is to operate without managing share servers.

smb_template_config_path

(optional) Path to smb config. Defaults to $facts

volume_name_template

(optional) Volume name template. Defaults to $facts

volume_snapshot_name_template

(optional) Volume snapshot name template. Defaults to $facts

share_mount_path

(optional) Parent path in service instance where shares will be mounted. Defaults to $facts

max_time_to_create_volume

(optional) Maximum time to wait for creating cinder volume. Defaults to $facts

max_time_to_attach

(optional) Maximum time to wait for attaching cinder volume. Defaults to $facts

service_instance_smb_config_path

(optional) Path to smb config in service instance. Defaults to $facts

share_volume_fstype

(optional) Filesystem type of the share volume. Choices: ‘ext4’, ‘ext3’ Defaults to $facts

share_helpers

(optional) Specify list of share export helpers. Defaults to $facts

cinder_volume_type

(optional) Name or id of cinder volume type which will be used for all volumes created by driver. Defaults to $facts

delete_share_server_with_last_share

(optional) With this option is set to True share server will be deleted on deletion of last share. Defaults to $facts

unmanage_remove_access_rules

(optional) If set to True, then manila will deny access and remove all access rules on share unmanage. If set to False - nothing will be changed. Defaults to $facts

automatic_share_server_cleanup

(optional) If set to True, then Manila will delete all share servers which were unused more than specified time. If set to False, automatic deletion of share servers will be disabled. Defaults to $facts

Parameters:

  • driver_handles_share_servers (Any)
  • smb_template_config_path (Any) (defaults to: $facts['os_service_default'])
  • volume_name_template (Any) (defaults to: $facts['os_service_default'])
  • volume_snapshot_name_template (Any) (defaults to: $facts['os_service_default'])
  • share_mount_path (Any) (defaults to: $facts['os_service_default'])
  • max_time_to_create_volume (Any) (defaults to: $facts['os_service_default'])
  • max_time_to_attach (Any) (defaults to: $facts['os_service_default'])
  • service_instance_smb_config_path (Any) (defaults to: $facts['os_service_default'])
  • share_volume_fstype (Any) (defaults to: $facts['os_service_default'])
  • share_helpers (Any) (defaults to: $facts['os_service_default'])
  • cinder_volume_type (Any) (defaults to: $facts['os_service_default'])
  • delete_share_server_with_last_share (Any) (defaults to: $facts['os_service_default'])
  • unmanage_remove_access_rules (Any) (defaults to: $facts['os_service_default'])
  • automatic_share_server_cleanup (Any) (defaults to: $facts['os_service_default'])


70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# File 'manifests/share/generic.pp', line 70

class manila::share::generic (
  $driver_handles_share_servers,
  $smb_template_config_path            = $facts['os_service_default'],
  $volume_name_template                = $facts['os_service_default'],
  $volume_snapshot_name_template       = $facts['os_service_default'],
  $share_mount_path                    = $facts['os_service_default'],
  $max_time_to_create_volume           = $facts['os_service_default'],
  $max_time_to_attach                  = $facts['os_service_default'],
  $service_instance_smb_config_path    = $facts['os_service_default'],
  $share_volume_fstype                 = $facts['os_service_default'],
  $share_helpers                       = $facts['os_service_default'],
  $cinder_volume_type                  = $facts['os_service_default'],
  $delete_share_server_with_last_share = $facts['os_service_default'],
  $unmanage_remove_access_rules        = $facts['os_service_default'],
  $automatic_share_server_cleanup      = $facts['os_service_default'],
) {

  warning("The manila::share::generic class is deprecated. \
Use the manila::backend::generic defined resource type.")

  manila::backend::generic { 'DEFAULT':
    driver_handles_share_servers        => $driver_handles_share_servers,
    smb_template_config_path            => $smb_template_config_path,
    volume_name_template                => $volume_name_template,
    volume_snapshot_name_template       => $volume_snapshot_name_template,
    share_mount_path                    => $share_mount_path,
    max_time_to_create_volume           => $max_time_to_create_volume,
    max_time_to_attach                  => $max_time_to_attach,
    service_instance_smb_config_path    => $service_instance_smb_config_path,
    share_helpers                       => $share_helpers,
    share_volume_fstype                 => $share_volume_fstype,
    cinder_volume_type                  => $cinder_volume_type,
    delete_share_server_with_last_share => $delete_share_server_with_last_share,
    unmanage_remove_access_rules        => $unmanage_remove_access_rules,
    automatic_share_server_cleanup      => $automatic_share_server_cleanup,
  }
}