canonical-ubuntu-qa team mailing list archive
-
canonical-ubuntu-qa team
-
Mailing list archive
-
Message #04104
[Merge] ~hyask/autopkgtest-cloud:skia/set_passwd_in_testbed into autopkgtest-cloud:master
Skia has proposed merging ~hyask/autopkgtest-cloud:skia/set_passwd_in_testbed into autopkgtest-cloud:master.
Requested reviews:
Canonical's Ubuntu QA (canonical-ubuntu-qa)
For more details, see:
https://code.launchpad.net/~hyask/autopkgtest-cloud/+git/autopkgtest-cloud/+merge/466382
Allow login in spice console.
--
Your team Canonical's Ubuntu QA is requested to review the proposed merge of ~hyask/autopkgtest-cloud:skia/set_passwd_in_testbed into autopkgtest-cloud:master.
diff --git a/charms/focal/autopkgtest-cloud-worker/autopkgtest-cloud/tools/create-nova-image-new-release b/charms/focal/autopkgtest-cloud-worker/autopkgtest-cloud/tools/create-nova-image-new-release
index fbf4da1..a2fb049 100755
--- a/charms/focal/autopkgtest-cloud-worker/autopkgtest-cloud/tools/create-nova-image-new-release
+++ b/charms/focal/autopkgtest-cloud-worker/autopkgtest-cloud/tools/create-nova-image-new-release
@@ -43,7 +43,7 @@ fi
if [ "${ARCH}" = amd64 ] && release_ge "${RELEASE}" focal; then
ARCHES="[amd64, i386]"
- RUNCMD="$(printf "runcmd:\n - [ dpkg, --add-architecture, i386]\n")"
+ RUNCMD="$(printf " - [ dpkg, --add-architecture, i386]\n")"
else
ARCHES="default"
RUNCMD=
@@ -58,12 +58,18 @@ cat <<EOF > "${userdata}"
manage_etc_hosts: true
package_update: true
+password: ubuntu
+chpasswd: { expire: False }
+ssh_pwauth: False
+
apt:
primary:
- arches: ${ARCHES}
uri: ${MIRROR}
packages:
- linux-generic
+runcmd:
+ - [ sed, -i, 's/lock_passwd: True/lock_passwd: False/', /etc/cloud/cloud.cfg ]
${RUNCMD}
EOF
Follow ups