Variabilize GCE region and zone, only use hostname for cloud, not hostname+target
This commit is contained in:
@@ -37,7 +37,7 @@ endef
|
||||
|
||||
define OPACK_INSTALL_CLOUD_CONTENT =
|
||||
Choose your keyboard layout = fr
|
||||
System hostname = $(OPACK_SYS_HOSTNAME)-$(OPACK_TARGET)
|
||||
System hostname = $(OPACK_SYS_HOSTNAME)
|
||||
Which network interface = vio0
|
||||
IPv4 address for vio0 = dhcp
|
||||
IPv6 address for vio0 = none
|
||||
@@ -91,10 +91,10 @@ endef
|
||||
|
||||
define OPACK_TERRAFORM_CONTENT =
|
||||
|
||||
variable "credentials" { default = "../$(OPACK_GCE_JSON_KEY)" }
|
||||
variable "project" { default = "$(OPACK_GCE_PROJECT)" }
|
||||
variable "region" { default = "europe-west4" }
|
||||
variable "zone" { default = "europe-west4-b" }
|
||||
variable "credentials" { default = "../$(OPACK_GCE_JSON_KEY)" }
|
||||
variable "project" { default = "$(OPACK_GCE_PROJECT)" }
|
||||
variable "region" { default = "$(OPACK_GCE_REGION)" }
|
||||
variable "zone" { default = "$(OPACK_GCE_ZONE)" }
|
||||
|
||||
provider "google" {
|
||||
region = "$${var.region}"
|
||||
@@ -125,7 +125,7 @@ resource "google_compute_instance" "$(OPACK_TARGET)" {
|
||||
zone = "$${var.gce_zone}"
|
||||
boot_disk {
|
||||
initialize_params {
|
||||
image = "openbsd"
|
||||
image = "openbsd"
|
||||
}
|
||||
}
|
||||
network_interface {
|
||||
|
||||
Reference in New Issue
Block a user