Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ubuntu] add aws ami source #1

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

[ubuntu] add aws ami source #1

wants to merge 7 commits into from

Conversation

jojand
Copy link
Collaborator

@jojand jojand commented Dec 13, 2023

Description

New tool, Bug fixing, or Improvement?
Please include a summary of the change and which issue is fixed. Also include relevant motivation and context.
For new tools, please provide total size and installation time.

Related issue:

Check list

  • Related issue / work item is attached
  • Tests are written (if applicable)
  • Documentation is updated (if applicable)
  • Changes are tested and related VM images are successfully generated

@@ -170,8 +245,52 @@ source "azure-arm" "build_image" {
}
}

source "amazon-ebs" "ubuntu-base-2204" {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new source for aws ami source

build {
sources = ["source.azure-arm.build_image"]
sources = var.sources
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

input as variable with default value for backward compatibility reasons
azure is always build as default if no sources variable is provided

@@ -138,6 +138,81 @@ variable "vm_size" {
default = "Standard_D4s_v4"
}

variable "sources" {
type = list(string)
default = ["source.azure-arm.build_image"]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

input as variable with default value for backward compatibility reasons
azure is always build as default if no sources variable is provided

images/ubuntu/templates/ubuntu-22.04.pkr.hcl Show resolved Hide resolved
images/ubuntu/templates/ubuntu-22.04.pkr.hcl Show resolved Hide resolved
images/ubuntu/templates/ubuntu-22.04.pkr.hcl Outdated Show resolved Hide resolved
images/ubuntu/templates/ubuntu-22.04.pkr.hcl Outdated Show resolved Hide resolved
images/ubuntu/scripts/build/configure-environment.sh Outdated Show resolved Hide resolved
@ostefek99
Copy link

And please use packer fmt <file>. 🙏🏻

@jojand
Copy link
Collaborator Author

jojand commented Jan 8, 2024

And please use packer fmt <file>. 🙏🏻

applied for my changes

@jojand jojand requested a review from ostefek99 January 9, 2024 13:00
ostefek99
ostefek99 previously approved these changes Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants