Skip to content

Commit b4b7556

Browse files
committed
terraform/GCE: Add images from the SLES distribution
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
1 parent ef5157b commit b4b7556

2 files changed

Lines changed: 55 additions & 0 deletions

File tree

terraform/gce/kconfigs/Kconfig.compute

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ config TERRAFORM_GCE_DISTRO_RHEL
6161
config TERRAFORM_GCE_DISTRO_ROCKY
6262
bool "Rocky Linux"
6363

64+
config TERRAFORM_GCE_DISTRO_SLES
65+
bool "SUSE Enterprise Linux Server"
66+
6467
endchoice
6568

6669
source "terraform/gce/kconfigs/images/Kconfig.centos"
@@ -69,3 +72,4 @@ source "terraform/gce/kconfigs/images/Kconfig.fedora"
6972
source "terraform/gce/kconfigs/images/Kconfig.opensuse"
7073
source "terraform/gce/kconfigs/images/Kconfig.rhel"
7174
source "terraform/gce/kconfigs/images/Kconfig.rocky"
75+
source "terraform/gce/kconfigs/images/Kconfig.sles"
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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

0 commit comments

Comments
 (0)