-
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.
- Loading branch information
ms
committed
Nov 6, 2024
1 parent
0ceef72
commit ef17956
Showing
18 changed files
with
70 additions
and
62 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.DS* | ||
.terraform* | ||
terraform* | ||
./id_rsa* | ||
id_* | ||
.vs* |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
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,14 +1,15 @@ | ||
output "vm_pip" { | ||
value = google_compute_address.static_ip.address | ||
description = "The public IP address of the virtual machine." | ||
value = google_compute_address.this.address | ||
} | ||
|
||
output "user" { | ||
value = var.user | ||
description = "The username used for the virtual machine." | ||
value = local.user | ||
} | ||
|
||
output "ssh" { | ||
value = join("", ["ssh -i ", local_file.ssh_private_key.filename, " ", var.user, "@", google_compute_address.static_ip.address, " -vv"]) | ||
description = "The SSH command to connect to the virtual machine." | ||
value = join("", ["ssh -i ", local_file.ssh_private_key.filename, " ", local.user, "@", google_compute_address.this.address, ""]) | ||
# value = join("", ["ssh -i ", local_file.ssh_private_key.filename, " ", local.user, "@", google_compute_address.this.address, " -vv"]) | ||
} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
- name: install firefox | ||
command: sudo snap install firefox | ||
register: firefox | ||
register: firefox_results | ||
- debug: | ||
msg: "{{ firefox.stdout }}" | ||
msg: "{{ firefox_results.stdout }}" |
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 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,21 +1,21 @@ | ||
variable "name" { | ||
description = "The name to be used for resources that will be created." | ||
type = string | ||
default = "rdp" | ||
description = "The name to be used for resources that will be created." | ||
} | ||
|
||
variable "project" { | ||
type = string | ||
description = "The ID of the project in which resources will be managed." | ||
type = string | ||
} | ||
|
||
variable "region" { | ||
type = string | ||
default = "us-central1" | ||
description = "The region in which resources will be created." | ||
type = string | ||
default = "europe-central2" | ||
} | ||
|
||
variable "user" { | ||
type = string | ||
description = "The username to be used for the resources." | ||
type = string | ||
} |