Skip to content

Latest commit

 

History

History
91 lines (66 loc) · 4.03 KB

File metadata and controls

91 lines (66 loc) · 4.03 KB

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.

Requirements

Name Version
powerflex >=1.6.0

Providers

Name Version
powerflex >=1.6.0
random n/a
terraform n/a

Modules

No modules.

Resources

Name Type
powerflex_sdc_host.sdc_local_path resource
powerflex_sdc_host.sdc_remote_path resource
random_uuid.sdc_guid resource
terraform_data.sdc_pkg_local resource
terraform_data.sdc_pkg_remote resource

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) n/a yes
remote_host Stores the credentials for connecting to the remote Windows host.
object({
# Define the user attribute of the remote variable.
user = string
# Define the password attribute of the remote variable.
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.

Usage

module "sdc_host_win" {
  # Here source points to the sdc_host_win submodule in the modules folder. You can change the value to point it according to your usecase. 
  source = "../../modules/sdc_host_win"

  ip = var.ip
  remote_host = var.remote_host
  sdc_pkg = var.sdc_pkg
}

Please refer the SDC Host example here After providing proper values to all the attributes eg. using terraform.tfvars, then in that workspace, run

terraform init
terraform apply

After successful operation of above commands, to remove deployment, you need to execute:

terraform destroy