Skip to content

Commit

Permalink
Set random ssh password for builder
Browse files Browse the repository at this point in the history
For providers that don't have a built-in support for random ssh keys this change makes sure that the default builder password used during the image build process is a randomly generated value.

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
  • Loading branch information
AverageMarcus committed Oct 14, 2024
1 parent 1bee679 commit 85ded65
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion images/capi/packer/nutanix/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
"scp_extra_vars": "",
"source_image_delete": "false",
"source_image_force": "false",
"ssh_password": "builder",
"ssh_password": "{{ uuid }}",
"ssh_username": "builder",
"vm_force_delete": "false"
}
Expand Down
2 changes: 1 addition & 1 deletion images/capi/packer/ova/packer-common.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"remote_type": "",
"remote_username": "",
"skip_compaction": "false",
"ssh_password": "builder",
"ssh_password": "{{ uuid }}",
"ssh_proxy_host": "",
"ssh_proxy_port": "",
"ssh_timeout": "60m",
Expand Down
2 changes: 1 addition & 1 deletion images/capi/packer/proxmox/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"node": "{{env `PROXMOX_NODE`}}",
"proxmox_url": "{{env `PROXMOX_URL`}}",
"sockets": "2",
"ssh_password": "builder",
"ssh_password": "{{ uuid }}",
"ssh_username": "builder",
"storage_pool": "{{env `PROXMOX_STORAGE_POOL`}}",
"storage_pool_type": "lvm",
Expand Down
2 changes: 1 addition & 1 deletion images/capi/packer/qemu/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
"output_directory": "./output/{{user `build_name`}}-kube-{{user `kubernetes_semver`}}",
"python_path": "",
"qemu_binary": "qemu-system-x86_64",
"ssh_password": "builder",
"ssh_password": "{{ uuid }}",
"ssh_username": "builder",
"vm_name": "{{user `build_name`}}-kube-{{user `kubernetes_semver`}}",
"vnc_bind_address": "127.0.0.1"
Expand Down
2 changes: 1 addition & 1 deletion images/capi/packer/raw/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
"output_directory": "./output/{{user `build_name`}}-kube-{{user `kubernetes_semver`}}",
"python_path": "",
"qemu_binary": "qemu-system-x86_64",
"ssh_password": "builder",
"ssh_password": "{{ uuid }}",
"ssh_username": "builder",
"vm_name": "{{user `build_name`}}-kube-{{user `kubernetes_semver`}}"
}
Expand Down

0 comments on commit 85ded65

Please sign in to comment.