Skip to content

Commit

Permalink
Add basic instructions for deployment of acceptance test environment.
Browse files Browse the repository at this point in the history
Relates to #3.
  • Loading branch information
tintoy committed Jun 25, 2017
1 parent 1cfc90c commit 6b614b1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions acc-test-environment/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Acceptance test environment

This configuration creates (in Azure) the Octopus Deploy server used in Terraform acceptance tests.

You can create credentials for use in tests using the [Azure cross-platform CLI](https://www.terraform.io/docs/providers/azurerm/index.html#creating-credentials-using-the-azure-cli).

You'll need to supply a couple of values in `terraform.tfvars`:

* `azure_subscription_id` - The Id of your Azure subscription.
* `azure_client_id` - The client Id you created in the Azure CLI.
* `azure_client_secret` - The client secret you created in the Azure CLI.
* `azure_tenant_id` - The name of the Azure AD tenant that the subscription belongs to.

There are also a couple of option values in `main.tf` that you can override by supplying their values in `terraform.tfvars`:

* `region_name` - The name of the target region where you will be deploying the environment.
**Note** - the VM and the storage account _must_ be the same location.
* `resource_group_name` - The name of the resource group where the environment will be deployed (must already exist; the configuration will not create it).
* `storage_account_name` - The name of the Azure Storage account where VM disks (etc) will be stored.
* `uniqueness_key` - A unique value added to resource names so that your deployment doesn't clash with other deployments.
2 changes: 1 addition & 1 deletion acc-test-environment/network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ resource "azurerm_network_security_group" "default" {
access = "Allow"
protocol = "Tcp"
source_port_range = "*"
destination_port_range = "5985"
destination_port_range = "5985" # HTTP
source_address_prefix = "*"
destination_address_prefix = "*"
}
Expand Down

0 comments on commit 6b614b1

Please sign in to comment.