Windows SDC

SDC Host Module

This Terraform module installs the SDC package on a remote Windows host using the powerflex_sdc_host resource. It downloads the package either on local machine or remote (Windows) machine and deploys on Windows.

Example

main.tf

terraform {
  required_providers {
    powerflex = {
      version = ">=1.6.0"
      source  = "registry.terraform.io/dell/powerflex"
      }
    }
}

module "sdc_host_win" {
  source = "dell/modules/powerflex//modules/sdc_host_win"
  version = "x.x.x" //Grab the latest but for example 1.2.0
  
  name = "terraform-windows-sdc" // Update to the value you wish to name your SDC
  ip = "x.x.x.x" // Update to the IP of the VM which you want to install your SDC packages upon 
  remote_host = {
    user = "example-user" // Update to the username used to access the windows VM
    password = "example-password" // Update to the password used ot access the windows VM 
  }
  sdc_name = "terraform-sdc"// The name of the SDC will default to 'terraform-sdc'
  sdc_pkg = {
    url = "http://example.com/EMC-ScaleIO-sdc-4.6-x.x.msi" // URL to place where the sdc.msi file is hosted FTP Example: "ftp://username:password@ftpserver/path/to/EMC-ScaleIO-sdc-4.6-x.x.msi" # the name of the SDC package saved in local directory.
    pkg_name = "EMC-ScaleIO-sdc-4.6-x.x.msi" 
    local_dir = "/tmp" // Where the sdc_pkg will be downloaded
    use_remote_path = false // download and use the SDC package on remote machine path (where SDC is going to be deployed)
  }
}

Requirements

Name Version
powerflex >=1.6.0

Providers

No providers.

Modules

Name Source Version
sdc_host_win ../../modules/sdc_host_win n/a

Resources

No resources.

Inputs

Name Description Type Default Required
ip Stores the IP address of the remote Windows host. string n/a yes
mdm_ips all the mdms (either primary,secondary or virtual ips) in a comma separated list by cluster if unset will use the mdms of the cluster set in the provider block eg. [‘10.10.10.5,10.10.10.6’, ‘10.10.10.7,10.10.10.8’] list(string) [] no
remote_host Stores the credentials for connecting to the remote Windows host.
object({
# Define the user attribute of the remote variable.
user = string
password = string
})
n/a yes
sdc_pkg configuration for SDC package like url to download package from, copy as local package or at directory on remote server.
object({
# examples “http://example.com/EMC-ScaleIO-sdc-3.6-700.103.msi", “ftp://username:password@ftpserver/path/to/file”
url = string
# the name of the SDC package saved in local directory.
pkg_name = string
# the local directory where the SDC package will be downloaded.
local_dir = string
# download and use the SDC package on remote machine path (where SDC is going to be deployed)
use_remote_path = bool
})
n/a yes

Outputs

No outputs.