Skip to content

Commit a87e450

Browse files
authored
Merge pull request #2 from data-platform-hq/fix-script
fix: updated prerequisite script; added tls_key output
2 parents 7bffe2e + c958e70 commit a87e450

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,11 @@ module "ado_vmss_agent_pool" {
7272

7373
## Outputs
7474

75-
| Name | Description |
76-
| ----------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- |
77-
| <a name="output_vmss_id"></a> [vmss\_id](#output\_vmss\_id) | VM Scale Sets id |
78-
| <a name="output_public_ip_prefix"></a> [public\_ip\_prefix](#output\_public\_ip\_prefix) | Public IP Address Prefix CIDR |
75+
| Name | Description |
76+
|------------------------------------------------------------------------------------------|---------------------------------|
77+
| <a name="output_vmss_id"></a> [vmss\_id](#output\_vmss\_id) | VM Scale Sets id |
78+
| <a name="output_public_ip_prefix"></a> [public\_ip\_prefix](#output\_public\_ip\_prefix) | Public IP Address Prefix CIDR |
79+
| <a name="output_tls_key"></a> [tls\_key](#output\_tls\_key) | SSH Key for VMSS authorization |
7980

8081
<!-- END_TF_DOCS -->
8182

main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module "vmss" {
1818
type = "CustomScript"
1919
type_handler_version = "2.0"
2020
settings = jsonencode({
21-
"script" : (base64encode("apt-get update -y && apt-get upgrade -y; apt-get -y install unzip"))
21+
"script" : (base64encode("apt-get update -y && apt-get upgrade -y && apt-get install unzip -y"))
2222
})
2323
}]
2424
}

outputs.tf

+8
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,11 @@ output "public_ip_prefix" {
77
value = module.vmss.public_ips
88
description = "Public IP Address Prefix CIDR"
99
}
10+
11+
output "tls_key" {
12+
value = {
13+
public_key = tls_private_key.this.public_key_openssh
14+
private_key = tls_private_key.this.private_key_openssh
15+
}
16+
description = "SSH Key for VMSS authorization"
17+
}

0 commit comments

Comments
 (0)