File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,6 +61,9 @@ config TERRAFORM_GCE_DISTRO_RHEL
6161config TERRAFORM_GCE_DISTRO_ROCKY
6262 bool "Rocky Linux"
6363
64+ config TERRAFORM_GCE_DISTRO_SLES
65+ bool "SUSE Enterprise Linux Server"
66+
6467endchoice
6568
6669source "terraform/gce/kconfigs/images/Kconfig.centos"
@@ -69,3 +72,4 @@ source "terraform/gce/kconfigs/images/Kconfig.fedora"
6972source "terraform/gce/kconfigs/images/Kconfig.opensuse"
7073source "terraform/gce/kconfigs/images/Kconfig.rhel"
7174source "terraform/gce/kconfigs/images/Kconfig.rocky"
75+ source "terraform/gce/kconfigs/images/Kconfig.sles"
Original file line number Diff line number Diff line change 1+ if TERRAFORM_GCE_DISTRO_SLES
2+
3+ config TERRAFORM_GCE_IMAGE_PROJECT
4+ string
5+ output yaml
6+ default "suse-cloud"
7+
8+ config TERRAFORM_GCE_IMAGE_SIZE
9+ int
10+ output yaml
11+ default 10
12+
13+ if TARGET_ARCH_X86_64
14+
15+ choice
16+ prompt "OS image to use"
17+
18+ config TERRAFORM_GCE_IMAGE_SLES_12_X86_64
19+ bool "SUSE Linux Enterprise Server 12 (x86)"
20+
21+ config TERRAFORM_GCE_IMAGE_SLES_15_X86_64
22+ bool "SUSE Linux Enterprise Server 15 (x86)"
23+
24+ endchoice
25+
26+ config TERRAFORM_GCE_IMAGE_FAMILY
27+ string
28+ output yaml
29+ default "sles-12" if TERRAFORM_GCE_IMAGE_SLES_12_X86_64
30+ default "sles-15" if TERRAFORM_GCE_IMAGE_SLES_15_X86_64
31+
32+ endif # TARGET_ARCH_X86_64
33+
34+ if TARGET_ARCH_ARM64
35+
36+ choice
37+ prompt "OS image to use"
38+
39+ config TERRAFORM_GCE_IMAGE_SLES_15_ARM64
40+ bool "SUSE Linux Enterprise Server 15 (arm64)"
41+
42+ endchoice
43+
44+ config TERRAFORM_GCE_IMAGE_FAMILY
45+ string
46+ output yaml
47+ default "sles-15-arm64" if TERRAFORM_GCE_IMAGE_SLES_15_ARM64
48+
49+ endif # TARGET_ARCH_ARM64
50+
51+ endif # TERRAFORM_GCE_DISTRO_SLES
You can’t perform that action at this time.
0 commit comments