Без костылей никуда
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user