From beb7a2fecae709aa9d73632e9fba87a1bbc65a06 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Tue, 6 Dec 2022 15:47:05 -0600 Subject: [PATCH] remove ssh key --- packer/scripts/install-k8s.sh | 2 -- packer/ubuntu-k8s.pkr.hcl | 5 ----- 2 files changed, 7 deletions(-) diff --git a/packer/scripts/install-k8s.sh b/packer/scripts/install-k8s.sh index 0bb05d4..bb7f1af 100644 --- a/packer/scripts/install-k8s.sh +++ b/packer/scripts/install-k8s.sh @@ -1,6 +1,4 @@ #!/bin/bash -eu -chmod 600 ~/.ssh/id_ed25519 - echo ">> Installing Kubernetes components..." # Configure and enable kernel modules diff --git a/packer/ubuntu-k8s.pkr.hcl b/packer/ubuntu-k8s.pkr.hcl index 0aa89cc..a9023f8 100644 --- a/packer/ubuntu-k8s.pkr.hcl +++ b/packer/ubuntu-k8s.pkr.hcl @@ -162,11 +162,6 @@ build { destination = "/tmp" } - provisioner "file" { - source = "packer_cache/ssh_private_key_packer.pem" - destination = "/home/${var.build_username}/.ssh/id_ed25519" - } - provisioner "shell" { execute_command = "export KUBEVERSION=${var.k8s_version}; bash {{ .Path }}" expect_disconnect = true