From 4f4361de9210f5625037097a90c0394b60e53ab6 Mon Sep 17 00:00:00 2001 From: lulzette Date: Sat, 27 Jan 2024 23:51:51 +0300 Subject: [PATCH] =?UTF-8?q?=D0=91=D0=B5=D0=B7=20=D0=BA=D0=BE=D1=81=D1=82?= =?UTF-8?q?=D1=8B=D0=BB=D0=B5=D0=B9=20=D0=BD=D0=B8=D0=BA=D1=83=D0=B4=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- terraform/ceph-vm.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform/ceph-vm.tf b/terraform/ceph-vm.tf index 6f661f1..e140bb7 100644 --- a/terraform/ceph-vm.tf +++ b/terraform/ceph-vm.tf @@ -30,7 +30,7 @@ resource "lxd_instance" "ceph-mon" { execs = { "shell_cmd" = { - command = ["/bin/sh", "-c", "echo $PUB_KEY | tee /root/.ssh/id_ed25519.pub /root/.ssh/authorized_keys ; echo \"$PRIV_KEY\" > /root/.ssh/id_ed25519 ; chmod 600 /root/.ssh/*"] + command = ["/bin/sh", "-c", "sleep 10 ; echo $PUB_KEY | tee /root/.ssh/id_ed25519.pub /root/.ssh/authorized_keys ; echo \"$PRIV_KEY\" > /root/.ssh/id_ed25519 ; chmod 600 /root/.ssh/*"] environment = { "PUB_KEY" = file("../data/ceph_key.pub") @@ -80,7 +80,7 @@ resource "lxd_instance" "ceph-osd" { } execs = { "shell_cmd" = { - command = ["/bin/sh", "-c", "echo $PUB_KEY | tee /root/.ssh/id_ed25519.pub /root/.ssh/authorized_keys ; echo -e $PRIV_KEY > /root/.ssh/id_ed25519 ; chmod 600 /root/.ssh/*"] + command = ["/bin/sh", "-c", "sleep 10 ; echo $PUB_KEY | tee /root/.ssh/id_ed25519.pub /root/.ssh/authorized_keys ; echo -e $PRIV_KEY > /root/.ssh/id_ed25519 ; chmod 600 /root/.ssh/*"] environment = { "PUB_KEY" = file("../data/ceph_key.pub")