aboutsummaryrefslogtreecommitdiffstats
path: root/roles/vmm
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-11-10 22:59:36 +0100
committerbinary <me@rgoncalves.se>2020-11-10 22:59:36 +0100
commit19b568c0917bdba5d5138d925216525afb052023 (patch)
treeed9c03683b375e10d05a7ff612d1780e4e86a069 /roles/vmm
parent73152d7c51ec278d62caa6087fd091eaa12de998 (diff)
downloadinfrastructure-19b568c0917bdba5d5138d925216525afb052023.tar.gz
Add sshd on boot
Diffstat (limited to 'roles/vmm')
-rw-r--r--roles/vmm/files/init_vm_alpine.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/vmm/files/init_vm_alpine.py b/roles/vmm/files/init_vm_alpine.py
index d9dc0d5..126a0bc 100644
--- a/roles/vmm/files/init_vm_alpine.py
+++ b/roles/vmm/files/init_vm_alpine.py
@@ -47,7 +47,8 @@ def init_ssh():
[1, "mkdir /root/.ssh"],
[1, f"echo '{SSHKEY}' > /root/.ssh/authorized_keys"],
[1, f"echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config"],
- [1, "/etc/init.d/sshd restart"]
+ [1, "/etc/init.d/sshd restart"],
+ [1, "rc-update add sshd"]
])
def init_packages():
remember that computers suck.