From 89e1a701ebb211f61edfd1b54b24114f8a5d32dc Mon Sep 17 00:00:00 2001 From: Jimmy Kaplowitz Date: Wed, 13 Aug 2014 11:51:50 -0700 Subject: [PATCH 1/2] Disable SSH password auth on GCE This change was unintentional but occurred as part of GCE's transition from build-debian-cloud to bootstrap-vz. Might be replaced later with a similar change that applies to all bootstrap-vz providers, based on the opinion of the debian-cloud list. Change-Id: I72a694c49f32df06252d9cc01b1d5c7cfc015347 --- bootstrapvz/providers/gce/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bootstrapvz/providers/gce/__init__.py b/bootstrapvz/providers/gce/__init__.py index 4fbe5b1..627cc9c 100644 --- a/bootstrapvz/providers/gce/__init__.py +++ b/bootstrapvz/providers/gce/__init__.py @@ -40,6 +40,7 @@ def resolve_tasks(taskset, manifest): tasks.boot.ConfigureGrub, initd.InstallInitScripts, ssh.AddSSHKeyGeneration, + ssh.DisableSSHPasswordAuthentication, tasks.apt.CleanGoogleRepositoriesAndKeys, loopback.MoveImage, From 3ff1bfb7d96ca97a1263c751c91bd2b04a269cfa Mon Sep 17 00:00:00 2001 From: Max Illfelder Date: Wed, 13 Aug 2014 16:58:37 -0700 Subject: [PATCH 2/2] Removed a check to verify file type The file command is not installed by bootstrap-vz by default. Change-Id: I59d5f04145b7db517c28bfec1d4d758be468b398 --- bootstrapvz/plugins/google_cloud_sdk/tasks.py | 1 - 1 file changed, 1 deletion(-) diff --git a/bootstrapvz/plugins/google_cloud_sdk/tasks.py b/bootstrapvz/plugins/google_cloud_sdk/tasks.py index 9b3b08d..c59cf97 100644 --- a/bootstrapvz/plugins/google_cloud_sdk/tasks.py +++ b/bootstrapvz/plugins/google_cloud_sdk/tasks.py @@ -52,7 +52,6 @@ class InstallCloudSDK(Task): cloudsdk_directory = os.path.join(info.root, 'usr/local/share/google') os.makedirs(cloudsdk_directory) - log_check_call(['file', cloudsdk_download_dest, cloudsdk_directory]) log_check_call(['tar', 'xaf', cloudsdk_download_dest, '-C', cloudsdk_directory]) # We need to symlink certain programs from the Cloud SDK bin directory into /usr/local/bin.