Без костылей никуда
This commit is contained in:
parent
f8e6ed30d3
commit
4f4361de92
@ -30,7 +30,7 @@ resource "lxd_instance" "ceph-mon" {
|
|||||||
|
|
||||||
execs = {
|
execs = {
|
||||||
"shell_cmd" = {
|
"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 = {
|
environment = {
|
||||||
"PUB_KEY" = file("../data/ceph_key.pub")
|
"PUB_KEY" = file("../data/ceph_key.pub")
|
||||||
@ -80,7 +80,7 @@ resource "lxd_instance" "ceph-osd" {
|
|||||||
}
|
}
|
||||||
execs = {
|
execs = {
|
||||||
"shell_cmd" = {
|
"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 = {
|
environment = {
|
||||||
"PUB_KEY" = file("../data/ceph_key.pub")
|
"PUB_KEY" = file("../data/ceph_key.pub")
|
||||||
|
Loading…
Reference in New Issue
Block a user