Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
Extra JMeter CLI commands variable (#48)
Browse files Browse the repository at this point in the history
* extra cli commands

* Updating terraform version docs
  • Loading branch information
allantargino authored Sep 10, 2020
1 parent 27d9fa3 commit 5e23e24
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
8 changes: 4 additions & 4 deletions docs/jmeter-pipeline-settings.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# JMeter Pipeline Settings

The pipeline uses Terraform 12.x to provision JMeter and its infrastructure on Azure.
The pipeline uses Terraform 0.13.x to provision JMeter and its infrastructure on Azure.

All environment variables that start with the prefix `TF_VAR` can be used by Terraform to fill the template. According to the [official docs](https://www.terraform.io/docs/commands/environment-variables.html#tf_var_name):

Expand Down Expand Up @@ -28,9 +28,9 @@ All the other variables can be set on a library group called `JMETER_TERRAFORM_S
| TF_VAR_JMETER_CONTROLLER_MEMORY | JMETER_CONTROLLER_MEMORY | 8.0 |
| TF_VAR_JMETER_DOCKER_IMAGE | JMETER_DOCKER_IMAGE | justb4/jmeter:5.1.1 |
| TF_VAR_JMETER_DOCKER_PORT | JMETER_DOCKER_PORT | 1099 |
| TF_VAR_JMETER_IMAGE_REGISTRY_SERVER | JMETER_IMAGE_REGISTRY_SERVER | |
| TF_VAR_JMETER_IMAGE_REGISTRY_USERNAME | JMETER_IMAGE_REGISTRY_USERNAME | |
| TF_VAR_JMETER_IMAGE_REGISTRY_PASSWORD | JMETER_IMAGE_REGISTRY_PASSWORD | |
| TF_VAR_JMETER_ACR_NAME | JMETER_ACR_NAME | |
| TF_VAR_JMETER_ACR_RESOURCE_GROUP_NAME | JMETER_ACR_RESOURCE_GROUP_NAME | |
| TF_VAR_JMETER_STORAGE_QUOTA_GIGABYTES | JMETER_STORAGE_QUOTA_GIGABYTES | 1 |
| TF_VAR_JMETER_RESULTS_FILE | JMETER_RESULTS_FILE | results.jtl |
| TF_VAR_JMETER_DASHBOARD_FOLDER | JMETER_DASHBOARD_FOLDER | dashboard |
| TF_VAR_JMETER_EXTRA_CLI_ARGUMENTS | JMETER_EXTRA_CLI_ARGUMENTS | |
2 changes: 1 addition & 1 deletion terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ resource "azurerm_container_group" "jmeter_controller" {
commands = [
"/bin/sh",
"-c",
"cd /jmeter; /entrypoint.sh -n -J server.rmi.ssl.disable=true -t ${var.JMETER_JMX_FILE} -l ${var.JMETER_RESULTS_FILE} -e -o ${var.JMETER_DASHBOARD_FOLDER} -R ${join(",", "${azurerm_container_group.jmeter_workers.*.ip_address}")}",
"cd /jmeter; /entrypoint.sh -n -J server.rmi.ssl.disable=true -t ${var.JMETER_JMX_FILE} -l ${var.JMETER_RESULTS_FILE} -e -o ${var.JMETER_DASHBOARD_FOLDER} -R ${join(",", "${azurerm_container_group.jmeter_workers.*.ip_address}")} ${var.JMETER_EXTRA_CLI_ARGUMENTS}",
]
}
}
5 changes: 5 additions & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,8 @@ variable "JMETER_DASHBOARD_FOLDER" {
type = string
default = "dashboard"
}

variable "JMETER_EXTRA_CLI_ARGUMENTS" {
type = string
default = ""
}

0 comments on commit 5e23e24

Please sign in to comment.