-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
58 additions
and
24 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
data "vkcs_images_image" "debian" { | ||
name = "Debian11.4" | ||
most_recent = true | ||
# Both arguments are required to search an actual image provided by VKCS. | ||
visibility = "public" | ||
default = true | ||
# Use properties to distinguish between available images. | ||
properties = { | ||
mcs_os_distro = "debian" | ||
mcs_os_version = "10.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
data "vkcs_images_image" "eurolinux9" { | ||
tag = "tf-example" | ||
# Useful if you keep old versions of your images. | ||
most_recent = true | ||
properties = { | ||
mcs_os_distro = "eurolinux" | ||
mcs_os_version = "9" | ||
} | ||
# This is unnecessary in real life. | ||
# This is required here to let the example work with image resource example. | ||
depends_on = [ vkcs_images_image.eurolinux9 ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
resource "vkcs_images_image" "eurolinux9" { | ||
name = "eurolinux9-tf-example" | ||
image_source_url = "https://fbi.cdn.euro-linux.com/images/EL-9-cloudgeneric-2023-03-19.raw.xz" | ||
# compression_format should be set for compressed image source. | ||
compression_format = "xz" | ||
container_format = "bare" | ||
disk_format = "raw" | ||
# Minimal requirements from image vendor. | ||
# Should be set to prevent VKCS to build VM on lesser resources. | ||
min_ram_mb = 1536 | ||
min_disk_gb = 10 | ||
|
||
properties = { | ||
# Refer to https://mcs.mail.ru/docs/en/base/iaas/instructions/vm-images/vm-image-metadata | ||
os_type = "linux" | ||
os_admin_user = "root" | ||
mcs_name = "EuroLinux 9" | ||
mcs_os_distro = "eurolinux" | ||
mcs_os_version = "9" | ||
hw_qemu_guest_agent = "yes" | ||
os_require_quiesce = "yes" | ||
} | ||
# Use tags to organize your images. | ||
tags = ["tf-example"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters