Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Pouliot committed May 21, 2024
1 parent e7a4734 commit 3cd4ffe
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ for example:
```
ssh -i
```
### OS Images
Reference for OS images
[https://cloud.google.com/compute/docs/images/os-details](https://cloud.google.com/compute/docs/images/os-details)

<!-- BEGIN_TF_DOCS -->
## Providers
Expand Down
18 changes: 18 additions & 0 deletions examples/sles15/cloud-init.yaml.tpl
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
30 changes: 30 additions & 0 deletions examples/sles15/main.tf
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
}

0 comments on commit 3cd4ffe

Please sign in to comment.