The commvault_install_ma Terraform Resource

Updated

On this page

Use the commvault_install_ma resource type to install or uninstall a MediaAgent in the CommCell environment.

Syntax

resource "commvault_install_ma" "<local_name>"

{

mediaagent_name = "<MediaAgent name>"

hostname = "<hostname of the MediaAgent computer>"

user_name = "<user name of the host computer used for installation>"

password = "<password for the user name of the host computer>" //Use a Base64 encoded password

}

Where local name is the name that is used by the Commvault Terraform module to refer to the resource and has no significance in the target platform.

Arguments

Name

Description

Required

mediaagent_name

The name of the MediaAgent.

Yes

hostname

The hostname of the computer where MediaAgent will be installed.

Yes

user_name

The user name of the host computer used for installation.

Yes

password

The password for the user name of the host computer.

Yes

company_id

The ID of the company that you want to associate the MediaAgent with.

No

Example

The following resource block manages the demoMA MediaAgent:

resource "commvault_install_ma" "installma"{

mediaagent_name = “demoMA”

hostname = “cvlt.mahostname.com”

user_name = “jdoe”

password = “Y29tbXZhdWx0”

}