Rename lxd-init to setup, add general setup
Make it so that allowed_auths only returns "password"os-repl
parent
c7284873ed
commit
4ee282e7d6
|
@ -1,3 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
yes '' | lxd init
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
sudo apt-get update -y
|
||||||
|
sudo apt-get upgrade -y
|
||||||
|
sudo apt-get install snapd
|
||||||
|
sudo snap install lxd
|
||||||
|
|
||||||
|
yes '' | lxd init
|
||||||
|
|
||||||
|
sudo apt-get install python3-pip
|
||||||
|
python3 -m pip install paramiko pylxd sshim
|
|
@ -25,4 +25,5 @@ Handler.check_auth_none = check_auth_none
|
||||||
Handler.check_auth_password = check_auth_password
|
Handler.check_auth_password = check_auth_password
|
||||||
Handler.check_auth_publickey = check_auth_publickey
|
Handler.check_auth_publickey = check_auth_publickey
|
||||||
Handler.enable_auth_gssapi = enable_auth_gssapi
|
Handler.enable_auth_gssapi = enable_auth_gssapi
|
||||||
|
Handler.get_allowed_auths = paramiko.server.ServerInterface.get_allowed_auths
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue