Replies: 2 comments
-
Looks like #153 |
Beta Was this translation helpful? Give feedback.
0 replies
-
You will want to look at the Cloud-init docs and look at the example code for how to encode/escape the SSH key to pass through correctly to PVE |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Below is an example of a config file for a container-creating script. The config below works, except for the ssh option. Is it possible to add the ssh key, if so, how? Thanks in advance!
proxmox.nodes(node_name).lxc.create(
hostname=CTName,
vmid=ctid,
ostemplate=template_name,
memory=512,
cores=cores,
swap=512,
onboot=1,
password=root_password,
nameserver = IP,
rootfs='local-lvm:8',
ssh_public_keys=pubkey, <---------
Beta Was this translation helpful? Give feedback.
All reactions