Skip to content

Commit

Permalink
fix: Set build_password when using env vars (vmware-samples#198)
Browse files Browse the repository at this point in the history
* Fixes vmware-samplesGH-197.
* Update `CHANGELOG.md`

Co-authored-by: Ryan Johnson <[email protected]>
  • Loading branch information
evilaliv3 and Ryan Johnson authored Apr 13, 2022
1 parent e2181f7 commit cb9cd10
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

🐞 **Bugfix**:
* Updates the Python interpreter for Ansible on AlmaLinux to use `/usr/libexec/platform-python`. (GH-182)
* Adds the use of `build_password` to the Linux distributions to ensure use of `set-envvars.sh` works as expected. (GH-197)

🧹 **Chore**:
* Updates the Windows Server 2022 .iso to February 2022 release. (GH-192)
Expand Down
1 change: 1 addition & 0 deletions builds/linux/almalinux/8/linux-almalinux.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,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/centos/7/linux-centos.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,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/centos/8-stream/linux-centos-stream.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,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/centos/8/linux-centos.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,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/photon/4/linux-photon.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ locals {
data_source_content = {
"/ks.json" = 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
})
}
Expand Down
1 change: 1 addition & 0 deletions builds/linux/rhel/7/linux-rhel.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,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
rhsm_username = var.rhsm_username
rhsm_password = var.rhsm_password
Expand Down
1 change: 1 addition & 0 deletions builds/linux/rhel/8/linux-rhel.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,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
rhsm_username = var.rhsm_username
rhsm_password = var.rhsm_password
Expand Down
1 change: 1 addition & 0 deletions builds/linux/rocky/8/linux-rocky.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,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/ubuntu/18-04-lts/linux-ubuntu.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,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/ubuntu/20-04-lts/linux-ubuntu.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ locals {
"/meta-data" = file("${abspath(path.root)}/data/meta-data")
"/user-data" = templatefile("${abspath(path.root)}/data/user-data.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/ubuntu/22-04-lts/linux-ubuntu.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ locals {
"/meta-data" = file("${abspath(path.root)}/data/meta-data")
"/user-data" = templatefile("${abspath(path.root)}/data/user-data.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 cb9cd10

Please sign in to comment.