Deploy a Secure Device Connector to vSphere Using Terraform
Before you begin
This procedure details how you can use the CDO SDC Terraform module for vSphere in conjunction with the CDO Terraform Provider to deploy an SDC to your vSphere. Ensure you review the following prerequisites before attempting to perform this task procedure:
-
You require a vSphere datacenter version 7 and above
-
You require an admin account on the datacenter with permissions to do the following:
-
Create VMs
-
Create folders
-
Create content libraries
-
Upload files to content libraries
-
-
Terraform knowledge
Procedure
Step 1 | Create an API-only user in CDO and copy the API token. To know how to create an API-only user, see Create API Only Users. |
Step 2 | Configure the CDO Terraform provider in your Terraform repository by following the instructions in CDO Terraform Provider. Example:
|
Step 3 | Write Terraform code to create a Example:
The |
Step 4 | Write Terraform code to create the SDC in vSphere using CDO_sdc Terraform module. Example:
Note that the VM created has two users—a |
Step 5 | Plan and apply your Terraform using See the CDO Automation Repository in the CiscoDevNet for a complete example. |
If your SDC stays in the onboarding state, connect to the vSphere VM using remote console, log in as the CDO user, and execute the following command:
sudo su
/opt/cdo/configure.sh startup
Note | The CDO Terraform modules are published as Open Source Software under the Apache 2.0 license. You can file issues on GitHub if you require support. |