-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
d6360df
commit b2c1abc
Showing
7 changed files
with
165 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ logs/ | |
|
||
# Variable files | ||
terraform.tfvars | ||
local.tfvars | ||
|
||
# .tfstate files | ||
*.tfstate | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
module "aci-devops-agent" { | ||
source = "../../../" | ||
enable_vnet_integration = false | ||
create_resource_group = true | ||
linux_agents_configuration = { | ||
agent_name_prefix = "linuxagent-${var.random_suffix}" | ||
count = var.agents_count | ||
docker_image = var.agent_docker_image | ||
docker_tag = var.agent_docker_tag | ||
agent_pool_name = var.azure_devops_pool_name | ||
cpu = 1 | ||
memory = 4 | ||
} | ||
image_registry_credential = { | ||
username = var.docker_registry_username | ||
password = var.docker_registry_password | ||
server = var.docker_registry_url | ||
} | ||
resource_group_name = "rg-terraform-azure-devops-agents-e2e-tests-${var.random_suffix}" | ||
location = var.location | ||
azure_devops_org_name = var.azure_devops_org_name | ||
azure_devops_personal_access_token = var.azure_devops_personal_access_token | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
provider "azurerm" { | ||
features {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
variable azure_devops_org_name { | ||
type = string | ||
description = "The name of the Azure DevOps organization in which the containerized agents will be deployed (e.g. https://dev.azure.com/YOUR_ORGANIZATION_NAME, must exist)" | ||
} | ||
|
||
variable azure_devops_pool_name { | ||
type = string | ||
description = "The name of the Azure DevOps agent pool in which the containerized agents will be deployed (must exist)" | ||
} | ||
|
||
variable azure_devops_personal_access_token { | ||
type = string | ||
description = "The personal access token to use to connect to Azure DevOps (see https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/v2-windows?view=azure-devops#permissions)" | ||
} | ||
|
||
variable location { | ||
type = string | ||
description = "The Azure location to use" | ||
default = "westeurope" | ||
} | ||
|
||
variable agent_docker_image { | ||
type = string | ||
description = "The Docker image to use for the Linux agent" | ||
default = "jcorioland/aci-devops-agent" | ||
} | ||
|
||
variable agent_docker_tag { | ||
type = string | ||
description = "The Docker tag to use for the Linux agent" | ||
default = "0.2-linux" | ||
} | ||
|
||
variable agents_count { | ||
type = number | ||
description = "The number of agents to create" | ||
default = 2 | ||
} | ||
|
||
variable random_suffix { | ||
type = number | ||
description = "A random suffix for resources generated during the test" | ||
} | ||
|
||
variable docker_registry_url { | ||
type = string | ||
description = "The server URL of the Docker private registry" | ||
} | ||
|
||
variable docker_registry_username { | ||
type = string | ||
description = "The username of the Docker private registry" | ||
} | ||
|
||
variable docker_registry_password { | ||
type = string | ||
description = "The password of the Docker private registry" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters