init should take the IP and key for the vm #1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I dont see why the init command doesnt ask for the IP and key for the jail at the same time it initiates it.
And I son't see why they should be merged.
You can add a key, then multiple IP address and vice versa.
This suggestion is a no-go for me.
What is the point of initiating a jail without a key? I understand that not every jail uses the firewall rules though.
The point is to handle multiple keys. So, to add your first key, you must invoke
bkcltd key
.init
will create the jail (chroot) only. It make senses.I'm not saying remove the
key
andip
commands, but making it possible to add them at the same time as youinit
.It makes sense to have a jail with >= 1 keys, but does it make sense to have a jail with < 1 key?
In my mind it would do
I dunno. @vlaborie should make the final decision.
@vlaborie is it an error state (or undesirable in general) for a jail to have no keys at all?
I'm with @benpro here.
Sure it's ultra-rare to have a jail without an SSH key, but nothing prevents from having a less strict SSH config for a given jail.
We could have optional additional arguments for
bkctld init
to create a jail in one command, but it's a separate issue.I'm closing this.