Skip to content

Commit

Permalink
fix: use build_password and build_password_encrypted for debian (#…
Browse files Browse the repository at this point in the history
…653)

- Updated Debian to use `build_password` and `build_password_encrypted` to set SSH credentials.
- Updated `CHANGELOG.md`.

Signed-off-by: Roshan Kathawate <[email protected]>
Signed-off-by: Ryan Johnson <[email protected]>
Co-authored-by: Ryan Johnson <[email protected]>
  • Loading branch information
roshankathawate and tenthirtyam authored Aug 21, 2023
1 parent edff33e commit 18f6c73
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
- Adds VMware Photon OS 5.0 to the project. [GH-582](https://github.com/vmware-samples/packer-examples-for-vsphere/pull/582)
- Adds Debian 12 to the project. [GH-584](https://github.com/vmware-samples/packer-examples-for-vsphere/pull/584)

:bug: **Bugfix**:

- Updates Debian 11 to include `build_password` in the `linux-debian.pkr.hcl` configuration file. [GH-653](https://github.com/vmware-samples/packer-examples-for-vsphere/pull/653)

:sweat_drops: **Chore**:

- Updates `required_versions` for `packer` to `>= 1.9.1`. [GH-563](https://github.com/vmware-samples/packer-examples-for-vsphere/pull/563)
Expand Down
1 change: 1 addition & 0 deletions builds/linux/debian/11/linux-debian.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ locals {
data_source_content = {
"/ks.cfg" = templatefile("${abspath(path.root)}/data/ks.pkrtpl.hcl", {
build_username = var.build_username
build_password = var.build_password
build_password_encrypted = var.build_password_encrypted
vm_guest_os_language = var.vm_guest_os_language
vm_guest_os_keyboard = var.vm_guest_os_keyboard
Expand Down
1 change: 1 addition & 0 deletions builds/linux/debian/12/linux-debian.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ locals {
data_source_content = {
"/ks.cfg" = templatefile("${abspath(path.root)}/data/ks.pkrtpl.hcl", {
build_username = var.build_username
build_password = var.build_password
build_password_encrypted = var.build_password_encrypted
vm_guest_os_language = var.vm_guest_os_language
vm_guest_os_keyboard = var.vm_guest_os_keyboard
Expand Down

0 comments on commit 18f6c73

Please sign in to comment.