-
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
Peter Pouliot
committed
May 21, 2024
1 parent
e7a4734
commit 3cd4ffe
Showing
3 changed files
with
51 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#cloud-config | ||
|
||
package_update: true | ||
package_upgrade: true | ||
|
||
packages: | ||
- tmux | ||
- rsync | ||
- git | ||
|
||
groups: | ||
- docker | ||
system_info: | ||
default_user: | ||
groups: [docker] | ||
|
||
runcmd: | ||
- echo 'Ampere T2A SLES 15 Example' >> /etc/motd |
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,30 @@ | ||
variable "project_id" {} | ||
variable "location" {} | ||
|
||
locals { | ||
cloud_init_template_path = "${path.cwd}/cloud-init.yaml.tpl" | ||
} | ||
|
||
module "gcp-ampere-tau-t2a" { | ||
source = "github.com/amperecomputing/terraform-gcp-ampere-tau-t2a" | ||
project_id = var.project_id | ||
# Optional | ||
# virtual_network_name = var.virtual_network_name | ||
# address_space = var.address_space | ||
# subnet_prefix = var.subnet_prefix | ||
location = "US" | ||
region = "us-central1" | ||
zone = "us-central1-a" | ||
gcp_vm_count = 1 | ||
gcp_os_image = "sles15" | ||
instance_prefix = "ampere-t2a-sles15" | ||
startup_script_template_file = null | ||
cloud_init_template_file = local.cloud_init_template_path | ||
} | ||
|
||
output "gcp_ampere_tau_t2a_private_ips" { | ||
value = module.gcp-ampere-tau-t2a.ampere_taut2a_private_ips | ||
} | ||
output "gcp_ampere_tau_t2a_public_ips" { | ||
value = module.gcp-ampere-tau-t2a.ampere_taut2a_public_ips | ||
} |