Skip to content

gavin-scott/dell-compellent

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Dell Compellent

####Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with compellent module
  4. Limitations - OS compatibility, etc.

##Overview

The Compellent module manages the volumes and servers objects.

##Module Description

The compellent module is capable of creating/destroying volumes , creating/destroying server objects , adding/removing initiators to server objects and mapping/unmapping volumes with server objects.

##Setup

###Compellent JAVA SDK

As Puppet agent cannot be directly installed on the Compellent storage controller, it can either be managed from the Puppet Master server, or through an intermediate proxy system running a puppet agent. The requirements for the proxy system are as under:

  • Puppet 2.7.+
  • Compellent JAVA SDK

The Compellent JAVA libraries (CompCU-6.3.jar) can be downloaded directly from the Dell support site. (http://support.dell.com).

Note: A Dell Compellent support account is required to be able to download the SDK.

After downloading the SDK, the following files need to be copied to the Puppet Master:

CompCU-6.3.jar > [module dir]/compellent/lib/puppet/files/

Device Setup

To configure a Compellent storage device, the device type must be compellent. The device can either be configured within /etc/puppet/device.conf, or, preferably, create an individual config file for each device within a sub-folder. This is preferred, as it allows the user to run the puppet against individual devices, rather than all devices configured...

In order to run the puppet against a single device, you can use the following command:

puppet device --deviceconfig /etc/puppet/device/[device].conf

Example configuration /etc/puppet/device/compellent1.example.com.conf:

[compellent1.example.com]
  type compellent
  url https://root:secret@compellent1.example.com

Volume

###Description

The Volume type/provider supports the functionality to create and destroy the volumes on a Compellent storage.

####Summary of Properties

  1. name: (Required) This parameter defines the name of the volume that is to be created/destroyed.

  2. size: (Required) This parameter specifies the volume size. Enter the number of 512-byte blocks or the total byte size. To specify a total byte size, use k for kilobytes, m for megabytes, g for gigabytes, or t for terabytes.

  3. boot: If present, this parameter designates the mapped volume to be a boot volume.

  4. folder: This parameter specifies the name of an existing volume folder where a volume is to be created. In case the folder does not exists , a new folder is created.

  5. notes: This parameter specifies the notes for the volume. By default, no notes are included.

  6. replayprofile: This parameter specifies the replay profiles for the volume.

  7. storageprofile: This parameter specifies a storage profile for the volume.

  8. purge: This parameter indicates that the volume should be purged. If the purge option is not specified, the volume is still visible using the volume show command and contains the status of the Recycleded. The possible values for this parameter are "yes/no". The default value is "yes".

####Usage

The compellent storage volume module can be used by calling the Volume resource type from the init.pp, as shown in the example below:

  compellent::volume { 'FCDemoVolume':
            purge          => 'yes',
            size           => '20g',
            ensure         => 'present',
            boot           => false,
            volumefolder   => '',
            notes          => 'This is a FC Demo Volume',
            replayprofile  => 'Sample',
            storageprofile => 'Low Priority',
    }

Server

###Description

The Server type/provider supports the functionality to create and destroy the server object on a Compellent storage.

####Summary of Properties

  1. name: (Required) This parameter defines the server name that is to be created/destroyed.

  2. operatingsystem: (Required) This parameter defines the name of the operating system hosted on the server.

  3. serverfolder: This parameter defines the folder for the server.

  4. notes: This parameter defines the optional user notes associated with the server.

  5. wwn: (Required) This parameter defines a globally unique world wide name for the requested HBA.

####Usage

The compellent storage server module can be used by calling the server resource type from init.pp, as shown in the example below:

 compellent::server { 'HK4V5Y1':
            operatingsystem => 'VMWare ESX 5.1',
            ensure          => 'present',
            serverfolder    => '',
            notes           => '',
            wwn             => '21000024FF4ABE2E',
    }

volume_map

###Description

The volume_map type/provider supports the functionality to map a volume to a server object on a compellent storage.

####Summary of Properties

  1. name: (Required)This parameter defines the name of the volume that is to be mapped/unmapped.

  2. boot: If present, this parameter designates the mapped volume to be a boot volume. The possible values are "true/false".

  3. servername: (Required) This parameter defines the name of the server where the volume or volume view is to be mapped.

  4. serverfolder: This parameter defines the folder in which the server object is available.

  5. lun: (Required) This parameter defines the logical unit number (LUN) for the mapped volume.

  6. volumefolder: This parameter defines the folder in which the volume is present.

  7. localport: This parameter defines the world wide name (WWN) of the single local port to use for mapping, when the singlepath option is used.

  8. force: If this parameter is defined, it forces mapping, even if the mapping already exists. The possible values are: true/false.

  9. readonly: This parameter defines whether or not a map is read only. The possible values are: true/false.

  10. singlepath: This parameter indicates that only a single local port can be used for mapping. If omitted, all local ports are used for mapping. The possible values are: true/false.

####Usage

The compellent storage volume map module can be used by calling the volume_map resource type from init.pp, as shown in the example below:

compellent::volume_map { 'FCDemoVolume':
            ensure       => 'present',
            boot         => true,
            volumefolder => '',
            serverfolder => '',
            servername   => 'HK4V5Y1',
            lun          => '',
            localport    => '',
            force        => true,
            singlepath   => true,
            readonly     => true,
  }

hba

###Description

The hba type/provider supports the functionality to add/remove an hba from a server object on a Compellent storage.

####Summary of Properties

  1. name: (Required) This parameter defines the name of the server object upon which the HBA is to be added/removed.

  2. porttype: (Required) This parameter defines the transport type for all HBAs being added. This option is required if the manual flag is set. The possible values are:(FibreChannel/iSCSI).

  3. wwn: (Required)This parameter defines the HBA world wide names (WWNs) for the server.

  4. manual: This parameter sets an optional flag to configure the requested HBAs before the HBAs are discovered. If the WWN matches a known server port, then this flag is ignored. If this flag is present, then 'porttype' must also be specified. The possible values are: true/false).

  5. serverfolder: This parameter defines the folder name for the server object.

####Usage

The compellent storage hba module can be used by calling the hba resource type from init.pp, as shown in the example below:

 compellent::hba { 'HK4V5Y1':
            ensure       => 'present',
            serverfolder => '',
            porttype     => 'FiberChannel',
            wwn          => '21000024FF4ABE2F',
            manual       => true,
    }

##Limitations

This module has been tested on:

  • centos 6

Testing on other platforms cannot be guaranteed.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Ruby 94.0%
  • Puppet 6.0%