Enable users to deploy workloads by importing the cloud templates, creating a content source, and sharing the cloud templates within a project in Service Broker.
-
Configure a Content Source for the Project in Service Broker
Provide access to vRealize Automation cloud templates to users by creating and configuring a content source for the project in Service Broker.
-
Share Cloud Templates from a Content Source in Service Broker
You can share cloud templates and content sources within a project to enable project members to deploy these cloud templates in supported cloud zones.
Provide access to vRealize Automation cloud templates to users by creating and configuring a content source for the project in Service Broker.
Important You cannot create more than one catalog source of the same type from the same project.
-
Log in to the vRealize Automation cloud services console at
https://<vra_fqdn>/csp/gateway/portal
with a user assigned the Service Broker Administrator service role. -
On the main navigation bar, click Services.
-
Under My services, click Service Broker.
-
Click the Content and policies tab.
-
In the navigation pane, click Content sources.
-
Click New and click the VMware cloud template card.
-
Configure the settings and click Validate.
Setting | Example Value |
---|---|
Name | Sample - Cloud Templates |
Description | Sample - Cloud Templates |
Source project | Sample |
- After the successful validation, click Create and import.
-
Navigate to the Terraform example in the repository.
cd terraform-examples/vra/vra-content-source
-
Duplicate the
terraform.tfvars.example
file toterraform.tfvars
in the directory.copy terraform.tfvars.example terraform.tfvars
-
Open the
terraform.tfvars
file, update the variables for your environment, and save the file. -
Initialize the current directory and the required Terraform providers.
terraform init
-
Create a Terraform plan and save the output to a file.
terraform plan -out=tfplan
-
Apply the Terraform plan.
terraform apply tfplan
You can share cloud templates and content sources within a project to enable project members to deploy these cloud templates in supported cloud zones.
-
Log in to the vRealize Automation cloud services console at
https://<vra_fqdn>/csp/gateway/portal
with a user assigned the Service Broker Administrator service role. -
On the main navigation bar, click Services.
-
Under My services, click Service Broker.
-
Click the Content and policies tab.
-
In the navigation pane, click Content sharing.
-
In the Search for a project text box, select the Sample project.
-
Click Add items.
-
On the Share items with Sample dialog box, from the Content sources drop-down menu, select Content sources, select the Sample - Cloud Templates template, and click Save.
-
Navigate to the Terraform example in the repository.
cd terraform-examples/vra/vra-content-item
-
Duplicate the
terraform.tfvars.example
file toterraform.tfvars
in the directory.copy terraform.tfvars.example 1terraform.tfvars1
-
Open the
terraform.tfvars
file, update the variables for your environment, and save the file. -
Initialize the current directory and the required Terraform providers.
terraform init
-
Create a Terraform plan and save the output to a file.
terraform plan -out=tfplan
-
Apply the Terraform plan.
terraform apply tfplan