Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 2.45 KB

File metadata and controls

46 lines (29 loc) · 2.45 KB

Private vsts linux build agent in Azure

This is a terraform script for creating and provisioning a private build server to be used on vsts

Example

module "build-agent" {
  source = "github.com/SOLIDSoftworks/terraform-azure-vsts-private-build-agent"

  arm_client_id         = "..."
  arm_client_secret     = "..."
  arm_tenant_id         = "..."
  arm_subscription_id   = "..."

  admin_username        = "..."
  admin_password        = "..."

  vsts_user                  = "..."
  vsts_personal_access_token = "..."
}

Variables

Required

arm_client_id: This is equivalent to client_id in the Terraform documentation for the Azure Resource Manager provider.

arm_client_secret: This is equivalent to client_secret in the Terraform documentation for the Azure Resource Manager provider.

arm_tenant_id: This is equivalent to tenant_id in the Terraform documentation for the Azure Resource Manager provider.

arm_subscription_id: This is equivalent to subscription_id in the Terraform documentation for the Azure Resource Manager provider.

admin_username: This is the admin username for the build agent.

admin_password: This is the admin password for the build agent.

vsts_user: This is your user on vsts.

vsts_personal_access_token: This is a personal access token that you can create on vsts. Documentation on this can be found on visualstudio.com

Optional

count: This is the amount of build agents you want to create. Defaults to 1.

name: This is the name of the build agent. Defaults to buildagent.

location: This is the location of the build agent on Azure. Defaults to East US. Be aware that changing this might break the terraform plan since the VM size is always set to Standard_DS1_v2. This should be set as a variable later.

vsts_agent_group: Sets what group the agent should be put into. Defaults to default