-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* admin vm shared service * update changelog * tf formatting * fix * fix
- Loading branch information
1 parent
35791a5
commit a740a72
Showing
19 changed files
with
365 additions
and
75 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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.4.26" | ||
__version__ = "0.4.27" |
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,8 @@ | ||
# See https://docs.docker.com/engine/reference/builder/#dockerignore-file | ||
# Put files here that you don't want copied into your bundle's invocation image | ||
.gitignore | ||
**/.terraform/* | ||
**/*_backend.tf | ||
Dockerfile.tmpl | ||
terraform/deploy.sh | ||
terraform/destroy.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,26 @@ | ||
FROM debian:buster-slim | ||
|
||
ARG BUNDLE_DIR | ||
|
||
# This is a template Dockerfile for the bundle's invocation image | ||
# You can customize it to use different base images, install tools and copy configuration files. | ||
# | ||
# Porter will use it as a template and append lines to it for the mixins | ||
# and to set the CMD appropriately for the CNAB specification. | ||
# | ||
# Add the following line to porter.yaml to instruct Porter to use this template | ||
# dockerfile: Dockerfile.tmpl | ||
|
||
# You can control where the mixin's Dockerfile lines are inserted into this file by moving "# PORTER_MIXINS" line | ||
# another location in this file. If you remove that line, the mixins generated content is appended to this file. | ||
# PORTER_MIXINS | ||
|
||
# Use the BUNDLE_DIR build argument to copy files into the bundle | ||
COPY . $BUNDLE_DIR | ||
|
||
# Mirror plugins to prevent network access at runtime | ||
# Remove when available from https://github.com/getporter/terraform-mixin/issues/90 | ||
WORKDIR $BUNDLE_DIR/terraform | ||
RUN terraform init -backend=false \ | ||
&& rm -fr $BUNDLE_DIR/terraform/.terraform/providers \ | ||
&& terraform providers mirror /usr/local/share/terraform/plugins |
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,44 @@ | ||
{ | ||
"schemaVersion": "1.0.0-DRAFT+TODO", | ||
"name": "base", | ||
"created": "2021-06-04T13:37:29.5071039+03:00", | ||
"modified": "2021-06-04T13:37:29.5071039+03:00", | ||
"parameters": [ | ||
{ | ||
"name": "tre_id", | ||
"source": { | ||
"env": "TRE_ID" | ||
} | ||
}, | ||
{ | ||
"name": "id", | ||
"source": { | ||
"env": "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": "admin_jumpbox_vm_sku", | ||
"source": { | ||
"env": "ADMIN_JUMPBOX_VM_SKU" | ||
} | ||
} | ||
] | ||
} |
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,87 @@ | ||
--- | ||
name: tre-shared-service-admin-vm | ||
version: 0.1.0 | ||
description: "An admin vm shared service" | ||
dockerfile: Dockerfile.tmpl | ||
registry: azuretre | ||
|
||
credentials: | ||
- name: azure_tenant_id | ||
env: ARM_TENANT_ID | ||
- name: azure_subscription_id | ||
env: ARM_SUBSCRIPTION_ID | ||
- name: azure_client_id | ||
env: ARM_CLIENT_ID | ||
- name: azure_client_secret | ||
env: ARM_CLIENT_SECRET | ||
parameters: | ||
- name: tre_id | ||
type: string | ||
description: "The ID of the parent TRE instance e.g., mytre-dev-3142" | ||
- name: id | ||
type: string | ||
description: "Resource ID" | ||
- name: tfstate_resource_group_name | ||
type: string | ||
description: "Resource group containing the Terraform state storage account" | ||
- name: tfstate_storage_account_name | ||
type: string | ||
description: "The name of the Terraform state storage account" | ||
- name: tfstate_container_name | ||
type: string | ||
default: "tfstate" | ||
description: "The name of the Terraform state storage container" | ||
- name: arm_use_msi | ||
env: ARM_USE_MSI | ||
type: boolean | ||
default: false | ||
- name: admin_jumpbox_vm_sku | ||
env: ADMIN_JUMPBOX_VM_SKU | ||
type: string | ||
default: Standard_B2s | ||
|
||
mixins: | ||
- terraform: | ||
clientVersion: 1.2.9 | ||
|
||
install: | ||
- terraform: | ||
description: "Deploy shared service" | ||
input: false | ||
vars: | ||
tre_id: "{{ bundle.parameters.tre_id }}" | ||
tre_resource_id: "{{ bundle.parameters.id }}" | ||
admin_jumpbox_vm_sku: "{{ bundle.parameters.admin_jumpbox_vm_sku }}" | ||
backendConfig: | ||
resource_group_name: "{{ bundle.parameters.tfstate_resource_group_name }}" | ||
storage_account_name: "{{ bundle.parameters.tfstate_storage_account_name }}" | ||
container_name: "{{ bundle.parameters.tfstate_container_name }}" | ||
key: "{{ bundle.parameters.tre_id }}-shared-service-admin-vm" | ||
|
||
upgrade: | ||
- terraform: | ||
description: "Upgrade shared service" | ||
input: false | ||
vars: | ||
tre_id: "{{ bundle.parameters.tre_id }}" | ||
tre_resource_id: "{{ bundle.parameters.id }}" | ||
admin_jumpbox_vm_sku: "{{ bundle.parameters.admin_jumpbox_vm_sku }}" | ||
backendConfig: | ||
resource_group_name: "{{ bundle.parameters.tfstate_resource_group_name }}" | ||
storage_account_name: "{{ bundle.parameters.tfstate_storage_account_name }}" | ||
container_name: "{{ bundle.parameters.tfstate_container_name }}" | ||
key: "{{ bundle.parameters.tre_id }}-shared-service-admin-vm" | ||
|
||
uninstall: | ||
- terraform: | ||
description: "Tear down shared service" | ||
input: false | ||
vars: | ||
tre_id: "{{ bundle.parameters.tre_id }}" | ||
tre_resource_id: "{{ bundle.parameters.id }}" | ||
admin_jumpbox_vm_sku: "{{ bundle.parameters.admin_jumpbox_vm_sku }}" | ||
backendConfig: | ||
resource_group_name: "{{ bundle.parameters.tfstate_resource_group_name }}" | ||
storage_account_name: "{{ bundle.parameters.tfstate_storage_account_name }}" | ||
container_name: "{{ bundle.parameters.tfstate_container_name }}" | ||
key: "{{ bundle.parameters.tre_id }}-shared-service-admin-vm" |
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 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"$id": "https://github.com/microsoft/AzureTRE/templates/shared_services/admin-vm/template_schema.json", | ||
"type": "object", | ||
"title": "Admin VM Shared Service", | ||
"description": "Provides VM in the core network", | ||
"required": [], | ||
"properties": { | ||
"admin_jumpbox_vm_sku": { | ||
"$id": "#/properties/admin_jumpbox_vm_sku", | ||
"type": "string", | ||
"enum": [ | ||
"Standard_B2s", | ||
"Standard_D2s_v3", | ||
"Standard_D2s_v4", | ||
"Standard_D2s_v5" | ||
], | ||
"default": "Standard_B2s", | ||
"title": "VM SKU", | ||
"description": "The SKU of the VM that will be deployed." | ||
} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
templates/shared_services/admin-vm/terraform/.terraform.lock.hcl
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.