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

fix: added support for winrm_password for windows custom images #114

Merged
merged 3 commits into from
Aug 28, 2024

Conversation

uibm
Copy link
Member

@uibm uibm commented Aug 16, 2024

No description provided.

@github-actions github-actions bot added the repo label Aug 16, 2024
Copy link
Member

@astha-jain astha-jain left a comment

Choose a reason for hiding this comment

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

Functionality works, Changes suggested on nomenclature.

README.md Outdated
@@ -225,6 +225,7 @@ ssh_port | int | Optional | The port that SSH will be available on. Defaults to
ssh_timeout | string | Optional | The time to wait for SSH to become available before timing out. The format of this value is a duration such as "5s" or "5m".
***Windows Communicator Variables*** |
winrm_username | string | Optional | The username to use to connect to WinRM.
winrm_login_password | string | Optional | The password to use to connect to WinRM. (For custom windows images)
Copy link
Member

Choose a reason for hiding this comment

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

I would recommend winrm_password keyword in parity with existing winrm_username

@@ -45,6 +45,8 @@ type Config struct {
VSIUserDataFile string `mapstructure:"vsi_user_data_file"`
VSIUserDataString string `mapstructure:"vsi_user_data"`

WinRMLoginPassword string `mapstructure:"winrm_login_password"`

Copy link
Member

Choose a reason for hiding this comment

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

same

@uibm
Copy link
Member Author

uibm commented Aug 26, 2024

==> ibmcloud-vpc.windows:
==> ibmcloud-vpc.windows: ********************************************************************
==> ibmcloud-vpc.windows: * Thank you for using IBM Cloud Packer Plugin - VPC Infrastructure *
==> ibmcloud-vpc.windows: ********************************************************************
Build 'ibmcloud-vpc.windows' finished after 33 minutes 14 seconds.

==> Wait completed after 33 minutes 14 seconds

==> Builds finished. The artifacts of successful builds are:
--> ibmcloud-vpc.windows: Image Name: packer-20240826163654 || Image ID: r006-092b6ee2-06b9-41cc-ab98-5f6739ab3cf9

tested. lgtm

@uibm uibm changed the title fix: added support for winrm_login_password for windows custom images fix: added support for winrm_password for windows custom images Aug 26, 2024
@astha-jain astha-jain merged commit bf617f5 into master Aug 28, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants