Skip to content

Commit

Permalink
updating
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Pouliot committed May 21, 2024
1 parent 3802aad commit 0495df5
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
18 changes: 18 additions & 0 deletions examples/opensuse/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
31 changes: 31 additions & 0 deletions examples/opensuse/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
variable "project_id" {}
variable "location" {}

locals {
cloud_init_template_path = "${path.cwd}/cloud-init.yaml.tpl"
}

module "ampere-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 = "opensuse"
instance_prefix = "ampere-t2a-openseuse-leap"
startup_script_template_file = null
cloud_init_template_file = local.cloud_init_template_path
}

output "ampere_t2a_private_ips" {
value = module.ampere-t2a.ampere_t2a_private_ips
}
output "ampere_t2a_public_ips" {
value = module.ampere-t2a.ampere_t2a_public_ips
}
~
1 change: 0 additions & 1 deletion images.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ locals {
default_os_user = "opensuse"
startup_script = null
}
}
sles15 = {
os_image = "sles-15-arm64"
default_os_user = "suse"
Expand Down

0 comments on commit 0495df5

Please sign in to comment.