Remove redundant apt installations;Add package;Lock builder account
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-03-05 14:18:40 +01:00
parent 652a5d25c9
commit a15f316f5f
3 changed files with 2 additions and 8 deletions

View File

@@ -22,12 +22,6 @@ steps:
image: bv11-cr01.bessems.eu/library/packer-extended
pull: always
commands:
- |
apt-get update
- |
apt-get install -y \
curl \
make
- |
jq '.password="'"$VSPHERE_PASSWORD"'"' ./packer/ova/vsphere.json > /tmp/vsphere.json && \
mv /tmp/vsphere.json ./packer/ova/vsphere.json

View File

@@ -1,7 +1,7 @@
{
"build_target": "virt",
"disable_public_repos": "false",
"extra_debs": "open-iscsi",
"extra_debs": "nfs-common open-iscsi",
"extra_repos": "",
"extra_rpms": "",
"firstboot_custom_roles_post": "",

View File

@@ -221,7 +221,7 @@
}
],
"password": "{{user `password`}}",
"shutdown_command": "echo '{{user `ssh_password`}}' | sudo -S -E sh -c '{{user `shutdown_command`}}'",
"shutdown_command": "echo '{{user `ssh_password`}}' | sudo -S -E sh -c 'usermod -L {{user `ssh_username`}} && {{user `shutdown_command`}}'",
"ssh_password": "{{user `ssh_password`}}",
"ssh_timeout": "4h",
"ssh_username": "{{user `ssh_username`}}",