forked from Fediversity/Fediversity
revert submodule
wrapper to align with module functions already doing types #2
2 changed files with 0 additions and 2 deletions
|
@ -1 +0,0 @@
|
||||||
## This is a placeholder file. It will be overwritten by the test.
|
|
|
@ -119,7 +119,6 @@ in
|
||||||
with subtest("Configure the deployer key"):
|
with subtest("Configure the deployer key"):
|
||||||
deployer.succeed("""mkdir -p ~/.ssh && ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa""")
|
deployer.succeed("""mkdir -p ~/.ssh && ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa""")
|
||||||
deployer_key = deployer.succeed("cat ~/.ssh/id_rsa.pub").strip()
|
deployer_key = deployer.succeed("cat ~/.ssh/id_rsa.pub").strip()
|
||||||
deployer.succeed(f"echo '{deployer_key}' > ${config.pathFromRoot}/deployer.pub")
|
|
||||||
${forConcat config.targetMachines (tm: ''
|
${forConcat config.targetMachines (tm: ''
|
||||||
${tm}.succeed(f"mkdir -p /root/.ssh && echo '{deployer_key}' >> /root/.ssh/authorized_keys")
|
${tm}.succeed(f"mkdir -p /root/.ssh && echo '{deployer_key}' >> /root/.ssh/authorized_keys")
|
||||||
'')}
|
'')}
|
||||||
|
|
Loading…
Add table
Reference in a new issue