-
Notifications
You must be signed in to change notification settings - Fork 80
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
Don't set OSProfile (Username/password) on images that use a Specialized Parent #308
Don't set OSProfile (Username/password) on images that use a Specialized Parent #308
Conversation
4ac92ab
to
facd28e
Compare
// First a parent Specialized ARM 64 Linux VM to a Shared Image Gallery/Compute Gallery | ||
// Then a second Specialized ARM64 Linux VM that uses the first as its source/parent image | ||
func TestBuilderAcc_SharedImageGallery_ARM64SpecializedLinuxSIG_WithChildImage(t *testing.T) { | ||
t.Parallel() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests can run a LOT faster if we just parallelize them all!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a couple of questions regarding the implementation, but overall this looks good to me, I'll do another pass after you've reviewed my comments and addressed or discarded them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good. I left a few questions and a few suggestions on naming but otherwise it looks good.
@@ -517,6 +516,15 @@ func (s *TemplateBuilder) SetSecurityProfile(secureBootEnabled bool, vtpmEnabled | |||
return nil | |||
} | |||
|
|||
func (s *TemplateBuilder) SetSpecializedVM() error { | |||
resource, err := s.getResourceByType(resourceVirtualMachine) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to validate the the virtualMachine has the specialized property set?
…zed compute gallery image as a source
…ild a child image
…key for linux SIG builds
Co-authored-by: Wilken Rivera <dev@wilkenrivera.com>
6b00da6
to
af090b4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code wise this looks good go me. But I learned that I could only get the acceptance test to pass if I used an RSA key. I then found https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/ed25519-ssh-keys
Maybe that should be part of the description for the env var. Or call rename to ARM_SSH_RSA_KEY_FILE
This PR fixes an issue added with plugin version v1.4.3
Description
In that plugin version we added support for creating a specialized ACG image with Packer, however when trying to use that specialized ACG image as a source for another image, we would incorrectly set the username and password, which is already defined in non-generalized VM Images.
Changes
ARM_SSH_PRIVATE_KEY_FILE
Closes #307