generated from microsoft/AzureTRE-Deployment
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from OxBRCInformatics/feature/bignewfeature
Add custom VM templates to prod - feature/bignewfeature
- Loading branch information
Showing
75 changed files
with
3,866 additions
and
8 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
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 |
---|---|---|
|
@@ -419,3 +419,8 @@ FodyWeavers.xsd | |
|
||
# Local .terraform directories | ||
**/.terraform/* | ||
|
||
|
||
letsencrypt/ | ||
index.html | ||
validation.txt |
11 changes: 11 additions & 0 deletions
11
...es/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm-ouh2/.dockerignore
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,11 @@ | ||
# Local .terraform directories | ||
**/.terraform/* | ||
|
||
# TF backend files | ||
**/*_backend.tf | ||
|
||
Dockerfile.tmpl | ||
|
||
.env* | ||
terraform/deploy.sh | ||
terraform/destroy.sh |
5 changes: 5 additions & 0 deletions
5
...ates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm-ouh2/.env.sample
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,5 @@ | ||
# GUID to identify the workspace | ||
WORKSPACE_ID=__CHANGE_ME__ | ||
|
||
# Unique identifier of the parent Guacamole service | ||
PARENT_SERVICE_ID=__CHANGE_ME__ |
9 changes: 9 additions & 0 deletions
9
.../workspace_services/guacamole/user_resources/guacamole-azure-linuxvm-ouh2/Dockerfile.tmpl
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,9 @@ | ||
# syntax=docker/dockerfile-upstream:1.4.0 | ||
FROM debian:bullseye-slim | ||
|
||
# PORTER_INIT | ||
|
||
# PORTER_MIXINS | ||
|
||
# Use the BUNDLE_DIR build argument to copy files into the bundle | ||
COPY --link . ${BUNDLE_DIR}/ |
35 changes: 35 additions & 0 deletions
35
...ce_services/guacamole/user_resources/guacamole-azure-linuxvm-ouh2/delete_vm_extensions.sh
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,35 @@ | ||
#!/bin/bash | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o nounset | ||
# Uncomment this line to see each command for debugging | ||
# set -o xtrace | ||
|
||
|
||
|
||
# Delete any existing VM Extensions befroe a VM gets deleted. | ||
# This is needed to work around bug https://github.com/hashicorp/terraform-provider-azurerm/issues/6098 | ||
|
||
MGMT_RESOURCE_GROUP_NAME=$1 | ||
MGMT_STORAGE_ACCOUNT_NAME=$2 | ||
TF_STATE_CONTAINER_NAME=$3 | ||
ID=$4 | ||
|
||
pushd terraform | ||
|
||
terraform init -input=false -backend=true \ | ||
-backend-config="resource_group_name=${MGMT_RESOURCE_GROUP_NAME}" \ | ||
-backend-config="storage_account_name=${MGMT_STORAGE_ACCOUNT_NAME}" \ | ||
-backend-config="container_name=${TF_STATE_CONTAINER_NAME}" \ | ||
-backend-config="key=${ID}" | ||
|
||
echo "Running terraform state list" | ||
tf_state_list="$(terraform state list)" | ||
echo "State list result: ${tf_state_list}" | ||
|
||
# The [[ $? == 1 ]] part is here because grep will exit with code 1 if there are no matches, | ||
# which will fail the script because of set -o errexit setting. | ||
echo "${tf_state_list}" | { grep "azurerm_virtual_machine_extension." || [[ $? == 1 ]]; } | xargs -r terraform state rm | ||
echo "Script finished" | ||
popd |
92 changes: 92 additions & 0 deletions
92
.../workspace_services/guacamole/user_resources/guacamole-azure-linuxvm-ouh2/parameters.json
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,92 @@ | ||
{ | ||
"schemaType": "ParameterSet", | ||
"schemaVersion": "1.0.1", | ||
"namespace": "", | ||
"name": "tre-service-guacamole-linuxvm", | ||
"parameters": [ | ||
{ | ||
"name": "workspace_id", | ||
"source": { | ||
"env": "WORKSPACE_ID" | ||
} | ||
}, | ||
{ | ||
"name": "parent_service_id", | ||
"source": { | ||
"env": "PARENT_SERVICE_ID" | ||
} | ||
}, | ||
{ | ||
"name": "tre_id", | ||
"source": { | ||
"env": "TRE_ID" | ||
} | ||
}, | ||
{ | ||
"name": "tfstate_container_name", | ||
"source": { | ||
"env": "TERRAFORM_STATE_CONTAINER_NAME" | ||
} | ||
}, | ||
{ | ||
"name": "tfstate_resource_group_name", | ||
"source": { | ||
"env": "MGMT_RESOURCE_GROUP_NAME" | ||
} | ||
}, | ||
{ | ||
"name": "tfstate_storage_account_name", | ||
"source": { | ||
"env": "MGMT_STORAGE_ACCOUNT_NAME" | ||
} | ||
}, | ||
{ | ||
"name": "id", | ||
"source": { | ||
"env": "ID" | ||
} | ||
}, | ||
{ | ||
"name": "os_image", | ||
"source": { | ||
"env": "OS_IMAGE" | ||
} | ||
}, | ||
{ | ||
"name": "shared_storage_access", | ||
"source": { | ||
"env": "SHARED_STORAGE_ACCESS" | ||
} | ||
}, | ||
{ | ||
"name": "shared_storage_name", | ||
"source": { | ||
"env": "SHARED_STORAGE_NAME" | ||
} | ||
}, | ||
{ | ||
"name": "vm_size", | ||
"source": { | ||
"env": "VM_SIZE" | ||
} | ||
}, | ||
{ | ||
"name": "image_gallery_id", | ||
"source": { | ||
"env": "IMAGE_GALLERY_ID" | ||
} | ||
}, | ||
{ | ||
"name": "azure_environment", | ||
"source": { | ||
"env": "AZURE_ENVIRONMENT" | ||
} | ||
}, | ||
{ | ||
"name": "arm_environment", | ||
"source": { | ||
"env": "ARM_ENVIRONMENT" | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.